[SeaBIOS] [PATCH 2/6] vgabios: Minor - use segoff_s for static_functionality ptr.
Kevin O'Connor
kevin at koconnor.net
Sat Dec 24 06:53:05 CET 2011
---
vgasrc/vga.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/vgasrc/vga.c b/vgasrc/vga.c
index ee10704..903c04c 100644
--- a/vgasrc/vga.c
+++ b/vgasrc/vga.c
@@ -1092,8 +1092,7 @@ handle_101a(struct bregs *regs)
struct funcInfo {
- u16 static_functionality_off;
- u16 static_functionality_seg;
+ struct segoff_s static_functionality;
u8 bda_0x49[30];
u8 bda_0x84[3];
u8 dcc_index;
@@ -1119,8 +1118,8 @@ handle_101b(struct bregs *regs)
struct funcInfo *info = (void*)(regs->di+0);
memset_far(seg, info, 0, sizeof(*info));
// Address of static functionality table
- SET_FARVAR(seg, info->static_functionality_off, (u32)static_functionality);
- SET_FARVAR(seg, info->static_functionality_seg, get_global_seg());
+ SET_FARVAR(seg, info->static_functionality
+ , SEGOFF(get_global_seg(), (u32)static_functionality));
// Hard coded copy from BIOS area. Should it be cleaner ?
memcpy_far(seg, info->bda_0x49, SEG_BDA, (void*)0x49
--
1.7.6.4
More information about the SeaBIOS
mailing list