Make BUFFER_SIZE configurable and increase its default value for TSV110 and EMAG8180

This commit is contained in:
Martin Kroeker 2020-04-02 10:38:35 +02:00 committed by GitHub
parent 7bd8624b79
commit 5e3e657caa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -141,12 +141,17 @@ REALNAME:
#endif #endif
#define HUGE_PAGESIZE ( 4 << 20) #define HUGE_PAGESIZE ( 4 << 20)
#ifndef BUFFERSIZE
#if defined(CORTEXA57) #if defined(CORTEXA57)
#define BUFFER_SIZE (20 << 20) #define BUFFER_SIZE (20 << 20)
#elif defined(TSV110) || defined(EMAG8180)
#define BUFFER_SIZE (32 << 20)
#else #else
#define BUFFER_SIZE (16 << 20) #define BUFFER_SIZE (16 << 20)
#endif #endif
#else
#define BUFFER_SIZE (32 << BUFFERSIZE)
#endif
#define BASE_ADDRESS (START_ADDRESS - BUFFER_SIZE * MAX_CPU_NUMBER) #define BASE_ADDRESS (START_ADDRESS - BUFFER_SIZE * MAX_CPU_NUMBER)