Исправление предупреждений

This commit is contained in:
Aren 2024-02-01 18:24:01 +03:00
parent 84e5169bff
commit 885a097feb
6 changed files with 6 additions and 5 deletions

View File

@ -73,7 +73,7 @@ static void exception_handler(struct frame state) {
}
stack_frame_t *stk;
stk = state.rbp;
stk = (stack_frame_t *)state.rbp;
LOG("Трассировка стека:\n");

View File

@ -127,7 +127,7 @@ void mod_init( ) {
continue;
}
module_info_t (*module_init)(env_t * env) =
module_info_t (*module_init)(env_t *env) =
(module_info_t(*)(env_t * env)) elf_entry((elf64_header_t *)module_ptr->address);
// LOG("\t->Точка входа: 0x%x\n", module_init);
@ -136,7 +136,7 @@ void mod_init( ) {
sys_install(&main_env);
uint64_t id = task_new_thread(1, module_list[i].name);
uint64_t id = task_new_thread((void *)1, module_list[i].name);
module_info_t ret = module_init(&main_env);
LOG("\t->%s\n", ret.message);

View File

@ -1,6 +1,6 @@
#include <system.h>
static const char name[] = "Привет мир!";
static const char name[] = "[APP]Привет мир!";
static const char message[] = "Привет из модуля!";
module_info_t __attribute__((section(".minit"))) init(env_t *env) {

0
modules/ios/build.sh Normal file → Executable file
View File

View File

@ -36,6 +36,7 @@ static void main( ) {
delete_thread( );
} else {
app_list = realloc(app_list, app_count * sizeof(module_info_t));
for (uint64_t i = 0; i < app_count; i++) { fb_printf("%2u.\t%s\n", app_list[i]); }
for (;;) { asm volatile("hlt"); }
}

View File

@ -80,7 +80,7 @@ static int is_ctrl(uint8_t scancode) {
}
}
static void handler(struct frame *state) {
void handler(struct frame *state) {
(void)state;
while (!(inb(0x64) & 1)) { asm volatile("pause"); }