Now we can use symbols in DDB. :-)
This commit is contained in:
parent
c11fe1ae79
commit
599ebb4db1
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: locore.S,v 1.13 1999/03/25 00:41:47 mrg Exp $ */
|
/* $NetBSD: locore.S,v 1.14 1999/04/29 05:15:30 tsubai Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
|
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
|
||||||
|
@ -133,9 +133,13 @@ __start:
|
||||||
lis 8,_C_LABEL(end)@ha
|
lis 8,_C_LABEL(end)@ha
|
||||||
addi 8,8,_C_LABEL(end)@l
|
addi 8,8,_C_LABEL(end)@l
|
||||||
#ifdef DDB
|
#ifdef DDB
|
||||||
/*
|
/* skip symbol table */
|
||||||
* XXX Account for symbols.
|
add 9,6,7 /* r9 = args + l */
|
||||||
*/
|
lwz 9,-8(9) /* esym */
|
||||||
|
cmpwi 9,0
|
||||||
|
beq 1f
|
||||||
|
mr 8,9
|
||||||
|
1:
|
||||||
#endif
|
#endif
|
||||||
li 9,PGOFSET
|
li 9,PGOFSET
|
||||||
add 8,8,9
|
add 8,8,9
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: machdep.c,v 1.41 1999/04/17 21:16:46 ws Exp $ */
|
/* $NetBSD: machdep.c,v 1.42 1999/04/29 05:15:30 tsubai Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
|
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
|
||||||
|
@ -138,6 +138,10 @@ void install_extint __P((void (*)(void)));
|
||||||
|
|
||||||
int cold = 1;
|
int cold = 1;
|
||||||
|
|
||||||
|
#ifdef DDB
|
||||||
|
void *startsym, *endsym;
|
||||||
|
#endif
|
||||||
|
|
||||||
void
|
void
|
||||||
initppc(startkernel, endkernel, args)
|
initppc(startkernel, endkernel, args)
|
||||||
u_int startkernel, endkernel;
|
u_int startkernel, endkernel;
|
||||||
|
@ -152,7 +156,6 @@ initppc(startkernel, endkernel, args)
|
||||||
extern tlbdsmiss, tlbdsmsize;
|
extern tlbdsmiss, tlbdsmsize;
|
||||||
#ifdef DDB
|
#ifdef DDB
|
||||||
extern ddblow, ddbsize;
|
extern ddblow, ddbsize;
|
||||||
extern void *startsym, *endsym;
|
|
||||||
#endif
|
#endif
|
||||||
#if NIPKDB > 0
|
#if NIPKDB > 0
|
||||||
extern ipkdblow, ipkdbsize;
|
extern ipkdblow, ipkdbsize;
|
||||||
|
@ -291,6 +294,13 @@ initppc(startkernel, endkernel, args)
|
||||||
/*
|
/*
|
||||||
* Parse arg string.
|
* Parse arg string.
|
||||||
*/
|
*/
|
||||||
|
#ifdef DDB
|
||||||
|
bcopy(args + strlen(args) + 1, &startsym, sizeof(startsym));
|
||||||
|
bcopy(args + strlen(args) + 5, &endsym, sizeof(endsym));
|
||||||
|
if (startsym == NULL || endsym == NULL)
|
||||||
|
startsym = endsym = NULL;
|
||||||
|
#endif
|
||||||
|
|
||||||
bootpath = args;
|
bootpath = args;
|
||||||
while (*++args && *args != ' ');
|
while (*++args && *args != ' ');
|
||||||
if (*args) {
|
if (*args) {
|
||||||
|
@ -311,7 +321,7 @@ initppc(startkernel, endkernel, args)
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef DDB
|
#ifdef DDB
|
||||||
/* ddb_init((int)(endsym - startsym), startsym, endsym); */
|
ddb_init((int)((u_int)endsym - (u_int)startsym), startsym, endsym);
|
||||||
#endif
|
#endif
|
||||||
#if NIPKDB > 0
|
#if NIPKDB > 0
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue