aboutsummaryrefslogtreecommitdiffstats
path: root/src/bregs.h
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2009-09-09 11:34:39 -0400
committerKevin O'Connor <kevin@koconnor.net>2009-09-09 11:34:39 -0400
commit9f985427ffeb877f6eb6531a61c0d51250bdf7f3 (patch)
tree6c4ef72950230409e2a3e4f9de2463894c83458b /src/bregs.h
parent372e071ed4b6a66fb371cf13b6f6d14ddd00837a (diff)
downloadseabios-9f985427ffeb877f6eb6531a61c0d51250bdf7f3.tar.gz
Replace common segment/offset pairs with struct segoff_s.
Introduce 'struct segoff_s' to more places.
Diffstat (limited to 'src/bregs.h')
-rw-r--r--src/bregs.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/bregs.h b/src/bregs.h
index e59a7f44..3042ab2e 100644
--- a/src/bregs.h
+++ b/src/bregs.h
@@ -21,6 +21,8 @@
#ifndef __ASSEMBLY__
+#include "farptr.h" // struct segoff_s
+
/****************************************************************
* Registers saved/restored in romlayout.S
****************************************************************/
@@ -42,8 +44,7 @@ struct bregs {
UREG(edx, dx, dh, dl);
UREG(ecx, cx, ch, cl);
UREG(eax, ax, ah, al);
- u16 ip;
- u16 cs;
+ struct segoff_s code;
u16 flags;
} PACKED;