summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-05-23 06:36:24 +0000
committerThomas Schwinge <tschwinge@gnu.org>2009-06-17 23:31:42 +0200
commitf3022dd9b9974c19b6b186a17afcd0504fb95fc2 (patch)
treed1a65cf39561e55f8ac7513470f052f714af673e
parent5c7bb5f52eeaa4deacd0eeac73b927dfd782ae4b (diff)
2002-05-22 Roland McGrath <roland@frob.com>
* oskit/x86/main.c (machine_idle): New function. * bogus/power_save.h (POWER_SAVE): Define to 1. * oskit/x86/main.c (iopb_init, iopb_destroy): Functions removed. (i386_io_port_add, i386_io_port_remove, i386_io_port_list): Likewise.
-rw-r--r--oskit/x86/main.c21
1 files changed, 6 insertions, 15 deletions
diff --git a/oskit/x86/main.c b/oskit/x86/main.c
index cf8df284..817f574f 100644
--- a/oskit/x86/main.c
+++ b/oskit/x86/main.c
@@ -308,6 +308,12 @@ resettodr()
void
+machine_idle (int mycpu)
+{
+ asm volatile ("hlt" : : : "memory");
+}
+
+void
halt_cpu ()
{
while (1)
@@ -380,18 +386,3 @@ void machine_init()
set_b0 (kvtolin (&base_stack_start), DR7_LEN_4, DR7_RW_DATA);
base_gdt_load(); /* necessary after setting debug regs */
}
-
-/* XXX temp stubs */
-void iopb_init() {}
-void iopb_destroy() {}
-
-#include <device/dev_hdr.h>
-#include <mach/mig_errors.h>
-
-kern_return_t i386_io_port_add(thread_t thread, device_t device)
-{ return MIG_BAD_ID; }
-kern_return_t i386_io_port_remove(thread_t thread, device_t device)
-{ return MIG_BAD_ID; }
-kern_return_t
-i386_io_port_list(thread_t thread, device_t **list, unsigned int *list_count)
-{ return MIG_BAD_ID; }