9os

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 60adb80fd49472ba9b3fc06df04aea6b61c82692
parent 6e5e71abe5d5783b799490a44b43bf006c8b8044
Author: Roberto E. Vargas Caballero <roberto.vargas@midokura.com>
Date:   Tue, 22 Nov 2022 19:44:29 +0100

os9: Call info() in isys()

It avoids calling info() in every main.

Diffstat:
Minclude/os9/os9.h | 1-
Msrc/os9/arch/arm64/main.c | 1-
Msrc/os9/hosted/main.c | 1-
Msrc/os9/sys.c | 3++-
4 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/include/os9/os9.h b/include/os9/os9.h @@ -291,7 +291,6 @@ extern Map *newmap(Map *); /* sys.c */ extern void isys(void); -extern void info(void); /* dlang.c */ extern int debug(void); diff --git a/src/os9/arch/arm64/main.c b/src/os9/arch/arm64/main.c @@ -58,7 +58,6 @@ imach(void) void main(Mach *m) { - info(); ifpu(); igic(); isys(); diff --git a/src/os9/hosted/main.c b/src/os9/hosted/main.c @@ -56,7 +56,6 @@ imach(void) int main(int argc, char *argv[]) { - info(); imach(); isys(); diff --git a/src/os9/sys.c b/src/os9/sys.c @@ -104,7 +104,7 @@ iconf(void) devclose(c); } -void +static void info(void) { kprint("Booting os9\n"); @@ -114,6 +114,7 @@ info(void) void isys(void) { + info(); ialloc(); iproc(); idev();