reduced buffer size

This commit is contained in:
Polprzewodnikowy 2022-01-21 21:42:17 +01:00
parent 8410cbe191
commit 1c8e7a4765
3 changed files with 7 additions and 7 deletions

View File

@ -230,8 +230,8 @@ typedef struct {
io32_t DATA[2];
io32_t VERSION;
io32_t __padding[4092];
io32_t CPU_RAM[3840];
io32_t BUFFER[256];
io32_t CPU_RAM[3968];
io32_t BUFFER[128];
} sc64_regs_t;
#define SC64_BASE (0x1FFF0000UL)

View File

@ -1,6 +1,6 @@
MEMORY {
ram (rwx) : org = 0x00000000, len = 15k
buffer (rw) : org = 0x00003C00, len = 1k
ram (rwx) : org = 0x00000000, len = 16k - 512
buffer (rw) : org = 0x00003E00, len = 512
rom (rx) : org = 0x10010000, len = 26k
}

View File

@ -22,11 +22,11 @@ typedef volatile uint32_t io32_t;
#define RAM_BASE (0x00000000UL)
#define RAMBUFFER_SIZE (512)
#define RAM_SIZE ((16 * 1024) - RAMBUFFER_SIZE)
#define RAMBUFFER_BASE (RAM_BASE + RAM_SIZE)
#define RAM (*((io32_t *) RAM_BASE))
#define RAM_SIZE (15 * 1024)
#define RAMBUFFER_BASE (0x00003C00UL)
#define RAMBUFFER (*((io8_t *) RAMBUFFER_BASE))
#define RAMBUFFER_SIZE (1 * 1024)
#define FLASH_BASE (0x10000000UL)