aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/aboot/fastboot.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/aboot/fastboot.c b/app/aboot/fastboot.c
index 6752dde9..2701be08 100644
--- a/app/aboot/fastboot.c
+++ b/app/aboot/fastboot.c
@@ -109,7 +109,7 @@ void fastboot_publish(const char *name, const char *value)
static event_t usb_online;
static event_t txn_done;
-static unsigned char buffer[4096];
+static unsigned char *buffer;
static struct udc_endpoint *in, *out;
static struct udc_request *req;
int txn_status;
@@ -330,6 +330,8 @@ int fastboot_init(void *base, unsigned size)
thread_t *thr;
dprintf(INFO, "fastboot_init()\n");
+ buffer = memalign(4096, 4096);
+
download_base = base;
download_max = size;