Вернули в активную разработку Синапс ОС
This commit is contained in:
parent
d6691de198
commit
e7233a7b4c
|
@ -133,7 +133,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);
|
||||
|
|
|
@ -2,6 +2,59 @@
|
|||
|
||||
static const char name[] = "[APP]Привет мир!";
|
||||
static const char message[] = "Привет из модуля!";
|
||||
static const char logo[] = "\n\n"
|
||||
"\t ,:;;;;:, \n"
|
||||
"\t :++******++: \n"
|
||||
"\t ;****+;;+****; \n"
|
||||
"\t :****;, ,;****, \n"
|
||||
"\t :****: :****: \n"
|
||||
"\t ,;****+;;+****; \n"
|
||||
"\t ,;+********+: \n"
|
||||
"\t ,:;****;:, \n"
|
||||
"\t :****, \n"
|
||||
"\t :****, \n"
|
||||
"\t :****, \n"
|
||||
"\t :****, \n"
|
||||
"\t ,:;****;:,, \n"
|
||||
"\t :*********+;:, \n"
|
||||
"\t :++;;+++****+;, \n"
|
||||
"\t ,:;****+: \n"
|
||||
"\t ,, ,,::,, :+****: \n"
|
||||
"\t ,++;;, ,;+****+;, ,+***+, \n"
|
||||
"\t ;****: ;********; :****: \n"
|
||||
"\t ;****, ;********+ :****: \n"
|
||||
"\t ,****; ,;+*****;, ,+***+, \n"
|
||||
"\t ;****;, ,::::, ,+****; \n"
|
||||
"\t ,:;+*****+;,, ,,;+*****+;:, \n"
|
||||
"\t ,:;+****++*****+;;;;;++****+++****+;:, \n"
|
||||
"\t ,,,::,,, ,:;+****+;:, :;+***********++;, ,:;+****+;:,,:;;;;;;:,, \n"
|
||||
"\t ,:+++****++;:,,:;+****+;:, ,,:;;;;;;;::, ,:;+****++*********+:, \n"
|
||||
"\t ,;+****++++****++****+;:, ,:;+****+;;;;+****+, \n"
|
||||
"\t ,+***+;:,,,,:;+****+;:, :****;, :+***+,\n"
|
||||
"\t ;***+: :+***; ;***+, :****:\n"
|
||||
"\t,+***; ;***+, ;****: ,;***+,\n"
|
||||
"\t +***+, ,+***+ ,+***+;:,,,:+****: \n"
|
||||
"\t :+***+:, ,:+***+: ,;+***********+: \n"
|
||||
"\t :+****++;;++****+, ,:;+++++++;:, \n"
|
||||
"\t ,:++********++:, ,,,,, \n"
|
||||
"\t ,::;;;;::, "
|
||||
"\n\n";
|
||||
static const char logo_synapseos[] = "\n\n"
|
||||
"\t\t :::::::: ::: ::: :::: ::: ::: ::::::::: "
|
||||
" :::::::: :::::::::: :::::::: ::::::::\n"
|
||||
"\t\t :+: :+: :+: :+: :+:+: :+: :+: :+: :+: :+: "
|
||||
" :+: :+: :+: :+: :+: :+: :+:\n"
|
||||
"\t\t +:+ +:+ +:+ :+:+:+ +:+ +:+ +:+ +:+ +:+ "
|
||||
" +:+ +:+ +:+ +:+ +:+\n"
|
||||
"\t\t +#++:++#++ +#++: +#+ +:+ +#+ +#++:++#++: +#++:++#+ "
|
||||
" +#++:++#++ +#++:++# +#+ +:+ +#++:++#++\n"
|
||||
"\t\t +#+ +#+ +#+ +#+#+# +#+ +#+ +#+ "
|
||||
" +#+ +#+ +#+ +#+ +#+\n"
|
||||
"\t\t#+# #+# #+# #+# #+#+# #+# #+# #+# "
|
||||
"#+# #+# #+# #+# #+# #+# #+#\n"
|
||||
"\t\t######## ### ### #### ### ### ### "
|
||||
"######## ########## ######## ########\n"
|
||||
"\n\t\t\t\tМы вернулись!\n\n";
|
||||
|
||||
static int app_main( ) {
|
||||
log_printf("[%s]\n", message);
|
||||
|
@ -11,6 +64,8 @@ static int app_main( ) {
|
|||
module_info_t __attribute__((section(".minit"))) init(env_t *env) {
|
||||
init_env(env);
|
||||
log_printf("[%s]\n", message);
|
||||
log_printf("%s\n", logo);
|
||||
log_printf("%s\n", logo_synapseos);
|
||||
return (module_info_t){ .name = (char *)&name,
|
||||
.message = (char *)&message,
|
||||
.type = 0,
|
||||
|
|
Loading…
Reference in New Issue