-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
m68k stuff, scheduler improvement, start of vix ABI
- Loading branch information
1 parent
8416ff6
commit c944fc8
Showing
16 changed files
with
76 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
config ENABLE_LINUX_ABI | ||
config ENABLE_ABI_LINUX | ||
default y | ||
bool "Enable Linux ABI" | ||
|
||
config ENABLE_ABI_VIX | ||
default y | ||
bool "Enable vix ABI" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
obj-d += linux | ||
obj-d += linux vix |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
obj-$(CONFIG_ENABLE_LINUX_ABI) += exit.ocpp write.ocpp read.ocpp sysinfo.ocpp | ||
obj-$(CONFIG_ENABLE_ABI_LINUX) += exit.ocpp write.ocpp read.ocpp sysinfo.ocpp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
obj-d += syscalls |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
obj-$(CONFIG_ENABLE_ABI_VIX) += exit.ocpp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#include <abi/vix/calls.h> | ||
#include <kprintf.h> | ||
#include <sched.h> | ||
|
||
__DEF_VIX_SYSCALL(sys_exit) { | ||
int status = (int)sysarg0; | ||
kprintf(KP_INFO, "PID %d dying status: %d\n", sched::mypid(), status); | ||
sched::die(); | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#pragma once | ||
#include <config.h> | ||
|
||
namespace abi { | ||
enum class type { | ||
#ifdef CONFIG_ENABLE_ABI_LINUX | ||
LINUX, | ||
#endif | ||
#ifdef CONFIG_ENABLE_ABI_VIX | ||
VIX, | ||
#endif | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#pragma once | ||
#include <abi/vix/vix.h> | ||
|
||
#define __DECL_VIX_SYSCALL(name) \ | ||
abi::vix::syscall_arg_t name(abi::vix::syscall_arg_t sysarg0, \ | ||
abi::vix::syscall_arg_t sysarg1, \ | ||
abi::vix::syscall_arg_t sysarg2, \ | ||
abi::vix::syscall_arg_t sysarg3, \ | ||
abi::vix::syscall_arg_t sysarg4, \ | ||
abi::vix::syscall_arg_t sysarg5) | ||
|
||
#define __DEF_VIX_SYSCALL(name) __DECL_VIX_SYSCALL(abi::vix::name) | ||
|
||
namespace abi::vix { | ||
__DECL_VIX_SYSCALL(sys_exit); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#pragma once | ||
#include <types.h> | ||
|
||
namespace abi::vix { | ||
struct task {}; | ||
typedef uintptr_t syscall_arg_t; | ||
typedef uintptr_t syscall_return_t; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters