sofware/memtest: use MAIN_RAM_SIZE from mem.h

This commit is contained in:
Florent Kermarrec 2015-03-25 19:00:07 +01:00
parent 1a1c9b4420
commit 1fc24e66dc
1 changed files with 2 additions and 1 deletions

View File

@ -5,6 +5,7 @@
#include <uart.h>
#include <time.h>
#include <generated/csr.h>
#include <generated/mem.h>
#include <hw/flags.h>
#include <console.h>
#include <system.h>
@ -31,7 +32,7 @@ static void membw_service(void)
static void memtest_service(void)
{
static unsigned int test_buffer[64*1024*1024/4] __attribute__((aligned(16)));
static unsigned int test_buffer[(MAIN_RAM_SIZE/2)/4] __attribute__((aligned(16)));
static unsigned char reading;
static unsigned int err, total_err;
#ifdef DEBUG