diff options
author | hselasky <hselasky@FreeBSD.org> | 2014-05-30 16:49:12 +0000 |
---|---|---|
committer | hselasky <hselasky@FreeBSD.org> | 2014-05-30 16:49:12 +0000 |
commit | ec37c486f60570db831d486452716978c53f9dd8 (patch) | |
tree | 310a387a018708b81fa3e27869cec0a8d87c36d7 | |
parent | 00bb3e5268f901d0c01aeae160a652f876ff331c (diff) | |
download | FreeBSD-src-ec37c486f60570db831d486452716978c53f9dd8.zip FreeBSD-src-ec37c486f60570db831d486452716978c53f9dd8.tar.gz |
Use own memory pool of 128K until further, hence that works the best.
Sponsored by: DARPA, AFRL
-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 d471e09..cd4dec0 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 9158a4f..8744e2e 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) |