1. 27 2月, 2007 1 次提交
    • I
      [PATCH] x86: add -freg-struct-return to CFLAGS · 25165120
      Ingo Molnar 提交于
      Jeremy Fitzhardinge suggested the use of -freg-struct-return, which does
      structure-returns (such as when using pte_t) in registers instead of on
      the stack.
      
      that is indeed so, and this option reduced the kernel size a bit:
      
          text    data     bss     dec     hex filename
       4799506  543456 3760128 9103090  8ae6f2 vmlinux.before
       4798117  543456 3760128 9101701  8ae185 vmlinux.after
      
      the resulting kernel booted fine on my testbox. Lets go for it.
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      25165120
  2. 07 12月, 2006 2 次提交
  3. 22 10月, 2006 2 次提交
    • A
      [PATCH] x86: Use -maccumulate-outgoing-args · cdfce1f5
      Andi Kleen 提交于
      This avoids some problems with gcc 4.x and earlier generating
      invalid unwind information. In 4.1 the option is default
      when unwind information is enabled.
      
      And it seems to generate smaller code too, so it's probably
      a good thing on its own. With gcc 4.0:
      
      i386:
      4683198  902112  480868 6066178  5c9002 vmlinux (before)
      4449895  902112  480868 5832875  5900ab vmlinux (after)
      
      x86-64:
      4939761 1449584  648216 7037561  6b6279 vmlinux (before)
      4854193 1449584  648216 6951993  6a1439 vmlinux (after)
      
      On 4.1 it shouldn't make much difference because it is
      default when unwind is enabled anyways.
      
      Suggested by Michael Matz and Jan Beulich
      
      Cc: jbeulich@novell.com
      Signed-off-by: NAndi Kleen <ak@suse.de>
      cdfce1f5
    • A
      [PATCH] i386: fix .cfi_signal_frame copy-n-paste error · da8604cc
      Andrew Morton 提交于
      This was copied, pasted but not edited.
      
      Cc: Andi Kleen <ak@muc.de>
      Cc: Jan Beulich <jbeulich@novell.com>
      Cc: Ingo Molnar <mingo@elte.hu>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NAndi Kleen <ak@suse.de>
      da8604cc
  4. 26 9月, 2006 2 次提交
    • J
      [PATCH] i386/x86-64: Work around gcc bug with noreturn functions in unwinder · adf14236
      Jan Beulich 提交于
      Current gcc generates calls not jumps to noreturn functions. When that happens the
      return address can point to the next function, which confuses the unwinder.
      
      This patch works around it by marking asynchronous exception
      frames in contrast normal call frames in the unwind information.  Then teach
      the unwinder to decode this.
      
      For normal call frames the unwinder now subtracts one from the address which avoids
      this problem.  The standard libgcc unwinder uses the same trick.
      
      It doesn't include adjustment of the printed address (i.e. for the original
      example, it'd still be kernel_math_error+0 that gets displayed, but the
      unwinder wouldn't get confused anymore.
      
      This only works with binutils 2.6.17+ and some versions of H.J.Lu's 2.6.16
      unfortunately because earlier binutils don't support .cfi_signal_frame
      
      [AK: added automatic detection of the new binutils and wrote description]
      Signed-off-by: NJan Beulich <jbeulich@novell.com>
      Signed-off-by: NAndi Kleen <ak@suse.de>
      adf14236
    • A
      [PATCH] x86: Detect CFI support in the assembler at runtime · e2414910
      Andi Kleen 提交于
      ... instead of using a CONFIG option. The config option still controls
      if the resulting executable actually has unwind information.
      
      This is useful to prevent compilation errors when users select
      CONFIG_STACK_UNWIND on old binutils and also allows to use
      CFI in the future for non kernel debugging applications.
      
      Cc: jbeulich@novell.com
      Cc: sam@ravnborg.org
      Signed-off-by: NAndi Kleen <ak@suse.de>
      e2414910
  5. 27 3月, 2006 1 次提交
  6. 26 3月, 2006 1 次提交
    • A
      [PATCH] x86_64: Don't define string functions to builtin · 6edfba1b
      Andi Kleen 提交于
      gcc should handle this anyways, and it causes problems when
      sprintf is turned into strcpy by gcc behind our backs and
      the C fallback version of strcpy is actually defining __builtin_strcpy
      
      Then drop -ffreestanding from the main Makefile because it isn't
      needed anymore and implies -fno-builtin, which is wrong now.
      (it was only added for x86-64, so dropping it should be safe)
      
      Noticed by Roman Zippel
      
      Cc: Roman Zippel <zippel@linux-m68k.org>
      Signed-off-by: NAndi Kleen <ak@suse.de>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      6edfba1b
  7. 06 3月, 2006 1 次提交
  8. 17 1月, 2006 1 次提交
  9. 15 1月, 2006 1 次提交
  10. 10 1月, 2006 1 次提交
  11. 09 1月, 2006 2 次提交
  12. 31 10月, 2005 1 次提交
  13. 10 9月, 2005 1 次提交
    • S
      kbuild: full dependency check on asm-offsets.h · 86feeaa8
      Sam Ravnborg 提交于
      Building asm-offsets.h has been moved to a seperate Kbuild file
      located in the top-level directory. This allow us to share the
      functionality across the architectures.
      
      The old rules in architecture specific Makefiles will die
      in subsequent patches.
      
      Furhtermore the usual kbuild dependency tracking is now used
      when deciding to rebuild asm-offsets.s. So we no longer risk
      to fail a rebuild caused by asm-offsets.c dependencies being touched.
      
      With this common rule-set we now force the same name across
      all architectures. Following patches will fix the rest.
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      86feeaa8
  14. 24 6月, 2005 1 次提交
  15. 06 5月, 2005 1 次提交
  16. 01 5月, 2005 1 次提交
    • S
      [PATCH] kbuild/i386: re-introduce dependency on vmlinux for install target, and add kernel_install · 2cacb3da
      Sam Ravnborg 提交于
      Removing the dependency on vmlinux for the install target raised a few
      complaints, so instead a new target i added: kernel_install.
      
      kernel_install will install the kernel just like the ordinary install target.
      The only difference is that install has a dependency on vmlinux,
      kernel_install does not. Therefore kernel_install is the best choice
      when accessing the kernel over a NFS mount or as another user.
      
      kernel_install is similar to modules_install in the fact that neither does
      a full kernel compile before performing the install.
      In this way they are good for root use. Also added back the
      dependency on vmlinux for the install target so peoples scripts are no
      longer broken.
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      2cacb3da
  17. 17 4月, 2005 1 次提交
    • L
      Linux-2.6.12-rc2 · 1da177e4
      Linus Torvalds 提交于
      Initial git repository build. I'm not bothering with the full history,
      even though we have it. We can create a separate "historical" git
      archive of that later if we want to, and in the meantime it's about
      3.2GB when imported into git - space that would just make the early
      git days unnecessarily complicated, when we don't have a lot of good
      infrastructure for it.
      
      Let it rip!
      1da177e4