svn commit: r298650 - head/sys/boot/kshim
Hans Petter Selasky
hselasky at FreeBSD.org
Tue Apr 26 15:41:33 UTC 2016
Author: hselasky
Date: Tue Apr 26 15:41:31 2016
New Revision: 298650
URL: https://svnweb.freebsd.org/changeset/base/298650
Log:
Build fix. Add howmany() and nitems() macros to bootloader kernel shim.
Modified:
head/sys/boot/kshim/bsd_kernel.h
Modified: head/sys/boot/kshim/bsd_kernel.h
==============================================================================
--- head/sys/boot/kshim/bsd_kernel.h Tue Apr 26 15:38:17 2016 (r298649)
+++ head/sys/boot/kshim/bsd_kernel.h Tue Apr 26 15:41:31 2016 (r298650)
@@ -35,6 +35,8 @@
#include <sys/queue.h>
#include <sys/errno.h>
+#define howmany(x, y) (((x)+((y)-1))/(y))
+#define nitems(x) (sizeof((x)) / sizeof((x)[0]))
#define isalpha(x) (((x) >= 'a' && (x) <= 'z') || ((x) >= 'A' && (x) <= 'Z'))
#define isdigit(x) ((x) >= '0' && (x) <= '9')
#define panic(...) do { printf("USB PANIC: " __VA_ARGS__); while (1) ; } while (0)
More information about the svn-src-all
mailing list