CIA-23tkreuzer ros-amd64-bringup * r35518 /reactos/ntoskrnl/ (5 files in 3 dirs):
3:03pmCIA-23Implement KiSystemStartup in C instead of asm, implement KiSwapStack intrinsic,
3:03pmCIA-23get rid of KiSetupStackandInitializeKernel, instead do the work in
3:03pmCIA-23KiSystemStartupReal in C. Move Stack definitions into trap.S and get rid of the
3:03pmCIA-23whole boot.S file. Comment out the sync loop for the moment and add a comment
3:03pmCIA-23why it doesn't work (InterlockedBitTestAndSet64 doesn't work correctly).
3:04pmAlex_IonescuPhysicus: w3seek is going to rape you
3:05pmAlex_Ionescuyou're swapping stacks...in C
3:05pmAlex_Ionescuyou don't see a problem there?

:)
On 21-Aug-08, at 3:09 PM, Thomas Bluemel wrote:

Calling from KiSwapStack from C seems quite scary. C doesn't know 
anything about you messing with the stack, so any subsequent code may 
still refer to a now invalid stack. There's a reason this was 
implemented in asm...

Best regards,
Alex Ionescu