|
From: KJK::Hyperion <no...@li...> - 2002-04-29 18:33:01
|
It's amazing how many bugs one can find in a single morning without even looking for them specifically (can I commit the fixes? or do you want to review them first?): - reactos/tools/helper.mk places TARGET_LFLAGS *before* default linker flags in the command lines for kernel-mode targets, so it isn't possible to override, for example, image and section alignment values (SOLVED: fixed the affected rules) - reactos/tools/helper.mk doesn't define the "nostrip" rule for static library targets (SOLVED: added a dummy rule, line marked with a FIXME comment) - the Null device driver (reactos/services/dd/null) has a couple of bugs in the entry point routine (SOLVED: bugs fixed. Null driver now also manages a "zero stream" device. Two at the price of one) - major flaw in our toolchain: GNU ld doesn't calculate the PE image checksum, it just happily sets it to zero. Apparently no command line switch controls this. NT refuses to load drivers with an incorrect checksum (can't test the new Null driver because of this) - GNU ld appears to ignore --entry if --subsystem is posix: gcc -Wl,--base-file,base.tmp \ -Wl,--entry,_DllMain@12 \ -Wl,--file-alignment,0x20 -Wl,--section-alignment,0x20 -Wl,--subsystem,posix:19.90 -mdll -Wl,--image-base,0x400000 \ -o junk.tmp \ misc/psxx.coff misc/psxx.coff misc/main.o misc/stubs.o ../../../../dk/w32/lib/ntdll.a D:\devtools\mingw\bin\..\lib\gcc-lib\i386-mingw32\2.95.3-6\..\..\..\..\i386-mingw32\bin\ld.exe: warning: cannot find entry symbol ___PosixProcessStartup; defaulting to 00400020 |
|
From: Jason F. <jas...@ya...> - 2002-04-29 20:48:03
|
Yes, please do commit them! I was actually just about to mail the list about my problems with the latest code... I can't get ReactOS, built from the latest code, to boot under Bochs. Has anyone else got it to work? It crashes in different places all the time. At first I thought it was the new disk driver stack, but using the old IDE driver also caused crashes. Anyone? - Jason --- "KJK::Hyperion" <no...@li...> wrote: > It's amazing how many bugs one can find in a single morning without > even > looking for them specifically (can I commit the fixes? or do you > want to > review them first?): > - reactos/tools/helper.mk places TARGET_LFLAGS *before* default > linker > flags in the command lines for kernel-mode targets, so it isn't > possible to > override, for example, image and section alignment values (SOLVED: > fixed > the affected rules) > - reactos/tools/helper.mk doesn't define the "nostrip" rule for > static > library targets (SOLVED: added a dummy rule, line marked with a > FIXME comment) > - the Null device driver (reactos/services/dd/null) has a couple > of bugs > in the entry point routine (SOLVED: bugs fixed. Null driver now > also > manages a "zero stream" device. Two at the price of one) > - major flaw in our toolchain: GNU ld doesn't calculate the PE > image > checksum, it just happily sets it to zero. Apparently no command > line > switch controls this. NT refuses to load drivers with an incorrect > checksum > (can't test the new Null driver because of this) > - GNU ld appears to ignore --entry if --subsystem is posix: > > gcc -Wl,--base-file,base.tmp \ > -Wl,--entry,_DllMain@12 \ > -Wl,--file-alignment,0x20 -Wl,--section-alignment,0x20 > -Wl,--subsystem,posix:19.90 -mdll -Wl,--image-base,0x400000 \ > -o junk.tmp \ > misc/psxx.coff misc/psxx.coff misc/main.o misc/stubs.o > ../../../../dk/w32/lib/ntdll.a > > D:\devtools\mingw\bin\..\lib\gcc-lib\i386-mingw32\2.95.3-6\..\..\..\..\i386-mingw32\bin\ld.exe: > > warning: cannot find entry symbol ___PosixProcessStartup; > defaulting to 00400020 > > > _______________________________________________ > reactos-kernel mailing list > rea...@li... > https://lists.sourceforge.net/lists/listinfo/reactos-kernel __________________________________________________ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com |
|
From: Eric K. <ek...@rz...> - 2002-04-29 22:01:43
|
"Jason Filby" <jas...@ya...> wrote:
> Yes, please do commit them! I was actually just about to mail the
> list about my problems with the latest code...
>
> I can't get ReactOS, built from the latest code, to boot under Bochs.
> Has anyone else got it to work? It crashes in different places all
> the time. At first I thought it was the new disk driver stack, but
> using the old IDE driver also caused crashes.
>
> Anyone?
Could that by related to this IRQ-Level bug? I checked out the following
sticky files:
hal/halx86/irql.c (release 1.2)
ntoskrnl/ke/i386/irq.c (release 1.17)
ntoskrnl/ps/idle.c (release 1.14)
Using these file releases makes ReactOS run stable on my machine.
Btw, I'm currently replacing the hard-coded loading system boot drivers.
They will soon be loaded according to the services list in the registry.
This is one of the major showstoppers for booting ReactOS into an
installation program.
Eric
|
|
From: Jason F. <jas...@ya...> - 2002-04-30 12:15:16
|
Hey Eric >Could that by related to this IRQ-Level bug? I checked out the >following sticky files: >... Very possibly yes! Most of the crashes occured somewhere in an ISR of a driver. >Using these file releases makes ReactOS run stable on my machine. So it's a known IRQ bug? Can you tell me any more about it? >Btw, I'm currently replacing the hard-coded loading system boot >drivers. They will soon be loaded according to the services list in >the registry. This is one of the major showstoppers for booting >ReactOS into an installation program. I'm also glad to know that the registry has progressed to a point where it can be used for something like that! - Jason __________________________________________________ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com |
|
From: <we...@cw...> - 2002-04-30 13:20:49
|
Quoting Jason Filby <jas...@ya...>: > > So it's a known IRQ bug? Can you tell me any more about it? > The problem is reentrancy into the interrupt handler caused why Philip Susi's changes of a week ago. But I can't reproduce the problem; could someone post a fully decoded stack trace? |
|
From: Eric K. <ek...@rz...> - 2002-05-01 15:52:14
|
"Jason Filby" <jas...@ya...> wrote: > >Btw, I'm currently replacing the hard-coded loading system boot > >drivers. They will soon be loaded according to the services list in > >the registry. This is one of the major showstoppers for booting > >ReactOS into an installation program. > > I'm also glad to know that the registry has progressed to a point > where it can be used for something like that! I deferred the work on registry-based driver loading because the whole driver management is a chaotic piece of crap. We will need to clean it up before additional features can be added. Of course, I can commit the patches but it is just a quick-and-dirty hack on top of the current crap. Eric |
|
From: Casper H. <ch...@us...> - 2002-04-29 22:13:43
|
man, 2002-04-29 kl. 16:41 skrev KJK::Hyperion: > - major flaw in our toolchain: GNU ld doesn't calculate the PE image > checksum, it just happily sets it to zero. Apparently no command line > switch controls this. NT refuses to load drivers with an incorrect checksum > (can't test the new Null driver because of this) Actually, I would call this a missing feature instead since the PE image checksum is optional. Anyways, a patch for binutils that provides PE image checksum is submitted to the binutils project. The patch is approved and applied to mainline CVS branch. This feature will be in the next MinGW, expected to be released soon. > - GNU ld appears to ignore --entry if --subsystem is posix: > > gcc -Wl,--base-file,base.tmp \ > -Wl,--entry,_DllMain@12 \ > -Wl,--file-alignment,0x20 -Wl,--section-alignment,0x20 > -Wl,--subsystem,posix:19.90 -mdll -Wl,--image-base,0x400000 \ > -o junk.tmp \ > misc/psxx.coff misc/psxx.coff misc/main.o misc/stubs.o > ../../../../dk/w32/lib/ntdll.a > > D:\devtools\mingw\bin\..\lib\gcc-lib\i386-mingw32\2.95.3-6\..\..\..\..\i386-mingw32\bin\ld.exe: > warning: cannot find entry symbol ___PosixProcessStartup; defaulting to 00400020 Possibly a bug in binutils. Submit a bugreport to the binutils project. For details see their website. |