Cleaning up kernel namespaces.

This commit is contained in:
Ben Vanik
2014-08-16 00:25:13 -07:00
parent bf48e9fbbd
commit c84fcc70a4
31 changed files with 76 additions and 174 deletions

View File

@@ -23,18 +23,15 @@
#include <xenia/kernel/objects/xuser_module.h>
using namespace xe;
using namespace xe::kernel;
namespace xe {
namespace kernel {
// This is a global object initialized with the XboxkrnlModule.
// It references the current kernel state object that all kernel methods should
// be using to stash their variables.
namespace xe {
namespace kernel {
KernelState* shared_kernel_state_ = nullptr;
} // namespace kernel
} // namespace xe
KernelState::KernelState(Emulator* emulator) :
emulator_(emulator), memory_(emulator->memory()),
@@ -213,3 +210,6 @@ void KernelState::CompleteOverlappedImmediate(uint32_t overlapped_ptr, X_RESULT
XThread::GetCurrentThreadHandle());
CompleteOverlapped(overlapped_ptr, result, length);
}
} // namespace kernel
} // namespace xe