1 INTERFACE[arm && realview]:
3 #include "mem_layout.h"
13 Id = Mem_layout::System_regs_map_base + 0x0,
14 Sw = Mem_layout::System_regs_map_base + 0x4,
15 Led = Mem_layout::System_regs_map_base + 0x8,
16 Lock = Mem_layout::System_regs_map_base + 0x20,
17 Flags = Mem_layout::System_regs_map_base + 0x30,
18 Flags_clr = Mem_layout::System_regs_map_base + 0x34,
19 Cnt_24mhz = Mem_layout::System_regs_map_base + 0x5c,
20 Pld_ctrl1 = Mem_layout::System_regs_map_base + 0x74,
21 Pld_ctrl2 = Mem_layout::System_regs_map_base + 0x78,
27 IMPLEMENTATION[arm && realview]:
31 PUBLIC static inline NEEDS["io.h"]
33 Platform::write(enum Sys::Registers reg, Mword val)
34 { Io::write<Mword>(val, reg); }
36 PUBLIC static inline NEEDS["io.h"]
38 Platform::read(enum Sys::Registers reg)
39 { return Io::read<Mword>(reg); }