Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 May 2014 16:49:12 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r266894 - head/sys/boot/usb
Message-ID:  <201405301649.s4UGnCql055914@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201405301649.s4UGnCql055914>