Changeset 00aece0 in mainline for kernel/arch/ia32/src/boot/multiboot.S
- Timestamp:
- 2012-02-18T16:47:38Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4449c6c
- Parents:
- bd5f3b7 (diff), f943dd3 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia32/src/boot/multiboot.S
rbd5f3b7 r00aece0 2 2 * Copyright (c) 2001 Jakub Jermar 3 3 * Copyright (c) 2005 Martin Decky 4 * Copyright (c) 2011 Martin Sucha 4 5 * All rights reserved. 5 6 * … … 29 30 30 31 #include <arch/boot/boot.h> 31 #include <arch/boot/memmap.h>32 32 #include <arch/mm/page.h> 33 33 #include <arch/pm.h> 34 #include <genarch/multiboot/multiboot.h> 34 35 #include <arch/cpuid.h> 35 36 … … 91 92 multiboot_meeting_point: 92 93 93 /* Save GRUBarguments */94 movl %eax, grub_eax95 movl %ebx, grub_ebx94 /* Save multiboot arguments */ 95 movl %eax, multiboot_eax 96 movl %ebx, multiboot_ebx 96 97 97 98 pm_status $status_prot … … 124 125 /* Map kernel and turn paging on */ 125 126 pm_status $status_non_pse 126 call map_kernel 127 call map_kernel_non_pse 127 128 128 129 stack_init: … … 134 135 pm2_status $status_prot3 135 136 136 /* Call arch_pre_main( grub_eax, grub_ebx) */137 pushl grub_ebx138 pushl grub_eax137 /* Call arch_pre_main(multiboot_eax, multiboot_ebx) */ 138 pushl multiboot_ebx 139 pushl multiboot_eax 139 140 call arch_pre_main 140 141 … … 195 196 * 196 197 */ 197 .global map_kernel 198 map_kernel :198 .global map_kernel_non_pse 199 map_kernel_non_pse: 199 200 /* Paging features */ 200 201 movl %cr4, %ecx … … 299 300 find_mem_for_pt: 300 301 /* Check if multiboot info is present */ 301 cmpl $MULTIBOOT_LOADER_MAGIC, grub_eax302 cmpl $MULTIBOOT_LOADER_MAGIC, multiboot_eax 302 303 je check_multiboot_map 303 304 … … 307 308 308 309 /* Copy address of the multiboot info to ebx */ 309 movl grub_ebx, %ebx310 movl multiboot_ebx, %ebx 310 311 311 312 /* Check if memory map flag is present */ … … 701 702 .space 4096, 0 702 703 704 .global bootstrap_gdtr 703 705 bootstrap_gdtr: 704 706 .word GDT_SELECTOR(GDT_ITEMS) 705 707 .long KA2PA(gdt) 706 708 707 grub_eax: 709 .global multiboot_eax 710 multiboot_eax: 708 711 .long 0 709 grub_ebx: 712 713 .global multiboot_ebx 714 multiboot_ebx: 710 715 .long 0 711 716 … … 725 730 status_vesa_copy: 726 731 .asciz "[vesa_copy] " 727 status_ grub_cmdline:728 .asciz "[ grub_cmdline] "732 status_multiboot_cmdline: 733 .asciz "[multiboot_cmdline] " 729 734 status_vesa_real: 730 735 .asciz "[vesa_real] "
Note:
See TracChangeset
for help on using the changeset viewer.