From 1b03813f65a84d9279615d793d626a4752f42b92 Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Sun, 19 Oct 2003 02:36:07 +0000 Subject: [PATCH] Add a stub cpu_idle() function for sparc64, alpha, powerpc. This is a MI declared function so it should be everywhere. --- sys/alpha/alpha/machdep.c | 6 ++++++ sys/powerpc/aim/machdep.c | 6 ++++++ sys/powerpc/powerpc/machdep.c | 6 ++++++ sys/sparc64/sparc64/machdep.c | 6 ++++++ 4 files changed, 24 insertions(+) diff --git a/sys/alpha/alpha/machdep.c b/sys/alpha/alpha/machdep.c index 8c798539c93..5de6070057b 100644 --- a/sys/alpha/alpha/machdep.c +++ b/sys/alpha/alpha/machdep.c @@ -1731,6 +1731,12 @@ cpu_halt(void) prom_halt(1); } +void +cpu_idle(void) +{ + /* Insert code to halt (until next interrupt) for the idle loop */ +} + /* * Clear registers on exec */ diff --git a/sys/powerpc/aim/machdep.c b/sys/powerpc/aim/machdep.c index ce2f85c55bd..325da099f85 100644 --- a/sys/powerpc/aim/machdep.c +++ b/sys/powerpc/aim/machdep.c @@ -609,6 +609,12 @@ cpu_halt(void) OF_exit(); } +void +cpu_idle(void) +{ + /* Insert code to halt (until next interrupt) for the idle loop */ +} + /* * Set set up registers on exec. */ diff --git a/sys/powerpc/powerpc/machdep.c b/sys/powerpc/powerpc/machdep.c index ce2f85c55bd..325da099f85 100644 --- a/sys/powerpc/powerpc/machdep.c +++ b/sys/powerpc/powerpc/machdep.c @@ -609,6 +609,12 @@ cpu_halt(void) OF_exit(); } +void +cpu_idle(void) +{ + /* Insert code to halt (until next interrupt) for the idle loop */ +} + /* * Set set up registers on exec. */ diff --git a/sys/sparc64/sparc64/machdep.c b/sys/sparc64/sparc64/machdep.c index c0349f95148..3621fef604c 100644 --- a/sys/sparc64/sparc64/machdep.c +++ b/sys/sparc64/sparc64/machdep.c @@ -670,6 +670,12 @@ sparc64_shutdown_final(void *dummy, int howto) cpu_halt(); } +void +cpu_idle(void) +{ + /* Insert code to halt (until next interrupt) for the idle loop */ +} + int ptrace_set_pc(struct thread *td, u_long addr) { -- 2.45.2