linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/6] x86, setup: "glove box" BIOS interrupts
@ 2009-04-09 23:06 H. Peter Anvin
  2009-04-09 23:12 ` [tip:x86/setup] x86, setup: "glove box" BIOS calls -- infrastructure H. Peter Anvin
                   ` (6 more replies)
  0 siblings, 7 replies; 37+ messages in thread
From: H. Peter Anvin @ 2009-04-09 23:06 UTC (permalink / raw)
  To: Linux Kernel Mailing List; +Cc: Thomas Gleixner, H. Peter Anvin

This is a patchset to "glove box" off BIOS interrupts in the x86 setup
code, thus hopefully dealing once and for all with the problems of
BIOSes touching registers they shouldn't.

The concept is simple: we manipulate a register image in memory, then
swap it in immediately before calling the BIOS, and then switch the
register file back.  All BIOS interrupts are channeled through this path.

The increase in size is about 8% or ~1.3K in the maximal case.

  arch/x86/boot/Makefile                   |    5 +-
  arch/x86/boot/a20.c                      |    9 +-
  arch/x86/boot/apm.c                      |   76 +++++--------
  arch/x86/boot/bioscall.S                 |   82 +++++++++++++
  arch/x86/boot/boot.h                     |   48 ++++++++
  arch/x86/boot/edd.c                      |   71 +++++-------
  arch/x86/boot/header.S                   |    2 +-
  arch/x86/boot/main.c                     |   39 ++++---
  arch/x86/boot/mca.c                      |   27 ++---
  arch/x86/boot/memory.c                   |   81 +++++++-------
  arch/x86/boot/regs.c                     |   29 +++++
  arch/x86/boot/setup.ld                   |    6 +
  arch/x86/boot/tty.c                      |   52 +++++----
  arch/x86/boot/video-bios.c               |   27 ++---
  arch/x86/boot/video-vesa.c               |  137 ++++++++++------------
  arch/x86/boot/video-vga.c                |   95 +++++++++------
  arch/x86/boot/video.c                    |   42 +++----
  arch/x86/boot/video.h                    |   14 ---
  arch/x86/kernel/acpi/realmode/Makefile   |    2 +-
  arch/x86/kernel/acpi/realmode/bioscall.S |    1 +
  arch/x86/kernel/acpi/realmode/regs.c     |    1 +
  21 files changed, 490 insertions(+), 356 deletions(-)


^ permalink raw reply	[flat|nested] 37+ messages in thread

end of thread, other threads:[~2009-04-14 16:04 UTC | newest]

Thread overview: 37+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-09 23:06 [PATCH 0/6] x86, setup: "glove box" BIOS interrupts H. Peter Anvin
2009-04-09 23:12 ` [tip:x86/setup] x86, setup: "glove box" BIOS calls -- infrastructure H. Peter Anvin
2009-04-10  8:04   ` Pavel Machek
2009-04-10 10:39     ` Ingo Molnar
2009-04-10 10:46       ` Pavel Machek
2009-04-10 11:25         ` Ingo Molnar
2009-04-10 11:38           ` Pavel Machek
2009-04-10 11:49             ` Ingo Molnar
2009-04-11 16:13             ` Avi Kivity
2009-04-12  5:21               ` H. Peter Anvin
2009-04-12 14:01                 ` Ingo Molnar
2009-04-12 14:39                   ` Avi Kivity
2009-04-12 14:59                 ` Linus Torvalds
2009-04-12 16:33                   ` Ingo Molnar
2009-04-12 18:57                     ` Avi Kivity
2009-04-13  4:16                       ` Ingo Molnar
2009-04-13  4:24                         ` Ingo Molnar
2009-04-13 16:27                           ` H. Peter Anvin
2009-04-13 16:57                             ` Pavel Machek
2009-04-13 17:00                               ` H. Peter Anvin
2009-04-13 18:34                             ` Alan Jenkins
2009-04-13 19:08                               ` H. Peter Anvin
2009-04-14  0:06                                 ` Ingo Molnar
2009-04-14  4:42                                   ` H. Peter Anvin
2009-04-14  9:03                                     ` Jeremy Fitzhardinge
2009-04-14 15:59                                       ` H. Peter Anvin
2009-04-13  6:44                         ` Avi Kivity
2009-04-12 17:51                   ` H. Peter Anvin
2009-04-10 17:17     ` H. Peter Anvin
2009-04-10 17:19     ` H. Peter Anvin
2009-04-09 23:13 ` [tip:x86/setup] x86, setup: "glove box" BIOS interrupts in the core boot code H. Peter Anvin
2009-04-09 23:13 ` [tip:x86/setup] x86, setup: "glove box" BIOS interrupts in the APM code H. Peter Anvin
2009-04-09 23:13 ` [tip:x86/setup] x86, setup: "glove box" BIOS interrupts in the EDD code H. Peter Anvin
2009-04-09 23:13 ` [tip:x86/setup] x86, setup: "glove box" BIOS interrupts in the MCA code H. Peter Anvin
2009-04-09 23:13 ` [tip:x86/setup] x86, setup: "glove box" BIOS interrupts in the video code H. Peter Anvin
2009-04-10  8:05   ` Pavel Machek
2009-04-10 18:05 ` [PATCH 0/6] x86, setup: "glove box" BIOS interrupts Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).