mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-06-02 23:59:49 -04:00
ams_mitm: Implement emummc Nintendo folder redirection
This commit is contained in:
parent
733f2b3cdd
commit
746dbfe018
78 changed files with 2190 additions and 187 deletions
|
@ -37,7 +37,7 @@ extern "C" {
|
|||
void __appExit(void);
|
||||
|
||||
/* Exception handling. */
|
||||
alignas(16) u8 __nx_exception_stack[0x1000];
|
||||
alignas(16) u8 __nx_exception_stack[ams::os::MemoryPageSize];
|
||||
u64 __nx_exception_stack_size = sizeof(__nx_exception_stack);
|
||||
void __libnx_exception_handler(ThreadExceptionDump *ctx);
|
||||
}
|
||||
|
|
|
@ -36,9 +36,9 @@ namespace ams::fatal::srv {
|
|||
class ITaskWithStack : public ITask {
|
||||
public:
|
||||
static constexpr size_t StackSize = _StackSize;
|
||||
static_assert(util::IsAligned(StackSize, 0x1000), "StackSize alignment");
|
||||
static_assert(util::IsAligned(StackSize, os::MemoryPageSize), "StackSize alignment");
|
||||
protected:
|
||||
alignas(0x1000) u8 stack_mem[StackSize] = {};
|
||||
alignas(os::MemoryPageSize) u8 stack_mem[StackSize] = {};
|
||||
public:
|
||||
virtual u8 *GetStack() override final {
|
||||
return this->stack_mem;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue