mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-19 09:25:08 -04:00
Adapt code to match last commit, link in bpmpfw_bin(_size)
This commit is contained in:
parent
984ade3ede
commit
9384546753
4 changed files with 22 additions and 11 deletions
|
@ -7,7 +7,11 @@
|
|||
|
||||
/* Exosphere register definitions for the Tegra X1 Flow Controller. */
|
||||
|
||||
#define FLOW_BASE (mmio_get_device_address(MMIO_DEVID_FLOWCTRL))
|
||||
static inline uintptr_t get_flow_base(void) {
|
||||
return MMIO_GET_DEVICE_ADDRESS(MMIO_DEVID_FLOWCTRL);
|
||||
}
|
||||
|
||||
#define FLOW_BASE (get_flow_base())
|
||||
|
||||
#define MAKE_FLOW_REG(ofs) (*((volatile uint32_t *)(FLOW_BASE + ofs)))
|
||||
|
||||
|
@ -43,4 +47,4 @@ static inline void flow_clear_csr0_and_events(uint32_t core) {
|
|||
MAKE_FLOW_REG(g_flow_core_offsets[core].HALT_CPUN_EVENTS_OFS) = 0;
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue