mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-12-05 02:34:07 +01:00
99ceb03a1c
This formats all copyright comments according to SPDX formatting guidelines. Additionally, this resolves the remaining GPLv2 only licensed files by relicensing them to GPLv2.0-or-later.
34 lines
751 B
C++
34 lines
751 B
C++
// SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include "common/common_types.h"
|
|
#include "common/literals.h"
|
|
|
|
namespace Kernel {
|
|
using Handle = u32;
|
|
}
|
|
|
|
namespace Kernel::Svc {
|
|
|
|
using namespace Common::Literals;
|
|
|
|
constexpr s32 ArgumentHandleCountMax = 0x40;
|
|
constexpr u32 HandleWaitMask{1u << 30};
|
|
|
|
constexpr inline std::size_t HeapSizeAlignment = 2_MiB;
|
|
|
|
constexpr inline Handle InvalidHandle = Handle(0);
|
|
|
|
enum PseudoHandle : Handle {
|
|
CurrentThread = 0xFFFF8000,
|
|
CurrentProcess = 0xFFFF8001,
|
|
};
|
|
|
|
constexpr bool IsPseudoHandle(Handle handle) {
|
|
return handle == PseudoHandle::CurrentProcess || handle == PseudoHandle::CurrentThread;
|
|
}
|
|
|
|
} // namespace Kernel::Svc
|