25954612f07b1397d82059da1efdddf5197228a1
[reactos.git] / reactos / ntoskrnl / ke / head.s
1 #define NR_TASKS 128
2
3 .globl _stext
4 .globl _start
5 .globl _mainCRTStartup
6 .globl start
7 .globl _DllMainCRTStartup@12
8 .globl _init_stack
9 .globl _init_stack_top
10
11 _DllMainCRTStartup@12:
12 _stext:
13 _mainCRTStartup:
14 _start:
15 start:
16 lidt _idt_descr
17 lgdt _gdt_descr
18
19 movw $0x10,%ax
20 movw %ax,%ds
21
22 popl %eax
23 popl %eax
24 movl $_init_stack_top,%esp
25 pushl %eax
26 pushl $0
27
28 jmp __main
29
30 .data
31
32 _idt_descr:
33 .word (256*8)-1
34 .long _KiIdt
35
36 _gdt_descr:
37 .word ((8+NR_TASKS)*8)-1
38 .long _KiGdt
39
40 /*_idt:
41 .fill 256,8,0 */
42
43 .text
44
45 _init_stack:
46 .fill 16384,1,0
47 _init_stack_top:
48
49 #if 0
50 _stext:
51 #endif
52