Use own memory pool of 128K until further, hence that works the best.
Sponsored by: DARPA, AFRL
This commit is contained in:
parent
b589760a6f
commit
5e6464df33
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user