Ignore:
File:
1 edited

Legend:

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

    r4d58bac 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.