2018-02-25 02:34:15 +00:00
|
|
|
#include "utils.h"
|
|
|
|
#include "memory_map.h"
|
|
|
|
|
2018-02-28 06:32:14 +00:00
|
|
|
void __set_memory_registers(uintptr_t ttbr0, uintptr_t vbar, uint64_t cpuectlr, uint32_t scr,
|
|
|
|
uint32_t tcr, uint32_t cptr, uint64_t mair, uint32_t sctlr);
|
|
|
|
|
2018-02-25 02:34:15 +00:00
|
|
|
uintptr_t get_warmboot_crt0_stack_address(void);
|
2018-02-28 06:32:14 +00:00
|
|
|
void set_memory_registers(void);
|
2018-02-25 02:34:15 +00:00
|
|
|
|
|
|
|
void flush_dcache_all_tzram_pa(void) {
|
|
|
|
/* TODO */
|
|
|
|
}
|
|
|
|
|
|
|
|
void invalidate_icache_all_tzram_pa(void) {
|
|
|
|
/* TODO */
|
|
|
|
}
|
|
|
|
|
2018-02-25 19:00:50 +00:00
|
|
|
uintptr_t get_warmboot_crt0_stack_address(void) {
|
2018-02-27 15:10:56 +00:00
|
|
|
return TZRAM_GET_SEGMENT_PA(TZRAM_SEGMENT_ID_CORE012_STACK) + 0x800;
|
2018-02-25 02:34:15 +00:00
|
|
|
}
|
2018-02-27 01:41:31 +00:00
|
|
|
|
|
|
|
void warmboot_init(void) {
|
|
|
|
/* TODO: Implement. */
|
2018-02-27 15:10:56 +00:00
|
|
|
}
|