mirror of
https://github.com/0Nera/BMOSP.git
synced 2024-11-25 18:09:38 +03:00
Исправление предупреждений
This commit is contained in:
parent
84e5169bff
commit
885a097feb
@ -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");
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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
0
modules/ios/build.sh
Normal file → Executable 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"); }
|
||||
}
|
||||
|
||||
|
@ -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"); }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user