Replace common segment/offset pairs with struct segoff_s.
[seabios.git] / src / bregs.h
index e59a7f447d0ae3d149115937405a6ac63bbf4bdf..3042ab2e8def111b945a18551e4e411beafa7ccc 100644 (file)
@@ -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;