aboutsummaryrefslogtreecommitdiff
path: root/vgasrc
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2011-12-23 21:18:49 -0500
committerKevin O'Connor <kevin@koconnor.net>2011-12-27 21:39:29 -0500
commit87dfad301372d75632d0ebbb983980a1f9ab2372 (patch)
tree27a5c97c9837af3dc6e14f18b89cf1b817a714b9 /vgasrc
parent815e447898aabd6394186dcf1fa1408dd5038cff (diff)
downloadseabios-hppa-87dfad301372d75632d0ebbb983980a1f9ab2372.zip
seabios-hppa-87dfad301372d75632d0ebbb983980a1f9ab2372.tar.gz
seabios-hppa-87dfad301372d75632d0ebbb983980a1f9ab2372.tar.bz2
vgabios: Minor - use segoff_s for static_functionality ptr.
Diffstat (limited to 'vgasrc')
-rw-r--r--vgasrc/vga.c7
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