diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-08-29 17:22:59 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-08-29 17:22:59 +0000 |
commit | 8eb36d289b344ce905762bf060652a5e2e3adc29 (patch) | |
tree | 390d93e53634dd4e0538f22e234edf01e63f9bea /sys/arch | |
parent | 5fbbf0755ec7a6f75c1613704b20f034beee7569 (diff) |
add struct dos_mbr
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/i386/include/disklabel.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/arch/i386/include/disklabel.h b/sys/arch/i386/include/disklabel.h index 146e81c7d8e..452e9d1d65a 100644 --- a/sys/arch/i386/include/disklabel.h +++ b/sys/arch/i386/include/disklabel.h @@ -1,4 +1,4 @@ -/* $OpenBSD: disklabel.h,v 1.10 1997/08/08 21:46:44 niklas Exp $ */ +/* $OpenBSD: disklabel.h,v 1.11 1997/08/29 17:22:58 mickey Exp $ */ /* $NetBSD: disklabel.h,v 1.3 1996/03/09 20:52:54 ghudson Exp $ */ /* @@ -70,6 +70,15 @@ struct dos_partition { #define DOSPTYP_NETBSD DOSPTYP_386BSD /* NetBSD partition type (XXX) */ #define DOSPTYP_OPENBSD 0xa6 /* OpenBSD partition type */ +#define XXX __attribute__((packed)) +struct dos_mbr { + u_int8_t dmbr_boot[DOSPARTOFF] XXX; + struct dos_partition dmbr_parts[NDOSPART] XXX; + u_int16_t dmbr_sign XXX; +}; + +#define DOSMBR_SIGNATURE (0xaa55) + #include <sys/dkbad.h> struct cpu_disklabel { struct dos_partition dosparts[NDOSPART]; |