Ignore:
Timestamp:
2016-04-11T17:03:47Z (8 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3b0f1b9a
Parents:
3a34852
Message:

ia32: use asmtool.h macros for defining symbols

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ia32/src/boot/multiboot.S

    r3a34852 r8844e70  
    2929 */
    3030
     31#include <abi/asmtool.h>
    3132#include <arch/boot/boot.h>
    3233#include <arch/mm/page.h>
     
    6162
    6263.align 4
    63 .global multiboot_image_start
    6464multiboot_header:
    6565        .long MULTIBOOT_HEADER_MAGIC
     
    7272        .long multiboot_image_start
    7373
    74 multiboot_image_start:
     74SYMBOL(multiboot_image_start)
    7575        cli
    7676        cld
     
    162162 *
    163163 */
    164 .global map_kernel_pse
     164FUNCTION_BEGIN(map_kernel_pse)
    165165map_kernel_pse:
    166166        /* Paging features */
     
    194194        movl %ebx, %cr0
    195195        ret
     196FUNCTION_END(map_kernel_pse)
    196197
    197198/** Setup mapping for the kernel (non-PSE variant).
     
    201202 *
    202203 */
    203 .global map_kernel_non_pse
    204 map_kernel_non_pse:
     204FUNCTION_BEGIN(map_kernel_non_pse)
    205205        /* Paging features */
    206206        movl %cr4, %ecx
     
    281281               
    282282                ret
     283FUNCTION_END(map_kernel_non_pse)
    283284
    284285/** Calculate unmapped address of the end of the kernel. */
     
    707708        .space 4096, 0
    708709
    709 .global bootstrap_idtr
    710 bootstrap_idtr:
     710SYMBOL(bootstrap_idtr)
    711711        .word 0
    712712        .long 0
    713713
    714 .global bootstrap_gdtr
    715 bootstrap_gdtr:
     714SYMBOL(bootstrap_gdtr)
    716715        .word GDT_SELECTOR(GDT_ITEMS)
    717716        .long KA2PA(gdt)
    718717
    719 .global multiboot_eax
    720 multiboot_eax:
     718SYMBOL(multiboot_eax)
    721719        .long 0
    722720
    723 .global multiboot_ebx
    724 multiboot_ebx:
     721SYMBOL(multiboot_ebx)
    725722        .long 0
    726723
Note: See TracChangeset for help on using the changeset viewer.