mirror of
https://github.com/Atmosphere-NX/Atmosphere-libs.git
synced 2025-06-21 02:52:44 +02:00
kern/ldr: move crt0 into .rodata
This commit is contained in:
parent
ba1a07db68
commit
3abc567a73
@ -31,8 +31,22 @@ namespace ams::kern::init {
|
|||||||
u32 dynamic_offset;
|
u32 dynamic_offset;
|
||||||
u32 init_array_offset;
|
u32 init_array_offset;
|
||||||
u32 init_array_end_offset;
|
u32 init_array_end_offset;
|
||||||
|
u32 sysreg_offset;
|
||||||
};
|
};
|
||||||
static_assert(util::is_pod<KernelLayout>::value);
|
static_assert(util::is_pod<KernelLayout>::value);
|
||||||
static_assert(sizeof(KernelLayout) == 0x30);
|
static_assert(sizeof(KernelLayout) == 0x34);
|
||||||
|
|
||||||
|
#if defined(ATMOSPHERE_ARCH_ARM64)
|
||||||
|
struct KernelSystemRegisters {
|
||||||
|
u64 ttbr0_el1;
|
||||||
|
u64 ttbr1_el1;
|
||||||
|
u64 tcr_el1;
|
||||||
|
u64 mair_el1;
|
||||||
|
u64 sctlr_el1;
|
||||||
|
};
|
||||||
|
#else
|
||||||
|
struct KernelSystemRegisters {
|
||||||
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user