x1000: Centralize common definitions, memory layout

Change-Id: I8daad058ae55d4b750b1ae407153e4917de5d095
This commit is contained in:
Aidan MacDonald 2021-04-26 22:57:31 +01:00
parent ed8c977e2f
commit 20fc928221
7 changed files with 103 additions and 56 deletions

View file

@ -77,9 +77,9 @@ OUTPUT_FORMAT(elf32-littlemips)
#include "cpu.h"
#define DRAMSIZE (DRAM_SIZE - PLUGIN_BUFFER_SIZE - CODEC_SIZE - FRAME_SIZE - TTB_SIZE)
#elif CONFIG_CPU==X1000
#include "config.h"
#include "cpu.h"
#undef STUBOFFSET
#define STUBOFFSET 0x4000
#define DRAMSIZE (X1000_DRAM_SIZE - PLUGIN_BUFFER_SIZE - CODEC_SIZE)
#endif
/* default to full RAM (minus codecs&plugins) unless specified otherwise */
@ -179,7 +179,7 @@ OUTPUT_FORMAT(elf32-littlemips)
/* The bit of IRAM that is available is used in the core */
#elif CONFIG_CPU == X1000
#define DRAMORIG (0x80000000 + STUBOFFSET)
#define DRAMORIG X1000_DRAM_BASE
#define IRAM DRAM
#define IRAMSIZE 0