1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-27 16:39:08 +00:00

KERNBASE should really be KERNVIRTADDR there too.

MFC after:	1 week
This commit is contained in:
Olivier Houchard 2007-10-24 23:41:46 +00:00
parent b7630a1145
commit cb3d8b2510
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=172945

View File

@ -283,10 +283,10 @@ initarm(void *arg, void *arg2)
i += 2;
fake_preload[i++] = MODINFO_ADDR;
fake_preload[i++] = sizeof(vm_offset_t);
fake_preload[i++] = KERNBASE;
fake_preload[i++] = KERNVIRTADDR;
fake_preload[i++] = MODINFO_SIZE;
fake_preload[i++] = sizeof(uint32_t);
fake_preload[i++] = (uint32_t)&end - KERNBASE;
fake_preload[i++] = (uint32_t)&end - KERNVIRTADDR;
#ifdef DDB
if (*(uint32_t *)KERNVIRTADDR == MAGIC_TRAMP_NUMBER) {
fake_preload[i++] = MODINFO_METADATA|MODINFOMD_SSYM;