1. 20 3月, 2014 1 次提交
    • V
      x86, boot: Create a separate string.h file to provide standard string functions · c041b5ad
      Vivek Goyal 提交于
      Create a separate arch/x86/boot/string.h file to provide declaration of
      some of the common string functions.
      
      By default memcpy, memset and memcmp functions will default to gcc
      builtin functions. If code wants to use an optimized version of any
      of these functions, they need to #undef the respective macro and link
      against a local file providing definition of undefed function.
      
      For example, arch/x86/boot/* code links against copy.S to get memcpy()
      and memcmp() definitions. arch/86/boot/compressed/* links against
      compressed/string.c.
      
      There are quite a few places in arch/x86/ where these functions are
      used. Idea is to try to consilidate  their declaration and possibly
      definitions so that it can be reused.
      
      I am planning to reuse boot/string.h in arch/x86/purgatory/ and use
      gcc builtin functions for memcpy, memset and memcmp.
      Signed-off-by: NVivek Goyal <vgoyal@redhat.com>
      Link: http://lkml.kernel.org/r/1395170800-11059-3-git-send-email-vgoyal@redhat.comSigned-off-by: NH. Peter Anvin <hpa@linux.intel.com>
      c041b5ad
  2. 10 4月, 2009 1 次提交
    • H
      x86, setup: "glove box" BIOS calls -- infrastructure · 7a734e7d
      H. Peter Anvin 提交于
      Impact: new interfaces (not yet used)
      
      For all the platforms out there, there is an infinite number of buggy
      BIOSes.  This adds infrastructure to treat BIOS interrupts more like
      toxic waste and "glove box" them -- we switch out the register set,
      perform the BIOS interrupt, and then restore the previous state.
      
      LKML-Reference: <49DE7F79.4030106@zytor.com>
      Signed-off-by: NH. Peter Anvin <hpa@linux.intel.com>
      Cc: Pavel Machek <pavel@ucw.cz>
      Cc: Rafael J. Wysocki <rjw@sisk.pl>
      7a734e7d