Changeset 8844e70 in mainline for kernel/arch/ia32/src/boot/multiboot.S
- Timestamp:
- 2016-04-11T17:03:47Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3b0f1b9a
- Parents:
- 3a34852
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia32/src/boot/multiboot.S
r3a34852 r8844e70 29 29 */ 30 30 31 #include <abi/asmtool.h> 31 32 #include <arch/boot/boot.h> 32 33 #include <arch/mm/page.h> … … 61 62 62 63 .align 4 63 .global multiboot_image_start64 64 multiboot_header: 65 65 .long MULTIBOOT_HEADER_MAGIC … … 72 72 .long multiboot_image_start 73 73 74 multiboot_image_start: 74 SYMBOL(multiboot_image_start) 75 75 cli 76 76 cld … … 162 162 * 163 163 */ 164 .global map_kernel_pse 164 FUNCTION_BEGIN(map_kernel_pse) 165 165 map_kernel_pse: 166 166 /* Paging features */ … … 194 194 movl %ebx, %cr0 195 195 ret 196 FUNCTION_END(map_kernel_pse) 196 197 197 198 /** Setup mapping for the kernel (non-PSE variant). … … 201 202 * 202 203 */ 203 .global map_kernel_non_pse 204 map_kernel_non_pse: 204 FUNCTION_BEGIN(map_kernel_non_pse) 205 205 /* Paging features */ 206 206 movl %cr4, %ecx … … 281 281 282 282 ret 283 FUNCTION_END(map_kernel_non_pse) 283 284 284 285 /** Calculate unmapped address of the end of the kernel. */ … … 707 708 .space 4096, 0 708 709 709 .global bootstrap_idtr 710 bootstrap_idtr: 710 SYMBOL(bootstrap_idtr) 711 711 .word 0 712 712 .long 0 713 713 714 .global bootstrap_gdtr 715 bootstrap_gdtr: 714 SYMBOL(bootstrap_gdtr) 716 715 .word GDT_SELECTOR(GDT_ITEMS) 717 716 .long KA2PA(gdt) 718 717 719 .global multiboot_eax 720 multiboot_eax: 718 SYMBOL(multiboot_eax) 721 719 .long 0 722 720 723 .global multiboot_ebx 724 multiboot_ebx: 721 SYMBOL(multiboot_ebx) 725 722 .long 0 726 723
Note:
See TracChangeset
for help on using the changeset viewer.