Ignore:
Timestamp:
Nov 29, 2009, 2:53:02 PM (11 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, master
Children:
d4b4664b
Parents:
28352fae
Message:

Whitespace removal.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/gdbarmsim/start/start.S

    r28352fae r32b8506  
    8181              defintion of .Lstack
    8282            - Provide "hooks" that may be used by the application to add
    83               custom init code - see .Lhwinit and .Lswinit     
     83              custom init code - see .Lhwinit and .Lswinit
    8484            - Go through all execution modes and set up stack for each of them.
    8585              Loosely based on init.s from ARM/Motorola example code.
     
    9292#ifdef __thumb2__
    9393        it      eq
    94 #endif 
     94#endif
    9595        ldreq   r3, .LC0
    9696        /* Note: This 'mov' is essential when starting in User, and ensures we
    97                  always get *some* sp value for the initial mode, even if we 
     97                 always get *some* sp value for the initial mode, even if we
    9898                 have somehow missed it below (in which case it gets the same
    9999                 value as FIQ - not ideal, but better than nothing.) */
     
    108108        mov     sp, r3
    109109        sub     sl, sp, #0x1000 /* This mode also has its own sl (see below) */
    110        
    111         mov     r3, sl 
     110
     111        mov     r3, sl
    112112        msr     CPSR_c, #0xD7   /* Abort mode, interrupts disabled */
    113113        mov     sp, r3
     
    121121        mov     sp, r3
    122122        sub     r3, r3, #0x2000
    123                
     123
    124124        msr     CPSR_c, #0xD3   /* Supervisory mode, interrupts disabled */
    125125
     
    129129        bic     r3, r3, #0xFF00
    130130
    131         str     r3, [r3, #-4]   /* Move value into user mode sp without */ 
    132         ldmdb   r3, {sp}^       /* changing modes, via '^' form of ldm */ 
     131        str     r3, [r3, #-4]   /* Move value into user mode sp without */
     132        ldmdb   r3, {sp}^       /* changing modes, via '^' form of ldm */
    133133        orr     r2, r2, #0xC0   /* Back to original mode, presumably SVC, */
    134134        msr     CPSR_c, r2      /* with FIQ/IRQ disable bits forced to 1 */
    135 #endif 
     135#endif
    136136.LC23:
    137137        /* Setup a default stack-limit in-case the code has been
     
    149149        mov     fp, a2                  /* Null frame pointer */
    150150        mov     r7, a2                  /* Null frame pointer for Thumb */
    151        
     151
    152152        ldr     a1, .LC1                /* First arg: start of memory block */
    153         ldr     a3, .LC2       
     153        ldr     a3, .LC2
    154154        sub     a3, a3, a1              /* Third arg: length of block */
    155        
     155
    156156
    157157#if defined(__thumb__) && !defined(__thumb2__)
     
    163163        .global __change_mode
    164164        .thumb_func
    165 __change_mode: 
    166 #endif
    167        
     165__change_mode:
     166#endif
     167
    168168        bl      FUNCTION (memset)
    169169#if !defined (ARM_RDP_MONITOR) && !defined (ARM_RDI_MONITOR)
     
    181181        mov     pc, r3
    182182#endif
    183 .LC24: 
     183.LC24:
    184184        ldr     r3, .Lswinit
    185185        cmp     r3, #0
     
    192192#endif
    193193
    194 .LC25: 
     194.LC25:
    195195        mov     r0, #0          /*  no arguments  */
    196196        mov     r1, #0          /*  no argv either */
     
    198198        /* Need to set up standard file handles */
    199199        bl      FUNCTION (initialise_monitor_handles)
    200        
     200
    201201#ifdef ARM_RDP_MONITOR
    202202        swi     SWI_GetEnv      /*  sets r0 to point to the command line */
     
    290290        add     r3, #4
    291291        b       .LC15
    292 .LC14: 
     292.LC14:
    293293        /* Ensure doubleword stack alignment.  */
    294294        mov     r4, sp
     
    329329        swi     SWI_Exit
    330330#endif
    331        
    332         /* For Thumb, constants must be after the code since only 
     331
     332        /* For Thumb, constants must be after the code since only
    333333           positive offsets are supported for PC relative addresses.  */
    334        
     334
    335335        .align 0
    336336.LC0:
     
    343343           it points to a non-0 value. Also set up references to "hooks" that
    344344           may be used by the application to provide additional init code. */
    345        
     345
    346346#ifdef __pe__
    347347        .word   0x800000
     
    349349        .word   0x80000                 /* Top of RAM on the PIE board.  */
    350350#endif
    351 .Lstack:       
     351.Lstack:
    352352        .word   __stack
    353 .Lhwinit:       
     353.Lhwinit:
    354354        .word   FUNCTION (hardware_init_hook)
    355355.Lswinit:
     
    361361           does not provide the symbols. (The linker uses a weak symbol if,
    362362           and only if, a normal version of the same symbol isn't provided
    363            e.g. by a linker script or another object file.) */ 
     363           e.g. by a linker script or another object file.) */
    364364
    365365        .weak __stack
    366         .weak FUNCTION (hardware_init_hook) 
     366        .weak FUNCTION (hardware_init_hook)
    367367        .weak FUNCTION (software_init_hook)
    368368#endif
    369        
     369
    370370#endif
    371371#if defined(__ELF__) && !defined(__USING_SJLJ_EXCEPTIONS__)
     
    397397CommandLine:    .space  256,0   /*  Maximum length of 255 chars handled.  */
    398398#endif
    399        
     399
    400400#ifdef __pe__
    401401        .section .idata$3
Note: See TracChangeset for help on using the changeset viewer.