summaryrefslogtreecommitdiffstats
path: root/sys/sparc64/include
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2012-01-27 22:35:53 +0000
committermarius <marius@FreeBSD.org>2012-01-27 22:35:53 +0000
commit43204e516aa0f8eda375be7345dc4e05173ef657 (patch)
treef9875adea03a02311043f440669e857ddb536149 /sys/sparc64/include
parent44e78d98e4c96c328bed9209b4816da1ab8baa77 (diff)
downloadFreeBSD-src-43204e516aa0f8eda375be7345dc4e05173ef657.zip
FreeBSD-src-43204e516aa0f8eda375be7345dc4e05173ef657.tar.gz
- Now that we have a working OF_printf() since r230631, use it for
implementing a simple OF_panic() that may be used during the early cycles when panic() isn't available, yet. - Mark cpu_{exit,shutdown}() as __dead2 as appropriate.
Diffstat (limited to 'sys/sparc64/include')
-rw-r--r--sys/sparc64/include/ofw_machdep.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/sparc64/include/ofw_machdep.h b/sys/sparc64/include/ofw_machdep.h
index 658d9c7..bc69b3b 100644
--- a/sys/sparc64/include/ofw_machdep.h
+++ b/sys/sparc64/include/ofw_machdep.h
@@ -37,8 +37,9 @@ typedef uint64_t cell_t;
int OF_decode_addr(phandle_t, int, int *, bus_addr_t *);
void OF_getetheraddr(device_t, u_char *);
u_int OF_getscsinitid(device_t);
-void cpu_shutdown(void *);
+void OF_panic(const char *fmt, ...) __dead2 __printflike(1, 2);
+void cpu_shutdown(void *) __dead2;
int ofw_entry(void *);
-void ofw_exit(void *);
+void ofw_exit(void *) __dead2;
#endif /* _MACHINE_OFW_MACHDEP_H_ */
OpenPOWER on IntegriCloud