[Add] full funtion except execeptions and cache/TLB added

This commit is contained in:
bLueriVerLHR
2023-05-14 17:46:12 +08:00
parent f3d2382a60
commit 399c978c09
3 changed files with 612 additions and 149 deletions

View File

@@ -4,11 +4,15 @@
#define DEVADDR_H__
#define RAM_ADDR 0x0000'0000
#define IMG_ADDR 0x0001'04d8
#define STK_ADDR 0x2000'0000
#define RST_ADDR 0x1c00'0000
#define HEAP_ADDR 0x2000'0000
#define HEAP_SIZE 0x0020'0000
#define STAK_SIZE 0x0002'0000
#define STAK_ADDR (HEAP_ADDR + HEAP_SIZE + STAK_SIZE)
#define DEVICE_BASE 0xa0000000
#define MMIO_BASE 0xa0000000
#define MMIO_BASE 0xa0000000
#define SERIAL_PORT (DEVICE_BASE + 0x00003f8)
#define KBD_ADDR (DEVICE_BASE + 0x0000060)