提交 2c60b7f3 创建 作者: Peter H. Froehlich's avatar Peter H. Froehlich 提交者: Frans Kaashoek

Removed useless function and prototypes.

上级 09396a80
...@@ -88,9 +88,7 @@ void end_op(); ...@@ -88,9 +88,7 @@ void end_op();
// mp.c // mp.c
extern int ismp; extern int ismp;
int mpbcpu(void);
void mpinit(void); void mpinit(void);
void mpstartthem(void);
// picirq.c // picirq.c
void picenable(int); void picenable(int);
...@@ -104,7 +102,6 @@ int pipewrite(struct pipe*, char*, int); ...@@ -104,7 +102,6 @@ int pipewrite(struct pipe*, char*, int);
//PAGEBREAK: 16 //PAGEBREAK: 16
// proc.c // proc.c
struct proc* copyproc(struct proc*);
void exit(void); void exit(void);
int fork(void); int fork(void);
int growproc(int); int growproc(int);
...@@ -165,7 +162,6 @@ void uartputc(int); ...@@ -165,7 +162,6 @@ void uartputc(int);
// vm.c // vm.c
void seginit(void); void seginit(void);
void kvmalloc(void); void kvmalloc(void);
void vmenable(void);
pde_t* setupkvm(void); pde_t* setupkvm(void);
char* uva2ka(pde_t*, char*); char* uva2ka(pde_t*, char*);
int allocuvm(pde_t*, uint, uint); int allocuvm(pde_t*, uint, uint);
......
...@@ -17,17 +17,11 @@ int ismp; ...@@ -17,17 +17,11 @@ int ismp;
int ncpu; int ncpu;
uchar ioapicid; uchar ioapicid;
int
mpbcpu(void)
{
return bcpu-cpus;
}
static uchar static uchar
sum(uchar *addr, int len) sum(uchar *addr, int len)
{ {
int i, sum; int i, sum;
sum = 0; sum = 0;
for(i=0; i<len; i++) for(i=0; i<len; i++)
sum += addr[i]; sum += addr[i];
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论