Skip to content

Commit

Permalink
(arch) updated arch definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxXSoft committed May 10, 2020
1 parent 14190a8 commit 142f8d2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/arch/arch.yu
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ all targets must define the following constants:
- MEM_ADDR: i32: physical memory start address
- MEM_SIZE_MIB: i32: physical memory size (MiB)
- SWITCH_ADDR: i32: address of GPIO switch
- LED_ADDR: i32: address of GPIO led
- NUM_ADDR: i32: address of GPIO segment display
- UART_ADDR: i32: address of UART device
- UART_END: i32: end address of UART device
- PLIC_ADDR: i32: address of PLIC device
Expand Down
2 changes: 2 additions & 0 deletions src/arch/target/fuxi.yu
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ inline let FLASH_ADDR = 0x10800000
inline let MEM_ADDR = 0x80000000
inline let MEM_SIZE_MIB = 128
inline let SWITCH_ADDR = 0x1107f020
inline let LED_ADDR = 0x1107f000
inline let NUM_ADDR = 0x1107f010
inline let UART_ADDR = 0x11040000
inline let UART_END = 0x11042000
inline let PLIC_ADDR = 0x11010000
Expand Down
2 changes: 2 additions & 0 deletions src/arch/target/risky32.yu
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ inline let FLASH_ADDR = 0x90020000
inline let MEM_ADDR = 0x80000000
inline let MEM_SIZE_MIB = 4
inline let SWITCH_ADDR = 0x1000f020
inline let LED_ADDR = 0x1000f000
inline let NUM_ADDR = 0x1000f010
inline let UART_ADDR = 0x90000104
inline let UART_END = 0x90000200
inline let PLIC_ADDR = 0x00000000
Expand Down
2 changes: 2 additions & 0 deletions src/arch/target/virt.yu
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ inline let FLASH_ADDR = 0x20000000
inline let MEM_ADDR = 0x80000000
inline let MEM_SIZE_MIB = 128
inline let SWITCH_ADDR = 0x00000000
inline let LED_ADDR = 0x00000000
inline let NUM_ADDR = 0x00000000
inline let UART_ADDR = 0x10000000
inline let UART_END = 0x10000100
inline let PLIC_ADDR = 0x0c000000
Expand Down

0 comments on commit 142f8d2

Please sign in to comment.