.globl _start, shared_info _start: cld lss stack_start,%esp /* Clear BSS first so that there are no surprises... */ 2: xorl %eax,%eax movl $__bss_start,%edi movl $_end,%ecx subl %edi,%ecx rep stosb push %esi call start_kernel stack_start: .long stack+8192, __KERNEL_DS /* Unpleasant -- we actually use this PTE to map shared_info :-) */ .org 0x1000 shared_info: .org 0x2000