Use own memory pool of 128K until further, hence that works the best.

Sponsored by:	DARPA, AFRL
This commit is contained in:
Hans Petter Selasky 2014-05-30 16:49:12 +00:00
parent b589760a6f
commit 5e6464df33
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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)