mirror of
https://github.com/Leonmmcoset/cleonos.git
synced 2026-04-21 18:44:01 +00:00
Stage 11
This commit is contained in:
11
clks/include/clks/exec.h
Normal file
11
clks/include/clks/exec.h
Normal file
@@ -0,0 +1,11 @@
|
||||
#ifndef CLKS_EXEC_H
|
||||
#define CLKS_EXEC_H
|
||||
|
||||
#include <clks/types.h>
|
||||
|
||||
void clks_exec_init(void);
|
||||
clks_bool clks_exec_run_path(const char *path, u64 *out_status);
|
||||
u64 clks_exec_request_count(void);
|
||||
u64 clks_exec_success_count(void);
|
||||
|
||||
#endif
|
||||
@@ -12,9 +12,16 @@
|
||||
#define CLKS_SYSCALL_CONTEXT_SWITCHES 6ULL
|
||||
#define CLKS_SYSCALL_KELF_COUNT 7ULL
|
||||
#define CLKS_SYSCALL_KELF_RUNS 8ULL
|
||||
#define CLKS_SYSCALL_FS_NODE_COUNT 9ULL
|
||||
#define CLKS_SYSCALL_FS_CHILD_COUNT 10ULL
|
||||
#define CLKS_SYSCALL_FS_GET_CHILD_NAME 11ULL
|
||||
#define CLKS_SYSCALL_FS_READ 12ULL
|
||||
#define CLKS_SYSCALL_EXEC_PATH 13ULL
|
||||
#define CLKS_SYSCALL_EXEC_REQUESTS 14ULL
|
||||
#define CLKS_SYSCALL_EXEC_SUCCESS 15ULL
|
||||
|
||||
void clks_syscall_init(void);
|
||||
u64 clks_syscall_dispatch(void *frame_ptr);
|
||||
u64 clks_syscall_invoke_kernel(u64 id, u64 arg0, u64 arg1, u64 arg2);
|
||||
|
||||
#endif
|
||||
#endif
|
||||
Reference in New Issue
Block a user