diff options
author | 1997-09-29 18:55:04 +0000 | |
---|---|---|
committer | 1997-09-29 18:55:04 +0000 | |
commit | 2a1c1c7bc6a8dfbd4fc1234a8f12ffb2a357772c (patch) | |
tree | c47c95cb21bf79e24dd991f6a5d29487b582827b | |
parent | Xr bindresvport and rresvport (diff) | |
download | wireguard-openbsd-2a1c1c7bc6a8dfbd4fc1234a8f12ffb2a357772c.tar.xz wireguard-openbsd-2a1c1c7bc6a8dfbd4fc1234a8f12ffb2a357772c.zip |
DOSMBR_SIGNATURE, DOSACTIVE; weingart
-rw-r--r-- | sys/arch/alpha/include/disklabel.h | 4 | ||||
-rw-r--r-- | sys/arch/arc/include/disklabel.h | 4 | ||||
-rw-r--r-- | sys/arch/powerpc/include/disklabel.h | 4 |
3 files changed, 9 insertions, 3 deletions
diff --git a/sys/arch/alpha/include/disklabel.h b/sys/arch/alpha/include/disklabel.h index 64037920c19..a17f99e175a 100644 --- a/sys/arch/alpha/include/disklabel.h +++ b/sys/arch/alpha/include/disklabel.h @@ -1,4 +1,4 @@ -/* $OpenBSD: disklabel.h,v 1.6 1997/08/08 22:01:09 niklas Exp $ */ +/* $OpenBSD: disklabel.h,v 1.7 1997/09/29 18:55:04 deraadt Exp $ */ /* $NetBSD: disklabel.h,v 1.1 1995/02/13 23:07:34 cgd Exp $ */ /* @@ -59,7 +59,9 @@ enum disklabel_tag { DLT_ALPHA, DLT_I386, DLT_AMIGA }; /* DOS partition table -- located in boot block */ #define DOSBBSECTOR 0 /* DOS boot block relative sector # */ #define DOSPARTOFF 446 +#define DOSACTIVE 0x80 #define NDOSPART 4 +#define DOSMBR_SIGNATURE 0xaa55 struct dos_partition { u_int8_t dp_flag; /* bootstrap flags */ diff --git a/sys/arch/arc/include/disklabel.h b/sys/arch/arc/include/disklabel.h index e0bee562ee4..5eb9dea5237 100644 --- a/sys/arch/arc/include/disklabel.h +++ b/sys/arch/arc/include/disklabel.h @@ -1,4 +1,4 @@ -/* $OpenBSD: disklabel.h,v 1.9 1997/09/24 02:17:36 deraadt Exp $ */ +/* $OpenBSD: disklabel.h,v 1.10 1997/09/29 18:55:07 deraadt Exp $ */ /* $NetBSD: disklabel.h,v 1.3 1996/03/09 20:52:54 ghudson Exp $ */ /* @@ -42,7 +42,9 @@ /* DOS partition table -- located in boot block */ #define DOSBBSECTOR 0 /* DOS boot block relative sector # */ #define DOSPARTOFF 446 +#define DOSACTIVE 0x80 #define NDOSPART 4 +#define DOSMBR_SIGNATURE 0xAA55 struct dos_partition { u_int8_t dp_flag; /* bootstrap flags */ diff --git a/sys/arch/powerpc/include/disklabel.h b/sys/arch/powerpc/include/disklabel.h index 14c41f8766f..77357753562 100644 --- a/sys/arch/powerpc/include/disklabel.h +++ b/sys/arch/powerpc/include/disklabel.h @@ -1,4 +1,4 @@ -/* $OpenBSD: disklabel.h,v 1.4 1997/08/08 21:46:49 niklas Exp $ */ +/* $OpenBSD: disklabel.h,v 1.5 1997/09/29 18:55:13 deraadt Exp $ */ /* $NetBSD: disklabel.h,v 1.1 1996/09/30 16:34:22 ws Exp $ */ /*- @@ -46,6 +46,7 @@ #define NMBRPART 4 /* # of partitions in MBR */ #define MBRMAGICOFF 510 /* Offset of magic number */ #define MBRMAGIC 0xaa55 /* Actual magic number */ +#define DOSMBR_SIGNATURE MBRMAGIC struct mbr_partition { unsigned char mbr_flag; /* default boot flag */ @@ -85,6 +86,7 @@ struct mbr_partition { #define DOSPTYP_EXTEND 0x05 /* Extended; contains sub-partitions */ #define DOSPTYP_386BSD MBR_NETBSD #define DOSPTYP_OPENBSD 0xa6 /* OpenBSD partition type */ +#define DOSACTIVE 0x80 struct cpu_disklabel { int cd_start; /* Offset to NetBSD partition in blocks */ |