2022-03-21 05:20:19 +00:00
|
|
|
/***
|
|
|
|
Copyright (C) 2022 J Reece Wilson (a/k/a "Reece"). All rights reserved.
|
|
|
|
|
|
|
|
File: Transition.hpp
|
|
|
|
Date: 2022-3-21
|
|
|
|
Author: Reece
|
|
|
|
***/
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
namespace Aurora::Memory::Transition
|
|
|
|
{
|
|
|
|
struct EXTransitionOperationBase
|
|
|
|
{
|
|
|
|
AuUInt RWAddress;
|
|
|
|
AuUInt EXAddress;
|
|
|
|
AuUInt length;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct EXTransitionOperation
|
|
|
|
{
|
|
|
|
EXTransitionOperationBase base;
|
|
|
|
union
|
|
|
|
{
|
|
|
|
AuUInt8 reserved[64];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
AUKN_SHARED_API(MemoryTransactor, EXTransitionOperation);
|
|
|
|
|
2022-03-26 16:18:50 +00:00
|
|
|
AUKN_SYM bool ReserveMemory(const AuSPtr<EXTransitionOperation> &operation, AuUInt length, bool prefetch = true);
|
|
|
|
AUKN_SYM bool CommitToExecutable(const AuSPtr<EXTransitionOperation> &operation);
|
2022-03-21 05:20:19 +00:00
|
|
|
AUKN_SYM void Free(const AuSPtr<EXTransitionOperation> &operation);
|
|
|
|
}
|