initproc, usegment, swtch tweaks
This commit is contained in:
parent
b121486c3f
commit
2c5f7aba38
4 changed files with 45 additions and 59 deletions
5
defs.h
5
defs.h
|
|
@ -52,7 +52,7 @@ int writei(struct inode*, char*, uint, uint);
|
|||
// ide.c
|
||||
void ideinit(void);
|
||||
void ideintr(void);
|
||||
void iderw(struct buf *);
|
||||
void iderw(struct buf*);
|
||||
|
||||
// ioapic.c
|
||||
void ioapicenable(int irq, int cpu);
|
||||
|
|
@ -109,7 +109,7 @@ void wakeup(void*);
|
|||
void yield(void);
|
||||
|
||||
// swtch.S
|
||||
void swtch(struct context**, struct context**);
|
||||
void swtch(struct context**, struct context*);
|
||||
|
||||
// spinlock.c
|
||||
void acquire(struct spinlock*);
|
||||
|
|
@ -151,7 +151,6 @@ void uartinit(void);
|
|||
void uartintr(void);
|
||||
void uartputc(int);
|
||||
|
||||
|
||||
// number of elements in fixed-size array
|
||||
#define NELEM(x) (sizeof(x)/sizeof((x)[0]))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue