grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] split/refurbish vga_text.mod


From: Robert Millan
Subject: [PATCH] split/refurbish vga_text.mod
Date: Sun, 9 Nov 2008 23:06:36 +0100
User-agent: Mutt/1.5.13 (2006-08-11)

This patch refurbishes the current vga_text / console roles:

  - vga_text.c used only in coreboot; provides functions that on BIOS
    are in kern/i386/pc/startup.S

  - console.c shared between coreboot and BIOS; confusing mixture of support
    code for vga_text.c on coreboot, or console (both input and output), and
    device registration on both coreboot (only output) and BIOS (both input
    and output).

to:

  - vga_text.c: still provides functions that on BIOS are in
    kern/i386/pc/startup.S, but now also handles device registration
    using functions from vga_common.c (and from vga_text.c itself)
    (this works either as a module or as built-in when on coreboot)

  - vga_common.c: support code for either vga_text.c or startup.S, no
    device registration.

  - console.c: BIOS console.  handles device registration (both input and
    output) using functions provided by vga_common.c and startup.S.

The inmediate results are:

  - We get rid of the GRUB_MACHINE_PCBIOS hack.

  - vga_text.mod can be loaded and used on non-coreboot platforms.

-- 
Robert Millan

  The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
  how) you may access your data; but nobody's threatening your freedom: we
  still allow you to remove your data and not access it at all."

Attachment: vga_text.diff
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]