--- Gnu-Mach/kern/ast.c 2020/09/02 04:36:57 1.1.1.1 +++ Gnu-Mach/kern/ast.c 2020/09/02 04:47:27 1.1.1.4 @@ -35,44 +35,42 @@ * */ -#include -#include -#include - #include #include +#include #include "cpu_number.h" #include #include #include #include #include +#include #include /* for splsched */ #if MACH_FIXPRI #include -#endif MACH_FIXPRI +#endif /* MACH_FIXPRI */ volatile ast_t need_ast[NCPUS]; void -ast_init() +ast_init(void) { #ifndef MACHINE_AST - register int i; + int i; for (i=0; i 1 +#endif /* NCPUS > 1 */ case PROCESSOR_RUNNING: @@ -194,10 +187,10 @@ ast_check() } } else { -#endif MACH_FIXPRI +#endif /* MACH_FIXPRI */ rq = &(myprocessor->processor_set->runq); if (!(myprocessor->first_quantum) && (rq->count > 0)) { - register queue_t q; + queue_t q; /* * This is not the first quantum, and there may * be something in the processor_set runq. @@ -205,7 +198,7 @@ ast_check() */ q = rq->runq + *(volatile int *)&rq->low; if (queue_empty(q)) { - register int i; + int i; /* * Need to recheck and possibly update hint. @@ -230,7 +223,7 @@ ast_check() } #if MACH_FIXPRI } -#endif MACH_FIXPRI +#endif /* MACH_FIXPRI */ break; default: