diff options
author | Olivier Houchard <cognet@FreeBSD.org> | 2005-11-24 02:27:55 +0000 |
---|---|---|
committer | Olivier Houchard <cognet@FreeBSD.org> | 2005-11-24 02:27:55 +0000 |
commit | ce4210d673a2afd61732fb58a9df4b037b157f1a (patch) | |
tree | b91167727d6cc4241e3294a69ded61fbe3e076fd /sys/arm/xscale/i80321 | |
parent | f5a9ac9ca429acd9dcbe2277846f191ff7664ab8 (diff) | |
download | src-test2-ce4210d673a2afd61732fb58a9df4b037b157f1a.tar.gz src-test2-ce4210d673a2afd61732fb58a9df4b037b157f1a.zip |
Notes
Diffstat (limited to 'sys/arm/xscale/i80321')
-rw-r--r-- | sys/arm/xscale/i80321/iq31244_machdep.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/arm/xscale/i80321/iq31244_machdep.c b/sys/arm/xscale/i80321/iq31244_machdep.c index a49a3f71ee06..990b5b648cd5 100644 --- a/sys/arm/xscale/i80321/iq31244_machdep.c +++ b/sys/arm/xscale/i80321/iq31244_machdep.c @@ -233,16 +233,16 @@ initarm(void *arg, void *arg2) fake_preload[i++] = sizeof(uint32_t); fake_preload[i++] = (uint32_t)&end - KERNBASE - 0x00200000; #ifdef DDB - if (*(uint32_t *)KERNVIRTADDR != 0) { + if (*(uint32_t *)KERNVIRTADDR == MAGIC_TRAMP_NUMBER) { fake_preload[i++] = MODINFO_METADATA|MODINFOMD_SSYM; fake_preload[i++] = sizeof(vm_offset_t); - fake_preload[i++] = *(uint32_t *)KERNVIRTADDR; + fake_preload[i++] = *(uint32_t *)(KERNVIRTADDR + 4); fake_preload[i++] = MODINFO_METADATA|MODINFOMD_ESYM; fake_preload[i++] = sizeof(vm_offset_t); - fake_preload[i++] = *(uint32_t *)(KERNVIRTADDR + 4); - lastaddr = *(uint32_t *)(KERNVIRTADDR + 4); + fake_preload[i++] = *(uint32_t *)(KERNVIRTADDR + 8); + lastaddr = *(uint32_t *)(KERNVIRTADDR + 8); zend = lastaddr; - zstart = *(uint32_t *)KERNVIRTADDR; + zstart = *(uint32_t *)(KERNVIRTADDR + 4); ksym_start = zstart; ksym_end = zend; } else |