mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-06-03 08:08:39 -04:00
Implement CPU state init, fix bug in cpu_context restore
This commit is contained in:
parent
a292e95c2f
commit
301b166684
6 changed files with 55 additions and 3 deletions
17
exosphere/src/syscrt0.h
Normal file
17
exosphere/src/syscrt0.h
Normal file
|
@ -0,0 +1,17 @@
|
|||
#ifndef EXOSPHERE_SYSCRT0_H
|
||||
#define EXOSPHERE_SYSCRT0_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#include "memory_map.h"
|
||||
|
||||
/* Exosphere driver for the Tegra X1 SYSCRT0 Registers. */
|
||||
|
||||
#define SYSCRT0_BASE (MMIO_GET_DEVICE_ADDRESS(MMIO_DEVID_SYSCTR0))
|
||||
|
||||
|
||||
#define MAKE_SYSCRT0_REG(n) (*((volatile uint32_t *)(SYSCRT0_BASE + n)))
|
||||
|
||||
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue