diff options
| author | Hans Petter Selasky <hselasky@FreeBSD.org> | 2014-05-30 16:49:12 +0000 |
|---|---|---|
| committer | Hans Petter Selasky <hselasky@FreeBSD.org> | 2014-05-30 16:49:12 +0000 |
| commit | 5e6464df335ca073d9d1cdef90c86e543f74209d (patch) | |
| tree | 310a387a018708b81fa3e27869cec0a8d87c36d7 /sys | |
| parent | b589760a6fd60b780c88df186096cacc7b4c7077 (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/boot/usb/Makefile | 3 | ||||
| -rw-r--r-- | sys/boot/usb/bsd_usbloader_test.c | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/sys/boot/usb/Makefile b/sys/boot/usb/Makefile index d471e09c36290..cd4dec000a604 100644 --- a/sys/boot/usb/Makefile +++ b/sys/boot/usb/Makefile @@ -53,10 +53,9 @@ CFLAGS+= -I${.CURDIR} CFLAGS+= -I${.CURDIR}/../common CFLAGS+= -g CFLAGS+= -DUSB_MSCTEST_BULK_SIZE=65536 -CFLAGS+= -DUSB_POOL_SIZE=262144 +CFLAGS+= -DUSB_POOL_SIZE=131072 CFLAGS+= -fno-pic CFLAGS+= -DHAVE_ENDIAN_DEFS -CFLAGS+= -DHAVE_MALLOC .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" CFLAGS+= -march=i386 diff --git a/sys/boot/usb/bsd_usbloader_test.c b/sys/boot/usb/bsd_usbloader_test.c index 9158a4fd84c2b..8744e2e763561 100644 --- a/sys/boot/usb/bsd_usbloader_test.c +++ b/sys/boot/usb/bsd_usbloader_test.c @@ -37,6 +37,7 @@ extern void usb_uninit(void); #define hz 1000 +#ifdef HAVE_MALLOC void * usb_malloc(size_t size) { @@ -48,6 +49,7 @@ usb_free(void *ptr) { free(ptr); } +#endif void DELAY(unsigned int delay) |
