Prepare save spot for booting
This commit is contained in:
23
include/PSX/jabyengine.h
Normal file
23
include/PSX/jabyengine.h
Normal file
@@ -0,0 +1,23 @@
|
||||
#ifndef __JABYENGINE__H__
|
||||
#define __JABYENGINE__H__
|
||||
#include "../stdint.h"
|
||||
|
||||
namespace JabyEngine {
|
||||
struct NextRoutine {
|
||||
typedef NextRoutine (*ExecutionFunction)();
|
||||
|
||||
uintptr_t value;
|
||||
|
||||
static NextRoutine null() {
|
||||
return {.value = 0};
|
||||
}
|
||||
|
||||
static NextRoutine from(ExecutionFunction function) {
|
||||
return {.value = reinterpret_cast<uintptr_t>(function)};
|
||||
}
|
||||
};
|
||||
|
||||
typedef NextRoutine::ExecutionFunction ExecutionFunction;
|
||||
}
|
||||
|
||||
#endif //!__JABYENGINE__H__
|
@@ -1,5 +1,5 @@
|
||||
#ifndef __JABYENGINE_DEFINES__H
|
||||
#define __JABYENGINE_DEFINES__H
|
||||
#ifndef __JABYENGINE_DEFINES__H__
|
||||
#define __JABYENGINE_DEFINES__H__
|
||||
#include "../stddef.h"
|
||||
|
||||
#define __keep __attribute__((used))
|
||||
@@ -13,4 +13,4 @@
|
||||
#else
|
||||
#define __constexpr
|
||||
#endif
|
||||
#endif //!__JABYENGINE_DEFINES__H
|
||||
#endif //!__JABYENGINE_DEFINES__H__
|
Reference in New Issue
Block a user