| 12345678910111213141516171819202122232425262728293031323334 | #ifndef SYS_H#define SYS_H/* * Various constants that need to match the hardware configuration. * This file must be includable from assembly and from a linker script. * * The base constants should be defined in iodevs.conf; this file contains * derived constants. */#include "compiler.h"#include "iodevs.h"#define SRAM_SIZE      (0x1 << SRAM_BITS)#define SRAM_MASK      (SRAM_SIZE - 1)#define SRAM_END       (SRAM_ADDR + SRAM_SIZE)#define STACK_SIZE	2048		/* Minimum stack size */#define STACK_TOP	SRAM_END	/* Initial stack pointer */#define STACK_BOTTOM	(STACK_TOP - STACK_SIZE)#define IRQSTACK_SIZE	1024		/* Interrupt stack size */#define IRQSTACK_TOP	STACK_BOTTOM#define IRQSTACK_BOTTOM	(IRQSTACK_TOP - IRQSTACK_SIZE)#define SDRAM_SIZE      (0x1 << SDRAM_BITS)#define SDRAM_MASK      (SDRAM_SIZE - 1)#define SDRAM_END       (SDRAM_ADDR + SDRAM_SIZE)/* Starting offset in flash for non-FPGA use */#define ROM_OFFSET	0x100000#endif /* SYS_H */
 |