summaryrefslogtreecommitdiffstats
path: root/sys/amd64/include
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1995-07-16 10:33:38 +0000
committerphk <phk@FreeBSD.org>1995-07-16 10:33:38 +0000
commit161d38ad3142ecedb3aa0b9296765bb56fe05c66 (patch)
tree90ee773d7a3f5705ae92761b9f28744abe782d81 /sys/amd64/include
parent8173e866568eb594570ebbe3a0e81d24fdafa6e3 (diff)
downloadFreeBSD-src-161d38ad3142ecedb3aa0b9296765bb56fe05c66.zip
FreeBSD-src-161d38ad3142ecedb3aa0b9296765bb56fe05c66.tar.gz
Make the bootinfo structure visible from sysctl.
This can be used in libdisk to guess a better bios-geometry.
Diffstat (limited to 'sys/amd64/include')
-rw-r--r--sys/amd64/include/cpu.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/amd64/include/cpu.h b/sys/amd64/include/cpu.h
index 58a5ab6..ed33a5a 100644
--- a/sys/amd64/include/cpu.h
+++ b/sys/amd64/include/cpu.h
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)cpu.h 5.4 (Berkeley) 5/9/91
- * $Id: cpu.h,v 1.19 1994/12/03 10:18:24 bde Exp $
+ * $Id: cpu.h,v 1.20 1995/05/04 07:50:06 davidg Exp $
*/
#ifndef _MACHINE_CPU_H_
@@ -114,13 +114,15 @@ struct cpu_nameclass {
#define CPU_CONSDEV 1 /* dev_t: console terminal device */
#define CPU_ADJKERNTZ 2 /* int: timezone offset for resettodr() */
#define CPU_DISRTCSET 3 /* int: disable resettodr() call */
-#define CPU_MAXID 4 /* number of valid machdep ids */
+#define CPU_BOOTINFO 4 /* struct: bootinfo */
+#define CPU_MAXID 5 /* number of valid machdep ids */
#define CTL_MACHDEP_NAMES { \
{ 0, 0 }, \
{ "console_device", CTLTYPE_STRUCT }, \
{ "adjkerntz", CTLTYPE_INT }, \
{ "disable_rtc_set", CTLTYPE_INT }, \
+ { "bootinfo", CTLTYPE_STRUCT }, \
}
#ifdef KERNEL
OpenPOWER on IntegriCloud