9os

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

commit d89171c4fc42050b53473e75fc313573ddeaf013
parent 12c7abc09cce19da01934653b112b89358462bd8
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Wed,  6 Nov 2024 21:11:53 +0100

os9: Move idle() to generic code

This function can be the same for every platform, and it does
not make sense to implement it for every platform.

Diffstat:
Minclude/os9/os9.h | 1-
Msrc/os9/hosted/arch.c | 5-----
Msrc/os9/proc.c | 5+++++
3 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/include/os9/os9.h b/include/os9/os9.h @@ -349,7 +349,6 @@ extern Ptable *initptable(Task *); extern void ictx(Task *, void *); extern int dupctx(Task *); extern char *getconf(char *); -extern void idle(void); /* dev functions */ extern void idev(void); diff --git a/src/os9/hosted/arch.c b/src/os9/hosted/arch.c @@ -72,8 +72,3 @@ outm32(uint32_t val, void *addr) { return 0; } - -void -idle(void) -{ -} diff --git a/src/os9/proc.c b/src/os9/proc.c @@ -301,6 +301,11 @@ kproc(void *fn) return tp; } +static void +idle(void) +{ +} + void sched(void) {