Logo
Explore Help
Register Sign In
MirrorBackup/GodMode9
1
0
Fork 0
You've already forked GodMode9
forked from Mirror/GodMode9
Code Pull Requests Activity
GodMode9/arm11/source/system/sections.h

18 lines
462 B
C
Raw Normal View History

- properly set up MMU tables with caching and other fun stuff - maps a regular ARM-style exception vector table instead of using the bootrom vector redirection features a ton of bugs because I'm missing something, it actually manages to boot fb3DS v1.2 and BAX fine, but fails to boot itself
2019-04-15 21:27:35 -03:00
#pragma once
- refactored arm11/sys.c - moved common.h from the ARM9 tree to the common code tree - does proper deinit now on the ARM11 side the bug that caused it to fail to launch some FIRMs has been fixed - it can even boot stock FIRMs
2019-04-16 15:42:20 -03:00
#include <types.h>
- properly set up MMU tables with caching and other fun stuff - maps a regular ARM-style exception vector table instead of using the bootrom vector redirection features a ton of bugs because I'm missing something, it actually manages to boot fb3DS v1.2 and BAX fine, but fails to boot itself
2019-04-15 21:27:35 -03:00
#define DEF_SECT_(n) extern u32 __##n##_pa, __##n##_va, __##n##_len; static const u32 n##_pa = (u32)&__##n##_pa, n##_va = (u32)&__##n##_va;
DEF_SECT_(vector)
DEF_SECT_(text)
DEF_SECT_(data)
DEF_SECT_(rodata)
DEF_SECT_(bss)
#undef DEF_SECT_
#define SECTION_VA(n) n##_va
#define SECTION_PA(n) n##_pa
#define SECTION_LEN(n) ((u32)&__##n##_len)
#define SECTION_TRI(n) SECTION_VA(n), SECTION_PA(n), SECTION_LEN(n)
Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 14ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API