aboutsummaryrefslogtreecommitdiffstats
path: root/extras/mini-os/head.S
blob: 52eae8f818c51f245da3a7d8edd6955e1450f618 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <os.h>

.globl _start, shared_info
                        
_start:
        cld
        lss stack_start,%esp
        push %esi 
        call start_kernel

stack_start:
	.long stack+8192, __KERNEL_DS

        /* Unpleasant -- the PTE that maps this page is actually overwritten */
        /* to map the real shared-info page! :-)                             */
        .org 0x1000
shared_info:
        .org 0x2000