Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc64/src/sun4u/start.S

    r36df4109 r9d58539  
    2727#
    2828
    29 #include <abi/asmtool.h>
    30 
    3129#include <arch/arch.h>
    3230#include <arch/cpu.h>
     
    4139
    4240#ifdef CONFIG_SMP
    43 #include <arch/context_struct.h>
     41#include <arch/context_offset.h>
    4442#endif
    4543
     
    7876 */
    7977
    80 SYMBOL(kernel_image_start)
     78.global kernel_image_start
     79kernel_image_start:
    8180        mov BSP_FLAG, %l0
    8281        and %o0, %l0, %l7                       ! l7 <= bootstrap processor?
     
    292291       
    293292        /*
    294          * Call sparc64_pre_main(bootinfo)
    295          */
    296         call sparc64_pre_main
     293         * Call arch_pre_main(bootinfo)
     294         */
     295        call arch_pre_main
    297296        mov %o1, %o0
    298297       
     
    357356         */
    358357        set ctx, %g1
    359         add %g1, CONTEXT_OFFSET_SP, %g1
     358        add %g1, OFFSET_SP, %g1
    360359        ldx [%g1], %o6
    361360
     
    397396
    398397.align 8
    399 SYMBOL(physmem_base)    ! copy of the physical memory base address
     398.global physmem_base            ! copy of the physical memory base address
     399physmem_base:
    400400        .quad 0
    401401
    402402/*
    403  * The fast_data_access_mmu_miss_data_hi label, the end_of_identity,
    404  * kernel_8k_tlb_data_template and tlb_tag_access_context_mask variables
    405  * are meant to stay together, aligned on a 32B boundary.
    406  */
    407 
    408 .align 32
     403 * The fast_data_access_mmu_miss_data_hi label and the end_of_identity and
     404 * kernel_8k_tlb_data_template variables are meant to stay together,
     405 * aligned on 16B boundary.
     406 */
     407.global fast_data_access_mmu_miss_data_hi
     408.global end_of_identity
     409.global kernel_8k_tlb_data_template
     410
     411.align 16
    409412/*
    410413 * This label is used by the fast_data_access_MMU_miss trap handler.
    411414 */
    412 SYMBOL(fast_data_access_mmu_miss_data_hi)
     415fast_data_access_mmu_miss_data_hi:
    413416/*
    414417 * This variable is used by the fast_data_access_MMU_miss trap handler.
     
    416419 * memory.
    417420 */
    418 SYMBOL(end_of_identity)
     421end_of_identity:
    419422        .quad -1
    420423/*
     
    423426 * physical memory.
    424427 */
    425 SYMBOL(kernel_8k_tlb_data_template)
     428kernel_8k_tlb_data_template:
    426429#ifdef CONFIG_VIRT_IDX_DCACHE
    427430        .quad ((1 << TTE_V_SHIFT) | (PAGESIZE_8K << TTE_SIZE_SHIFT) | TTE_CP | \
     
    432435#endif /* CONFIG_VIRT_IDX_DCACHE */
    433436
    434 /*
    435  * This variable is used by the fast_data_access_MMU_miss trap handler.
    436  * It allows us to save one precious instruction slot of this handler.
    437  */
    438 SYMBOL(tlb_tag_access_context_mask)
    439         .quad TLB_TAG_ACCESS_CONTEXT_MASK
    440 
Note: See TracChangeset for help on using the changeset viewer.