summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/geom/part/g_part_pc98.c8
-rw-r--r--sys/sys/diskpc98.h14
2 files changed, 11 insertions, 11 deletions
diff --git a/sys/geom/part/g_part_pc98.c b/sys/geom/part/g_part_pc98.c
index 3b737f0..f9be0cc 100644
--- a/sys/geom/part/g_part_pc98.c
+++ b/sys/geom/part/g_part_pc98.c
@@ -45,14 +45,6 @@ __FBSDID("$FreeBSD$");
#include "g_part_if.h"
-#define PC98_MID_BOOTABLE 0x80
-#define PC98_MID_MASK 0x7f
-#define PC98_MID_386BSD 0x14
-
-#define PC98_SID_ACTIVE 0x80
-#define PC98_SID_MASK 0x7f
-#define PC98_SID_386BSD 0x44
-
#define SECSIZE 512
struct g_part_pc98_table {
diff --git a/sys/sys/diskpc98.h b/sys/sys/diskpc98.h
index 3b2dc94..c20ca6c 100644
--- a/sys/sys/diskpc98.h
+++ b/sys/sys/diskpc98.h
@@ -42,9 +42,17 @@
#define DOSMAGICOFFSET 510
#define DOSMAGIC 0xAA55
-#define DOSMID_386BSD (0x14|0x80) /* 386BSD | bootable */
-#define DOSSID_386BSD (0x44|0x80) /* 386BSD | active */
-#define DOSPTYP_386BSD (DOSSID_386BSD << 8 | DOSMID_386BSD)
+#define PC98_MID_BOOTABLE 0x80
+#define PC98_MID_MASK 0x7f
+#define PC98_MID_386BSD 0x14
+
+#define PC98_SID_ACTIVE 0x80
+#define PC98_SID_MASK 0x7f
+#define PC98_SID_386BSD 0x44
+
+#define DOSMID_386BSD (PC98_MID_386BSD | PC98_MID_BOOTABLE)
+#define DOSSID_386BSD (PC98_SID_386BSD | PC98_SID_ACTIVE)
+#define DOSPTYP_386BSD (DOSSID_386BSD << 8 | DOSMID_386BSD)
struct pc98_partition {
unsigned char dp_mid;
OpenPOWER on IntegriCloud