Skip to content
Snippets Groups Projects
  1. Jan 24, 2009
    • Yuri Tikhonov's avatar
      FPU POST: fix warnings when building with 2.18 binutils · ce82ff05
      Yuri Tikhonov authored
      
      When compile u-boot with the 2.18 binutils the following
      warning messages for each object file in post/lib_ppc/fpu/ is
      produced at the linking stage:
      
      post/libpost.a(acc1.o) uses hard float, u-boot uses soft-float
      ...
      
      This is because of the fact that, in general, the soft-float and
      hard-float ABIs are incompatible; the 2.18 binutils do checking
      of the Tag_GNU_Power_ABI_FP attribute of the files to be linked, and
      produce the worning like above if these are not compatible.
      
      The incompatibility of ABIs is concerned only the float values:
      e.g. the soft-float ABI assumes the float argument passing in the
      pair of rX registers, and the hard-float ABI assumes passing of
      the float argument in the fX register. When we don't pass the float
      arguments between the functions compiled with different floatness,
      then such an application will work correctly.
      This is the case for the FPU POST: u-boot (compiled with soft-float)
      doesn't pass to (and doesn't get from) the FPU POST functions any
      floats; there are no functions exported from the post/lib_ppc/fpu/
      objects which would work with float parameters/returns too. So, we
      can reassure the linker not to worry about the difference in ABI
      attributes of linking files just by setting the 'soft-float'
      attribute for the objects in post/lib_ppc/fpu. And this patch does
      this.
      
      Also, to avoid passing both soft- and hard-float options in CFLAGS
      when compiling the files from post/lib_ppc/fpu (which is OK, but
      looks rather dirty) this patch removes the soft-float string from
      CFLAGS in post/lib_ppc/fpu/Makefile.
      
      Signed-off-by: default avatarYuri Tikhonov <yur@emcraft.com>
      ce82ff05
  2. Oct 18, 2008
  3. Aug 06, 2008
  4. Jul 20, 2008
  5. May 20, 2008
    • Wolfgang Denk's avatar
      Big white-space cleanup. · 53677ef1
      Wolfgang Denk authored
      
      This commit gets rid of a huge amount of silly white-space issues.
      Especially, all sequences of SPACEs followed by TAB characters get
      removed (unless they appear in print statements).
      
      Also remove all embedded "vim:" and "vi:" statements which hide
      indentation problems.
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      53677ef1
  6. Apr 22, 2008
  7. Feb 21, 2008
    • Yuri Tikhonov's avatar
      Fix CPU POST test failure · 928d1d77
      Yuri Tikhonov authored
      
      The CPU POST test code (run from cpu_post_exec_31()) doesn't follow the
      ABI carefully, at least the CR3, CR4, and CR5 fields of CR are clobbered
      by it. The gcc-4.2 with its more aggressive optimization exposes this fact.
      This patch just saves the CR value before running the test code, so allowing
      it to do anything it wants with CR.
      
      Signed-off-by: default avatarDmitry Rakhchev <rda@emcraft.com>
      Acked-by: default avatarYuri Tikhonov <yur@emcraft.com>
      --
      928d1d77
  8. Oct 31, 2007
  9. Jul 05, 2007
  10. Jun 22, 2007
  11. Mar 06, 2007
Loading