Changeset 2944b5a in mainline


Ignore:
Timestamp:
2023-10-22T16:57:43Z (7 months ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
71b4444
Parents:
cebd956
git-author:
Vojtech Horky <vojtech.horky@…> (2023-08-02 16:34:59)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2023-10-22 16:57:43)
Message:

arm32: fix floating point abi configuration

File:
1 edited

Legend:

Unmodified
Added
Removed
  • meson/arch/arm32/meson.build

    rcebd956 r2944b5a  
    4242]
    4343
     44arch_kernel_c_args = arch_uspace_c_args + [ '-mno-unaligned-access', '-mfpu=vfpv3' ]
     45arch_kernel_c_args += cc.get_supported_arguments(['-mgeneral-regs-only' ])
     46arch_kernel_link_args = [ '-nostdlib', '-Wl,-z,max-page-size=0x1000' ]
     47
    4448if CONFIG_FPU
    45         # This is necessary for kernel too, to allow vmsr insn and fpexc manipulation.
    46         # Use vfp32 to allow context save/restore of d16-d31 regs.
    47         arch_uspace_c_args += [ '-mfloat-abi=hard' ]
     49    # Need to use softfp because our libgcc.a uses it too
     50    # softfp - generate code with soft-float calling conventions but allow use
     51    # of "hard" float instructions
     52    arch_uspace_c_args += [ '-mfloat-abi=softfp' ]
    4853endif
    49 
    50 arch_kernel_c_args = arch_uspace_c_args + [ '-mno-unaligned-access', '-mfpu=vfpv3' ]
    51 arch_kernel_link_args = [ '-nostdlib', '-Wl,-z,max-page-size=0x1000' ]
    5254arch_uspace_link_args = [ '-nostdlib', '-lgcc', '-Wl,-z,max-page-size=0x1000' ]
    5355
Note: See TracChangeset for help on using the changeset viewer.