[ros-diffs] [ion] 13463: Forgot this file
ion at svn.reactos.com
ion at svn.reactos.com
Tue Feb 8 02:55:06 CET 2005
Forgot this file
Added: trunk/reactos/ntoskrnl/ke/i386/main.S
_____
Added: trunk/reactos/ntoskrnl/ke/i386/main.S
--- trunk/reactos/ntoskrnl/ke/i386/main.S 2005-02-08 01:46:01 UTC
(rev 13462)
+++ trunk/reactos/ntoskrnl/ke/i386/main.S 2005-02-08 01:55:04 UTC
(rev 13463)
@@ -0,0 +1,31 @@
+#include <roscfg.h>
+#include <internal/ntoskrnl.h>
+#include <internal/i386/ke.h>
+#include <internal/i386/segment.h>
+#include <internal/ps.h>
+#include <internal/i386/mm.h>
+#include <internal/i386/fpu.h>
+
+.globl _NtProcessStartup
+
+_NtProcessStartup:
+
+ /* FIXME: Application processors should have their own GDT/IDT */
+ lgdt _KiGdtDescriptor
+ lidt _KiIdtDescriptor
+
+ /* Load the PCR selector */
+ movl $PCR_SELECTOR, %eax
+ movl %eax, %fs
+
+ /* Load the initial kernel stack */
+ lea _kernel_stack, %eax
+ add $0x1000, %eax
+ and $0xFFFFE000, %eax
+ add $(0x3000 - SIZEOF_FX_SAVE_AREA), %eax
+ movl %eax, %esp
+
+ /* Call the main kernel initialization */
+ pushl %edx
+ pushl %ecx
+ call __main
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20050208/47bdc7b1/attachment.html
More information about the Ros-diffs
mailing list