arch/i386: Add multiboot support
This commit is contained in:
@ -47,8 +47,8 @@
|
||||
*/
|
||||
.global start
|
||||
start:
|
||||
movl %eax, virt_to_phys(magic) /* Save off multiboot magic number */
|
||||
movl %ebx, virt_to_phys(mbd) /* Save off multiboot data structure */
|
||||
movl %eax, virt_to_phys(multiboot_magic)/* Save off multiboot magic number */
|
||||
movl %ebx, virt_to_phys(multiboot_mbd) /* Save off multiboot data structure */
|
||||
|
||||
movl $virt_to_phys(init_page_dir), %eax /* load page directory base register */
|
||||
movl %eax, %cr3
|
||||
@ -134,10 +134,10 @@ init_page_dir:
|
||||
.lcomm stack, STACK_SIZE /* reserve stack space on a doubleword boundary */
|
||||
|
||||
/* place to store multiboot header information */
|
||||
.global mbd
|
||||
.comm mbd, 4 /* we will use this in i386_main */
|
||||
.global magic
|
||||
.comm magic, 4 /* we will use this in i386_main */
|
||||
.global multiboot_mbd
|
||||
.comm multiboot_mbd, 4 /* we will use this in i386_main */
|
||||
.global multiboot_magic
|
||||
.comm multiboot_magic, 4 /* we will use this in i386_main */
|
||||
|
||||
/* TODO FIXME remove this - needs fix to dependencies first */
|
||||
.global atags_ptr
|
||||
|
Reference in New Issue
Block a user