Replace common segment/offset pairs with struct segoff_s.
[seabios.git] / src / boot.c
index 9a08d26b941599d760539727ed85f7f1474a63e5..af2a893bff3986f931b780c4caf5deefa3ca19ca 100644 (file)
@@ -323,8 +323,7 @@ call_boot_entry(u16 bootseg, u16 bootip, u8 bootdrv)
 
     struct bregs br;
     memset(&br, 0, sizeof(br));
-    br.ip = bootip;
-    br.cs = bootseg;
+    br.code = SEGOFF(bootseg, bootip);
     // Set the magic number in ax and the boot drive in dl.
     br.dl = bootdrv;
     br.ax = 0xaa55;