Changeset 054476d in mainline for boot


Ignore:
Timestamp:
2016-04-21T20:04:16Z (9 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
27f67f5
Parents:
dc0d8b52 (diff), 73b3ecd (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge arm32 switch over to using asmtool.h macros

Location:
boot
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • boot/Makefile.build

    rdc0d8b52 r054476d  
    3131include Makefile.common
    3232
    33 INCLUDES = generic/include
     33INCLUDES = -Igeneric/include -I$(ROOT_PATH)/abi/include
    3434OPTIMIZATION = 3
    3535
     
    3838LFLAGS = --fatal-warnings
    3939
    40 GCC_CFLAGS = -I$(INCLUDES) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \
     40GCC_CFLAGS = $(INCLUDES) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \
    4141        -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) \
    4242        -finput-charset=UTF-8 -ffreestanding -fno-builtin -nostdlib -nostdinc \
     
    4545        -pipe
    4646
    47 ICC_CFLAGS = -I$(INCLUDES) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \
     47ICC_CFLAGS = $(INCLUDES) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \
    4848        -ffreestanding -fno-builtin -nostdlib -nostdinc -Wall -Wmissing-prototypes \
    4949        -Werror-implicit-function-declaration -wd170
    5050
    51 CLANG_CFLAGS = -I$(INCLUDES) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \
     51CLANG_CFLAGS = $(INCLUDES) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \
    5252        -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) \
    5353        -finput-charset=UTF-8 -ffreestanding -fno-builtin -nostdlib -nostdinc \
  • boot/arch/arm32/src/asm.S

    rdc0d8b52 r054476d  
    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
     
    108104#endif
    109105        mov pc, r0
     106FUNCTION_END(jump_to_kernel)
     107
  • boot/arch/arm32/src/eabi.S

    rdc0d8b52 r054476d  
    2727#
    2828
     29#include <abi/asmtool.h>
     30
    2931.text
    3032
    31 .global __aeabi_idiv
    32 .global __aeabi_uidiv
    33 
    34 .global __aeabi_idivmod
    35 .global __aeabi_uidivmod
    36 
    37 .global __aeabi_ldivmod
    38 .global __aeabi_uldivmod
    39 
    40 __aeabi_idiv:
     33FUNCTION_BEGIN(__aeabi_idiv)
    4134        push {lr}
    4235        bl __divsi3
    4336        pop {lr}
    4437        mov pc, lr
     38FUNCTION_END(__aeabi_idiv)
    4539
    46 __aeabi_uidiv:
     40FUNCTION_BEGIN(__aeabi_uidiv)
    4741        push {lr}
    4842        bl __udivsi3
    4943        pop {lr}
    5044        mov pc, lr
     45FUNCTION_END(__aeabi_uidiv)
    5146
    52 __aeabi_idivmod:
     47FUNCTION_BEGIN(__aeabi_idivmod)
    5348        push {lr}
    5449        sub sp, sp, #12
     
    5954        pop {lr}
    6055        mov pc, lr
     56FUNCTION_END(__aeabi_idivmod)
    6157
    62 __aeabi_uidivmod:
     58FUNCTION_BEGIN(__aeabi_uidivmod)
    6359        push {lr}
    6460        sub sp, sp, #12
     
    6965        pop {lr}
    7066        mov pc, lr
     67FUNCTION_END(__aeabi_uidivmod)
    7168
    72 __aeabi_ldivmod:
     69FUNCTION_BEGIN(__aeabi_ldivmod)
    7370        push {lr}
    7471        sub sp, sp, #24
     
    8077        pop {lr}
    8178        mov pc, lr
     79FUNCTION_END(__aeabi_ldivmod)
    8280
    83 __aeabi_uldivmod:
     81FUNCTION_BEGIN(__aeabi_uldivmod)
    8482        push {lr}
    8583        sub sp, sp, #24
     
    9189        pop {lr}
    9290        mov pc, lr
     91FUNCTION_END(__aeabi_uldivmod)
     92
Note: See TracChangeset for help on using the changeset viewer.