From c916bcf7b53bb7d0e909e7ec45b0740a09a661b6 Mon Sep 17 00:00:00 2001 From: Yuri Kunde Schlesner Date: Wed, 6 May 2015 01:57:23 -0300 Subject: Move typedefs from kernel.h to more appropriate places --- src/common/common_types.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/common/common_types.h') diff --git a/src/common/common_types.h b/src/common/common_types.h index 5c004c5f..644709ba 100644 --- a/src/common/common_types.h +++ b/src/common/common_types.h @@ -47,6 +47,11 @@ typedef std::int64_t s64; ///< 64-bit signed int typedef float f32; ///< 32-bit floating point typedef double f64; ///< 64-bit floating point +// 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. + /// Union for fast 16-bit type casting union t16 { u8 _u8[2]; ///< 8-bit unsigned char(s) -- cgit v1.2.3