mirror of
https://github.com/Leonmmcoset/cleonos.git
synced 2026-04-25 03:54:01 +00:00
Stage 7
This commit is contained in:
8
cleonos/c/apps/elfrunner_main.c
Normal file
8
cleonos/c/apps/elfrunner_main.c
Normal file
@@ -0,0 +1,8 @@
|
||||
#include <cleonos_syscall.h>
|
||||
|
||||
static const char elfrunner_banner[] = "[KAPP][ELFRUNNER] elfrunner.elf online";
|
||||
|
||||
int cleonos_app_main(void) {
|
||||
cleonos_sys_log_write(elfrunner_banner, (u64)(sizeof(elfrunner_banner) - 1U));
|
||||
return 0;
|
||||
}
|
||||
10
cleonos/c/apps/memc_main.c
Normal file
10
cleonos/c/apps/memc_main.c
Normal file
@@ -0,0 +1,10 @@
|
||||
#include <cleonos_syscall.h>
|
||||
|
||||
static const char memc_banner[] = "[KAPP][MEMC] memc.elf online";
|
||||
|
||||
int cleonos_app_main(void) {
|
||||
u64 ticks = cleonos_sys_timer_ticks();
|
||||
(void)ticks;
|
||||
cleonos_sys_log_write(memc_banner, (u64)(sizeof(memc_banner) - 1U));
|
||||
return 0;
|
||||
}
|
||||
13
cleonos/c/apps/shell_main.c
Normal file
13
cleonos/c/apps/shell_main.c
Normal file
@@ -0,0 +1,13 @@
|
||||
#include <cleonos_rust_bridge.h>
|
||||
#include <cleonos_syscall.h>
|
||||
|
||||
static const char shell_banner[] = "[USER][SHELL] shell.elf online";
|
||||
static const char shell_status[] = "[USER][SHELL] syscall int80 path ok";
|
||||
|
||||
int cleonos_app_main(void) {
|
||||
u64 len = cleonos_rust_guarded_len((const unsigned char *)shell_banner, (usize)(sizeof(shell_banner) - 1U));
|
||||
|
||||
cleonos_sys_log_write(shell_banner, len);
|
||||
cleonos_sys_log_write(shell_status, (u64)(sizeof(shell_status) - 1U));
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user