mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-06-04 16:53:48 -04:00
kern: add svc stubs, turn on svc table build
This commit is contained in:
parent
4b6b06fcaa
commit
5dae43b192
35 changed files with 2000 additions and 6 deletions
|
@ -13,7 +13,10 @@
|
|||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#ifdef MESOSPHERE_USE_STUBBED_SVC_TABLES
|
||||
#include <mesosphere/kern_debug_log.hpp>
|
||||
#endif
|
||||
|
||||
#include <mesosphere/svc/kern_svc_tables.hpp>
|
||||
#include <vapours/svc/svc_codegen.hpp>
|
||||
|
||||
|
@ -21,8 +24,7 @@ namespace ams::kern::svc {
|
|||
|
||||
namespace {
|
||||
|
||||
/* TODO: Enable compilation of this file when the kernel supports supervisor calls. */
|
||||
#if 0
|
||||
#ifndef MESOSPHERE_USE_STUBBED_SVC_TABLES
|
||||
#define DECLARE_SVC_STRUCT(ID, RETURN_TYPE, NAME, ...) \
|
||||
class NAME { \
|
||||
private: \
|
||||
|
@ -35,8 +37,8 @@ namespace ams::kern::svc {
|
|||
#define DECLARE_SVC_STRUCT(ID, RETURN_TYPE, NAME, ...) \
|
||||
class NAME { \
|
||||
public: \
|
||||
static NOINLINE void Call64() { MESOSPHERE_LOG("Stubbed Svc"#NAME"64 was called\n"); } \
|
||||
static NOINLINE void Call64From32() { MESOSPHERE_LOG("Stubbed Svc"#NAME"64From32 was called\n"); } \
|
||||
static NOINLINE void Call64() { MESOSPHERE_PANIC("Stubbed Svc"#NAME"64 was called"); } \
|
||||
static NOINLINE void Call64From32() { MESOSPHERE_PANIC("Stubbed Svc"#NAME"64From32 was called"); } \
|
||||
};
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue