提交 cda77810 创建 作者: Silas Boyd-Wickizer's avatar Silas Boyd-Wickizer

Add *intr prototypes to kernel.h.

上级 4b757419
......@@ -47,6 +47,7 @@ void cv_wakeup(struct condvar *cv);
void cprintf(const char*, ...);
void panic(const char*) __attribute__((noreturn));
void snprintf(char *buf, u32 n, char *fmt, ...);
void consoleintr(int(*)(void));
// exec.c
int exec(char*, char**);
......@@ -85,6 +86,9 @@ void ideinit(void);
void ideintr(void);
void iderw(struct buf*);
// ioapic.c
void ioapicenable(int irq, int cpu);
// kalloc.c
char* kalloc(void);
char* ksalloc(void);
......@@ -92,6 +96,9 @@ void kfree(void *);
void* kmalloc(u64);
void kmfree(void*);
// kbd.c
void kbdintr(void);
// lapic.c
int cpunum(void);
void lapicstartap(u8, u32 addr);
......@@ -146,6 +153,9 @@ void* ns_remove(struct ns *ns, struct nskey key, void *val); // remove
void* ns_enumerate(struct ns *ns, void *(*f)(void *, void *, void *), void *arg);
void* ns_enumerate_key(struct ns *ns, struct nskey key, void *(*f)(void *, void *), void *arg);
// picirq.c
void picenable(int);
// pipe.c
int pipealloc(struct file**, struct file**);
void pipeclose(struct pipe*, int);
......@@ -216,9 +226,9 @@ extern u64 ticks;
extern struct spinlock tickslock;
extern struct condvar cv_ticks;
// uart.c
void uartputc(char c);
void uartintr(void);
// vm.c
struct vmap * vmap_alloc(void);
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论