Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • boot/arch/arm32/src/asm.S

    r73b3ecd re93bb24  
    2727#
    2828
    29 #include <abi/asmtool.h>
    3029#include <arch/arch.h>
    3130
    3231.section BOOTSTRAP
    3332
    34 SYMBOL(start)
     33.global start
     34.global boot_pt
     35.global boot_stack
     36.global halt
     37.global jump_to_kernel
     38
     39start:
    3540        ldr sp, =boot_stack
    3641        b bootstrap
    3742
    3843.section BOOTPT
    39 SYMBOL(boot_pt)
     44boot_pt:
    4045        .space PTL0_ENTRIES * PTL0_ENTRY_SIZE
    4146
    4247.section BOOTSTACK
    4348        .space 4096
    44 SYMBOL(boot_stack)
     49boot_stack:
    4550
    4651.text
    4752
    48 FUNCTION_BEGIN(halt)
     53halt:
    4954        b halt
    50 FUNCTION_END(halt)
    5155
    52 FUNCTION_BEGIN(jump_to_kernel)
     56jump_to_kernel:
    5357        #
    5458        # Make sure that the I-cache, D-cache and memory are mutually coherent
     
    7175        bic     r4, r4, #(1 << CP15_C1_DC)
    7276
    73         # Disable I-cache and Branch predictors.
     77        # Disable I-cache and Branche predictors.
    7478        bic     r4, r4, #(1 << CP15_C1_IC)
    75 #ifdef PROCESSOR_ARCH_armv6
    7679        bic     r4, r4, #(1 << CP15_C1_BP)
    77 #endif
    7880       
    7981        mcr     p15, 0, r4, c1, c0, 0
    8082#endif
     83
     84
    8185       
    82         # Wait for the operations to complete
     86        #Wait for the operations to complete
    8387#ifdef PROCESSOR_ARCH_armv7_a
    8488        dsb
    8589#else
    86         # cp15 dsb, r4 is ignored (should be zero)
     90        #cp15 dsb, r4 is ignored (should be zero)
    8791        mov r4, #0
    8892        mcr p15, 0, r4, c7, c10, 4
     
    9498        nop
    9599
    96         # Wait for the operations to complete
     100        #Wait for the operations to complete
    97101#ifdef PROCESSOR_ARCH_armv7_a
    98102        isb
    99103        nop
    100 #elif defined(PROCESSOR_ARCH_armv6)
     104#else
    101105        # cp15 isb
    102106        mcr p15, 0, r4, c7, c5, 4
     
    104108#endif
    105109        mov pc, r0
    106 FUNCTION_END(jump_to_kernel)
    107 
Note: See TracChangeset for help on using the changeset viewer.