Move typedefs from kernel.h to more appropriate places

This commit is contained in:
Yuri Kunde Schlesner 2015-05-06 01:57:23 -03:00
parent 6ad71c216b
commit c916bcf7b5
3 changed files with 13 additions and 10 deletions

View file

@ -4,6 +4,13 @@
#pragma once
#include "common/common_types.h"
typedef u32 Handle;
typedef s32 Result;
const Handle INVALID_HANDLE = 0;
namespace HLE {
extern bool g_reschedule; ///< If true, immediately reschedules the CPU to a new thread

View file

@ -11,18 +11,9 @@
#include <vector>
#include "common/common.h"
#include "core/hle/hle.h"
#include "core/hle/result.h"
typedef u32 Handle;
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;
namespace Kernel {
class Thread;