2014-04-11 15:44:21 -07:00
|
|
|
// Copyright 2014 Citra Emulator Project
|
2014-12-16 21:38:14 -08:00
|
|
|
// Licensed under GPLv2 or any later version
|
2014-11-19 00:49:13 -08:00
|
|
|
// Refer to the license.txt file included.
|
2014-04-11 15:44:21 -07:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2018-11-12 10:59:29 -08:00
|
|
|
#include <memory>
|
2014-04-11 15:44:21 -07:00
|
|
|
#include "common/common_types.h"
|
2018-11-05 07:38:35 -08:00
|
|
|
|
|
|
|
namespace Core {
|
|
|
|
class System;
|
|
|
|
} // namespace Core
|
2014-04-11 15:44:21 -07:00
|
|
|
|
2017-12-09 18:05:43 -08:00
|
|
|
namespace Kernel {
|
2014-05-15 15:25:56 -07:00
|
|
|
|
2018-11-12 10:59:29 -08:00
|
|
|
class SVC;
|
2015-11-26 19:00:16 -08:00
|
|
|
|
2018-11-12 10:59:29 -08:00
|
|
|
class SVCContext {
|
2018-11-05 07:38:35 -08:00
|
|
|
public:
|
2018-11-12 10:59:29 -08:00
|
|
|
SVCContext(Core::System& system);
|
|
|
|
~SVCContext();
|
2018-11-05 07:38:35 -08:00
|
|
|
void CallSVC(u32 immediate);
|
|
|
|
|
|
|
|
private:
|
2018-11-12 10:59:29 -08:00
|
|
|
std::unique_ptr<SVC> impl;
|
2018-11-05 07:38:35 -08:00
|
|
|
};
|
2014-04-11 15:44:21 -07:00
|
|
|
|
2017-12-09 18:05:43 -08:00
|
|
|
} // namespace Kernel
|