diff --git a/sys/amd64/amd64/db_interface.c b/sys/amd64/amd64/db_interface.c index 74c09dce7ae7..fe36fc306afa 100644 --- a/sys/amd64/amd64/db_interface.c +++ b/sys/amd64/amd64/db_interface.c @@ -23,7 +23,7 @@ * any improvements or extensions that they make and grant Carnegie the * rights to redistribute these changes. * - * $Id$ + * $Id: db_interface.c,v 1.2 1993/10/16 14:14:55 rgrimes Exp $ */ /* @@ -41,6 +41,8 @@ #include /* just for boothowto --eichin */ int db_active = 0; +db_regs_t ddb_regs; + /* * Received keyboard interrupt sequence. */ diff --git a/sys/amd64/amd64/locore.S b/sys/amd64/amd64/locore.S index 37818859bbc8..d808571cba20 100644 --- a/sys/amd64/amd64/locore.S +++ b/sys/amd64/amd64/locore.S @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * from: @(#)locore.s 7.3 (Berkeley) 5/13/91 - * $Id: locore.s,v 1.7 1993/10/13 07:11:11 rgrimes Exp $ + * $Id: locore.s,v 1.8 1993/10/15 10:34:19 rgrimes Exp $ */ @@ -164,10 +164,21 @@ _atdevphys: .long 0 /* location of device mapping ptes (phys) */ _IdlePTD: .long 0 _KPTphys: .long 0 + .globl _curpcb, _whichqs +_curpcb: .long 0 /* pointer to curproc's PCB area */ +_whichqs: .long 0 /* which run queues have data */ + .globl _cyloffset,_proc0paddr _cyloffset: .long 0 _proc0paddr: .long 0 + /* Stuff for network ASTs */ + .globl _softem,_netisr,_astpending,_want_resched +_softem: .long 0 /* WFJ only knows... */ +_netisr: .long 0 /* set with bits for which queue to service */ +_astpending: .long 0 /* tells us an AST needs to be taken */ +_want_resched: .long 0 /* we need to re-schedule */ + .space 512 tmpstk: diff --git a/sys/amd64/amd64/locore.s b/sys/amd64/amd64/locore.s index 37818859bbc8..d808571cba20 100644 --- a/sys/amd64/amd64/locore.s +++ b/sys/amd64/amd64/locore.s @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * from: @(#)locore.s 7.3 (Berkeley) 5/13/91 - * $Id: locore.s,v 1.7 1993/10/13 07:11:11 rgrimes Exp $ + * $Id: locore.s,v 1.8 1993/10/15 10:34:19 rgrimes Exp $ */ @@ -164,10 +164,21 @@ _atdevphys: .long 0 /* location of device mapping ptes (phys) */ _IdlePTD: .long 0 _KPTphys: .long 0 + .globl _curpcb, _whichqs +_curpcb: .long 0 /* pointer to curproc's PCB area */ +_whichqs: .long 0 /* which run queues have data */ + .globl _cyloffset,_proc0paddr _cyloffset: .long 0 _proc0paddr: .long 0 + /* Stuff for network ASTs */ + .globl _softem,_netisr,_astpending,_want_resched +_softem: .long 0 /* WFJ only knows... */ +_netisr: .long 0 /* set with bits for which queue to service */ +_astpending: .long 0 /* tells us an AST needs to be taken */ +_want_resched: .long 0 /* we need to re-schedule */ + .space 512 tmpstk: diff --git a/sys/i386/i386/cons.c b/sys/i386/i386/cons.c index 2e92a9c10724..6f76c4c7f874 100644 --- a/sys/i386/i386/cons.c +++ b/sys/i386/i386/cons.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * from: @(#)cons.c 7.2 (Berkeley) 5/9/91 - * $Id: cons.c,v 1.3 1993/10/16 14:14:49 rgrimes Exp $ + * $Id: cons.c,v 1.4 1993/10/18 14:21:48 davidg Exp $ */ @@ -49,8 +49,9 @@ #include "sys/tty.h" #include "sys/file.h" #include "sys/conf.h" +#include "machine/stdarg.h" -#include "cons.h" +#include "machine/cons.h" /* XXX - all this could be autoconfig()ed */ int pccnprobe(), pccninit(), pccngetc(), pccnputc(); @@ -197,10 +198,12 @@ cnputc(c) } } -pg(p,q,r,s,t,u,v,w,x,y,z) char *p; { - printf(p,q,r,s,t,u,v,w,x,y,z); - printf("\n>"); - return(cngetc()); +int +pg(const char *p, ...) { + va_list args; + va_start(args, p); + printf("%r\n>", p, args); + return(cngetc()); } diff --git a/sys/i386/i386/cons.h b/sys/i386/i386/cons.h index e8a98123256e..daa556628239 100644 --- a/sys/i386/i386/cons.h +++ b/sys/i386/i386/cons.h @@ -36,9 +36,11 @@ * SUCH DAMAGE. * * from: @(#)cons.h 7.2 (Berkeley) 5/9/91 - * $Id$ + * $Id: cons.h,v 1.2 1993/10/16 14:14:51 rgrimes Exp $ */ +#ifndef _MACHINE_CONS_H_ +#define _MACHINE_CONS_H_ 1 struct consdev { int (*cn_probe)(); /* probe hardware and fill in consdev info */ @@ -63,4 +65,8 @@ struct consdev { extern struct consdev constab[]; extern struct consdev *cn_tab; extern struct tty *cn_tty; -#endif + +int pg(const char *, ...); + +#endif /* KERNEL */ +#endif /* _MACHINE_CONS_H_ */ diff --git a/sys/i386/i386/db_interface.c b/sys/i386/i386/db_interface.c index 74c09dce7ae7..fe36fc306afa 100644 --- a/sys/i386/i386/db_interface.c +++ b/sys/i386/i386/db_interface.c @@ -23,7 +23,7 @@ * any improvements or extensions that they make and grant Carnegie the * rights to redistribute these changes. * - * $Id$ + * $Id: db_interface.c,v 1.2 1993/10/16 14:14:55 rgrimes Exp $ */ /* @@ -41,6 +41,8 @@ #include /* just for boothowto --eichin */ int db_active = 0; +db_regs_t ddb_regs; + /* * Received keyboard interrupt sequence. */ diff --git a/sys/i386/i386/locore.s b/sys/i386/i386/locore.s index 37818859bbc8..d808571cba20 100644 --- a/sys/i386/i386/locore.s +++ b/sys/i386/i386/locore.s @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * from: @(#)locore.s 7.3 (Berkeley) 5/13/91 - * $Id: locore.s,v 1.7 1993/10/13 07:11:11 rgrimes Exp $ + * $Id: locore.s,v 1.8 1993/10/15 10:34:19 rgrimes Exp $ */ @@ -164,10 +164,21 @@ _atdevphys: .long 0 /* location of device mapping ptes (phys) */ _IdlePTD: .long 0 _KPTphys: .long 0 + .globl _curpcb, _whichqs +_curpcb: .long 0 /* pointer to curproc's PCB area */ +_whichqs: .long 0 /* which run queues have data */ + .globl _cyloffset,_proc0paddr _cyloffset: .long 0 _proc0paddr: .long 0 + /* Stuff for network ASTs */ + .globl _softem,_netisr,_astpending,_want_resched +_softem: .long 0 /* WFJ only knows... */ +_netisr: .long 0 /* set with bits for which queue to service */ +_astpending: .long 0 /* tells us an AST needs to be taken */ +_want_resched: .long 0 /* we need to re-schedule */ + .space 512 tmpstk: diff --git a/sys/kern/tty_cons.c b/sys/kern/tty_cons.c index 2e92a9c10724..6f76c4c7f874 100644 --- a/sys/kern/tty_cons.c +++ b/sys/kern/tty_cons.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * from: @(#)cons.c 7.2 (Berkeley) 5/9/91 - * $Id: cons.c,v 1.3 1993/10/16 14:14:49 rgrimes Exp $ + * $Id: cons.c,v 1.4 1993/10/18 14:21:48 davidg Exp $ */ @@ -49,8 +49,9 @@ #include "sys/tty.h" #include "sys/file.h" #include "sys/conf.h" +#include "machine/stdarg.h" -#include "cons.h" +#include "machine/cons.h" /* XXX - all this could be autoconfig()ed */ int pccnprobe(), pccninit(), pccngetc(), pccnputc(); @@ -197,10 +198,12 @@ cnputc(c) } } -pg(p,q,r,s,t,u,v,w,x,y,z) char *p; { - printf(p,q,r,s,t,u,v,w,x,y,z); - printf("\n>"); - return(cngetc()); +int +pg(const char *p, ...) { + va_list args; + va_start(args, p); + printf("%r\n>", p, args); + return(cngetc()); } diff --git a/sys/sys/cons.h b/sys/sys/cons.h index e8a98123256e..daa556628239 100644 --- a/sys/sys/cons.h +++ b/sys/sys/cons.h @@ -36,9 +36,11 @@ * SUCH DAMAGE. * * from: @(#)cons.h 7.2 (Berkeley) 5/9/91 - * $Id$ + * $Id: cons.h,v 1.2 1993/10/16 14:14:51 rgrimes Exp $ */ +#ifndef _MACHINE_CONS_H_ +#define _MACHINE_CONS_H_ 1 struct consdev { int (*cn_probe)(); /* probe hardware and fill in consdev info */ @@ -63,4 +65,8 @@ struct consdev { extern struct consdev constab[]; extern struct consdev *cn_tab; extern struct tty *cn_tty; -#endif + +int pg(const char *, ...); + +#endif /* KERNEL */ +#endif /* _MACHINE_CONS_H_ */