svn commit: r266894 - head/sys/boot/usb
Hans Petter Selasky
hselasky at FreeBSD.org
Fri May 30 16:49:13 UTC 2014
Author: hselasky
Date: Fri May 30 16:49:12 2014
New Revision: 266894
URL: http://svnweb.freebsd.org/changeset/base/266894
Log:
Use own memory pool of 128K until further, hence that works the best.
Sponsored by: DARPA, AFRL
Modified:
head/sys/boot/usb/Makefile
head/sys/boot/usb/bsd_usbloader_test.c
Modified: head/sys/boot/usb/Makefile
==============================================================================
--- head/sys/boot/usb/Makefile Fri May 30 16:47:54 2014 (r266893)
+++ head/sys/boot/usb/Makefile Fri May 30 16:49:12 2014 (r266894)
@@ -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
Modified: head/sys/boot/usb/bsd_usbloader_test.c
==============================================================================
--- head/sys/boot/usb/bsd_usbloader_test.c Fri May 30 16:47:54 2014 (r266893)
+++ head/sys/boot/usb/bsd_usbloader_test.c Fri May 30 16:49:12 2014 (r266894)
@@ -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)
More information about the svn-src-head
mailing list