aboutsummaryrefslogtreecommitdiffstats
path: root/vgasrc/vgabios.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2012-01-14 23:15:40 -0500
committerKevin O'Connor <kevin@koconnor.net>2012-01-16 12:01:12 -0500
commitaad3b695b782534908bfce0f0f60314cb4ea3694 (patch)
treefacff997fc866dca314600cea7f72e50659b0f3b /vgasrc/vgabios.c
parentefb4523d4b65999970fd3d07ac5db36b46a27daa (diff)
downloadseabios-aad3b695b782534908bfce0f0f60314cb4ea3694.tar.gz
vgabios: Move video_param_table definition to vgabios.c.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'vgasrc/vgabios.c')
-rw-r--r--vgasrc/vgabios.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/vgasrc/vgabios.c b/vgasrc/vgabios.c
index cd39cf13..449f3c40 100644
--- a/vgasrc/vgabios.c
+++ b/vgasrc/vgabios.c
@@ -25,6 +25,20 @@
#define DEBUG_VGA_POST 1
#define DEBUG_VGA_10 3
+// Standard Video Save Pointer Table
+struct VideoSavePointer_s {
+ struct segoff_s videoparam;
+ struct segoff_s paramdynamicsave;
+ struct segoff_s textcharset;
+ struct segoff_s graphcharset;
+ struct segoff_s secsavepointer;
+ u8 reserved[8];
+} PACKED;
+
+static struct VideoSavePointer_s video_save_pointer_table VAR16;
+
+struct VideoParam_s video_param_table[29] VAR16;
+
/****************************************************************
* PCI Data
@@ -1229,7 +1243,9 @@ vga_post(struct bregs *regs)
init_bios_area();
- build_video_param();
+ SET_VGA(video_save_pointer_table.videoparam
+ , SEGOFF(get_global_seg(), (u32)video_param_table));
+ stdvga_build_video_param();
extern void entry_10(void);
SET_IVT(0x10, SEGOFF(get_global_seg(), (u32)entry_10));