diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2011-04-26 17:33:18 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2011-04-26 17:33:18 +0000 |
commit | f4d605abf615f5874339c95f0309f824ad07577e (patch) | |
tree | 9b3fd0c482fbd1df2a42dbc67e53560e32e86c71 /sys/arch/i386/include | |
parent | 2d7740a3b1a96dd7d345686c8e2c1e1277f4f5d1 (diff) |
Make amd64/i386 boot(8) pass the DUID of the selected boot device to the
kernel so that it can use it to identify the root disk. This will be
needed in order to correctly boot from a softraid volume.
ok deraadt@ marco@ krw@
Diffstat (limited to 'sys/arch/i386/include')
-rw-r--r-- | sys/arch/i386/include/biosvar.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/arch/i386/include/biosvar.h b/sys/arch/i386/include/biosvar.h index 4e8be582aec..b70de861afc 100644 --- a/sys/arch/i386/include/biosvar.h +++ b/sys/arch/i386/include/biosvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: biosvar.h,v 1.55 2011/03/23 16:54:35 pirofti Exp $ */ +/* $OpenBSD: biosvar.h,v 1.56 2011/04/26 17:33:17 jsing Exp $ */ /* * Copyright (c) 1997-1999 Michael Shalayeff @@ -210,6 +210,11 @@ typedef struct _bios_ddb { int db_console; } __packed bios_ddb_t; +#define BOOTARG_ROOTDUID 9 +typedef struct _bios_rootduid { + u_char duid[8]; +} __packed bios_rootduid_t; + #if defined(_KERNEL) || defined (_STANDALONE) #ifdef _LOCORE |