aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorHans Petter Selasky <hselasky@FreeBSD.org>2014-05-30 16:49:12 +0000
committerHans Petter Selasky <hselasky@FreeBSD.org>2014-05-30 16:49:12 +0000
commit5e6464df335ca073d9d1cdef90c86e543f74209d (patch)
tree310a387a018708b81fa3e27869cec0a8d87c36d7 /sys
parentb589760a6fd60b780c88df186096cacc7b4c7077 (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/boot/usb/Makefile3
-rw-r--r--sys/boot/usb/bsd_usbloader_test.c2
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)