Ignore:
File:
1 edited

Legend:

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

    re93bb24 r73b3ecd  
    2727#
    2828
     29#include <abi/asmtool.h>
    2930#include <arch/arch.h>
    3031
    3132.section BOOTSTRAP
    3233
    33 .global start
    34 .global boot_pt
    35 .global boot_stack
    36 .global halt
    37 .global jump_to_kernel
    38 
    39 start:
     34SYMBOL(start)
    4035        ldr sp, =boot_stack
    4136        b bootstrap
    4237
    4338.section BOOTPT
    44 boot_pt:
     39SYMBOL(boot_pt)
    4540        .space PTL0_ENTRIES * PTL0_ENTRY_SIZE
    4641
    4742.section BOOTSTACK
    4843        .space 4096
    49 boot_stack:
     44SYMBOL(boot_stack)
    5045
    5146.text
    5247
    53 halt:
     48FUNCTION_BEGIN(halt)
    5449        b halt
     50FUNCTION_END(halt)
    5551
    56 jump_to_kernel:
     52FUNCTION_BEGIN(jump_to_kernel)
    5753        #
    5854        # Make sure that the I-cache, D-cache and memory are mutually coherent
     
    7571        bic     r4, r4, #(1 << CP15_C1_DC)
    7672
    77         # Disable I-cache and Branche predictors.
     73        # Disable I-cache and Branch predictors.
    7874        bic     r4, r4, #(1 << CP15_C1_IC)
     75#ifdef PROCESSOR_ARCH_armv6
    7976        bic     r4, r4, #(1 << CP15_C1_BP)
     77#endif
    8078       
    8179        mcr     p15, 0, r4, c1, c0, 0
    8280#endif
    83 
    84 
    8581       
    86         #Wait for the operations to complete
     82        # Wait for the operations to complete
    8783#ifdef PROCESSOR_ARCH_armv7_a
    8884        dsb
    8985#else
    90         #cp15 dsb, r4 is ignored (should be zero)
     86        # cp15 dsb, r4 is ignored (should be zero)
    9187        mov r4, #0
    9288        mcr p15, 0, r4, c7, c10, 4
     
    9894        nop
    9995
    100         #Wait for the operations to complete
     96        # Wait for the operations to complete
    10197#ifdef PROCESSOR_ARCH_armv7_a
    10298        isb
    10399        nop
    104 #else
     100#elif defined(PROCESSOR_ARCH_armv6)
    105101        # cp15 isb
    106102        mcr p15, 0, r4, c7, c5, 4
     
    108104#endif
    109105        mov pc, r0
     106FUNCTION_END(jump_to_kernel)
     107
Note: See TracChangeset for help on using the changeset viewer.