mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-07-04 23:31:19 +01:00
Move VAddr/PAddr typedefs to kernel.h
This commit is contained in:
parent
9a345de2bd
commit
b5ee4f9df9
2 changed files with 7 additions and 9 deletions
|
@ -16,6 +16,11 @@
|
||||||
typedef u32 Handle;
|
typedef u32 Handle;
|
||||||
typedef s32 Result;
|
typedef s32 Result;
|
||||||
|
|
||||||
|
// TODO: It would be nice to eventually replace these with strong types that prevent accidental
|
||||||
|
// conversion between each other.
|
||||||
|
typedef u32 VAddr; ///< Represents a pointer in the userspace virtual address space.
|
||||||
|
typedef u32 PAddr; ///< Represents a pointer in the ARM11 physical address space.
|
||||||
|
|
||||||
const Handle INVALID_HANDLE = 0;
|
const Handle INVALID_HANDLE = 0;
|
||||||
|
|
||||||
namespace Kernel {
|
namespace Kernel {
|
||||||
|
|
|
@ -7,12 +7,9 @@
|
||||||
#include "common/common.h"
|
#include "common/common.h"
|
||||||
#include "common/common_types.h"
|
#include "common/common_types.h"
|
||||||
|
|
||||||
namespace Memory {
|
#include "core/hle/kernel/kernel.h"
|
||||||
|
|
||||||
// TODO: It would be nice to eventually replace these with strong types that prevent accidental
|
namespace Memory {
|
||||||
// conversion between each other.
|
|
||||||
typedef u32 VAddr; ///< Represents a pointer in the ARM11 virtual address space.
|
|
||||||
typedef u32 PAddr; ///< Represents a pointer in the physical address space.
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
@ -190,7 +187,3 @@ VAddr PhysicalToVirtualAddress(PAddr addr);
|
||||||
PAddr VirtualToPhysicalAddress(VAddr addr);
|
PAddr VirtualToPhysicalAddress(VAddr addr);
|
||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
// These are used often, so re-export then on the root namespace
|
|
||||||
using Memory::VAddr;
|
|
||||||
using Memory::PAddr;
|
|
||||||
|
|
Loading…
Reference in a new issue