mirror of
https://github.com/d0k3/GodMode9.git
synced 2025-06-26 21:52:48 +00:00
- added initial SCU twiddling - added very untested and unusable SMP code - fixed race condition that happened on boot - added initial MMU code (just super basic identity mapping, no caching set up or anything) - enabled some of the fancier ARMv6 features - reorganized ARM11 files into their own folders - possibly more stuff I'm forgetting about
38 lines
619 B
C
38 lines
619 B
C
#pragma once
|
|
|
|
#ifndef ARM9
|
|
#ifndef ARM11
|
|
#error "Unknown processor"
|
|
#endif
|
|
#endif
|
|
|
|
#define BIT(x) (1 << (x))
|
|
|
|
#ifndef __ASSEMBLER__
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
#include <stddef.h>
|
|
|
|
#define asm_v asm __volatile__
|
|
|
|
typedef uint8_t u8;
|
|
typedef uint16_t u16;
|
|
typedef uint32_t u32;
|
|
typedef uint64_t u64;
|
|
|
|
typedef int64_t s8;
|
|
typedef int64_t s16;
|
|
typedef int64_t s32;
|
|
typedef int64_t s64;
|
|
|
|
typedef volatile u8 vu8;
|
|
typedef volatile u16 vu16;
|
|
typedef volatile u32 vu32;
|
|
typedef volatile u64 vu64;
|
|
|
|
typedef volatile s8 vs8;
|
|
typedef volatile s16 vs16;
|
|
typedef volatile s32 vs32;
|
|
typedef volatile s64 vs64;
|
|
#endif
|