projects
/
reactos.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Began seperation of machine-dependant/independant sections of memory
[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
_mainCRTStartup:
13
_start:
14
start:
15
lidt _idt_descr
16
lgdt _gdt_descr
17
18
movw $0x10,%ax
19
movw %ax,%ds
20
21
popl %eax
22
popl %eax
23
movl $_init_stack_top,%esp
24
pushl %eax
25
pushl $0
26
27
jmp __main
28
29
.data
30
31
_idt_descr:
32
.word (256*8)-1
33
.long _KiIdt
34
35
_gdt_descr:
36
.word ((8+NR_TASKS)*8)-1
37
.long _KiGdt
38
39
/*_idt:
40
.fill 256,8,0 */
41
42
.text
43
44
.align 8
45
_init_stack:
46
.fill 16384,1,0
47
_init_stack_top:
48
49
_stext:
50
51