- Add two more lines in boot.S which detect boot-by-NTLDR and jump into KiSystemServi...
authorAlex Ionescu <aionescu@gmail.com>
Sun, 1 Oct 2006 06:43:26 +0000 (06:43 +0000)
committerAlex Ionescu <aionescu@gmail.com>
Sun, 1 Oct 2006 06:43:26 +0000 (06:43 +0000)
commitaebf8308218102fa2bf1decac36d948ee8c10ba4
treed72a6a12e17753af973c8fb263e422630735caa6
parent790760dcf4d2f80b6f34e73395945497c11ba4b9
- Add two more lines in boot.S which detect boot-by-NTLDR and jump into KiSystemService (I thought FreeLdr didn't use the entrypoint, but it looks like it does, so this hack is needed). Detection is done by checking for the high bit in the PLOADER_PARAMETER_BLOCK pointer, which will be set on NT.
- Fix a double bug in KiSystemStartup. First, we were setting KPCR->Number instead of KPRCB->Number. Second, we were using KeGetPcr instead of __writefsdword. It worked on ROS because KeGetPcr is hard-coded to ROS's KPCR buffer.

svn path=/trunk/; revision=24334
reactos/ntoskrnl/ke/i386/boot.S
reactos/ntoskrnl/ke/i386/kiinit.c