summaryrefslogtreecommitdiff
path: root/sys/arch/powerpc64/include
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2020-07-18 10:23:45 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2020-07-18 10:23:45 +0000
commitfb5ebc8d61699e6b0dc96233f1804bab8446ed1d (patch)
tree1f5d2184a923a914949b5d492ce936da6a6bdbea /sys/arch/powerpc64/include
parent5bf1d15e6ecd69d1cfb2cfab7c93470ac2ba33e4 (diff)
Pass boothowto and bootduid parameters to the booted kernel via the
device tree. Make sure the RB_GOODRANDOM flag only gets set if we read a non-stale /etc/random.seed and we actually filled an .openbsd.randomdata segment.
Diffstat (limited to 'sys/arch/powerpc64/include')
-rw-r--r--sys/arch/powerpc64/include/kexec.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/arch/powerpc64/include/kexec.h b/sys/arch/powerpc64/include/kexec.h
index 6ddeb970131..02ff50ecc8e 100644
--- a/sys/arch/powerpc64/include/kexec.h
+++ b/sys/arch/powerpc64/include/kexec.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: kexec.h,v 1.2 2020/07/17 08:57:39 kettenis Exp $ */
+/* $OpenBSD: kexec.h,v 1.3 2020/07/18 10:23:44 kettenis Exp $ */
/*
* Copyright (c) 2019-2020 Visa Hankala
@@ -25,12 +25,12 @@
struct kexec_args {
char *kimg; /* kernel image buffer */
- size_t klen; /* size of kernel image */
- char *argv[KEXEC_MAX_ARGS];
- /* kernel boot arguments */
+ size_t klen; /* size of kernel image */
+ int boothowto;
+ u_char bootduid[8];
};
#define KIOC_KEXEC _IOW('K', 1, struct kexec_args)
-#define KIOC_GETBOOTDUID _IOR('K', 2, char[8])
+#define KIOC_GETBOOTDUID _IOR('K', 2, u_char[8])
#endif /* _MACHINE_KEXEC_H_ */