mirror of
https://github.com/0Nera/BMOSP.git
synced 2024-11-22 00:21:22 +03:00
Монтирование данных из других модулей в IMFS
This commit is contained in:
parent
f61e12d5f8
commit
a7703f54ab
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
@ -22,6 +22,7 @@
|
||||
"random": "c",
|
||||
"6x8_slim_font.h": "c",
|
||||
"log.h": "c",
|
||||
"mem.h": "c"
|
||||
"mem.h": "c",
|
||||
"lock.h": "c"
|
||||
}
|
||||
}
|
@ -39,6 +39,8 @@ void _start( ) {
|
||||
LOG("\t\t\t\t *** Дата сборки: %s %s ***\n", __DATE__, __TIME__);
|
||||
|
||||
mod_init( );
|
||||
mod_after_init( );
|
||||
|
||||
pit_init( );
|
||||
task_init( );
|
||||
|
||||
@ -48,6 +50,5 @@ void _start( ) {
|
||||
|
||||
asm volatile("sti");
|
||||
|
||||
// mod_after_init( );
|
||||
for (;;) { asm volatile("hlt"); }
|
||||
}
|
@ -147,7 +147,9 @@ static void main( ) {
|
||||
module_info_t *mod_list = mod_list_get(&mod_count);
|
||||
|
||||
for (uint64_t i = 0; i < mod_count; i++) {
|
||||
add_file(mod_list[i].name, "", mod_f, mod_list[i].data, mod_list[i].data_size);
|
||||
if (mod_list[i].data_size) {
|
||||
add_file(mod_list[i].name, "datafile", mod_f, mod_list[i].data, mod_list[i].data_size);
|
||||
}
|
||||
}
|
||||
print_folder_contents(root_folder, 0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user