summaryrefslogtreecommitdiff
path: root/defs.h
diff options
context:
space:
mode:
authorkaashoek <kaashoek>2006-09-07 01:37:58 +0000
committerkaashoek <kaashoek>2006-09-07 01:37:58 +0000
commitf70172129c94e4d53b56fc10a7d859679b581bd2 (patch)
treef5c95ac0b9eea765d36ab0cb0c53573e2dfa0f9d /defs.h
parentf9bc4452b5437570f1709430e9364cc3e323cf3a (diff)
downloadxv6-labs-f70172129c94e4d53b56fc10a7d859679b581bd2.tar.gz
xv6-labs-f70172129c94e4d53b56fc10a7d859679b581bd2.tar.bz2
xv6-labs-f70172129c94e4d53b56fc10a7d859679b581bd2.zip
run without lapic and ioapic, if they are not present
if no lapic available, use 8253pit for clock now xv6 runs both on qemu (uniprocessor) and bochs (uniprocessor and MP)
Diffstat (limited to 'defs.h')
-rw-r--r--defs.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/defs.h b/defs.h
index 85f0085..fb48700 100644
--- a/defs.h
+++ b/defs.h
@@ -49,9 +49,15 @@ int checkstring(uint);
int putint(struct proc*, uint, int);
// picirq.c
+extern ushort irq_mask_8259A;
void pic_init(void);
+void irq_setmask_8259A(ushort);
+
+// 8253pit.c
+void pit8253_timerinit(void);
// mp.c
+extern int ismp;
void mp_init(void);
void mp_startthem(void);
int mp_bcpu(void);