diff options
author | jkh <jkh@FreeBSD.org> | 1998-10-09 06:21:12 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1998-10-09 06:21:12 +0000 |
commit | ff1c526f59e134281466e5f499b1426f155d5163 (patch) | |
tree | d1d2432a310b8ff239ed4da9ef9c2c9450bf07f9 /sys/ufs | |
parent | b3de6c4a6a8884c1b8cf51adea1ea2cc5ef6b6f2 (diff) | |
download | FreeBSD-src-ff1c526f59e134281466e5f499b1426f155d5163.zip FreeBSD-src-ff1c526f59e134281466e5f499b1426f155d5163.tar.gz |
Add some evil temporary phys-to-kern translation for mfs.
Diffstat (limited to 'sys/ufs')
-rw-r--r-- | sys/ufs/mfs/mfs_vfsops.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/sys/ufs/mfs/mfs_vfsops.c b/sys/ufs/mfs/mfs_vfsops.c index d573b7b..9206239 100644 --- a/sys/ufs/mfs/mfs_vfsops.c +++ b/sys/ufs/mfs/mfs_vfsops.c @@ -111,13 +111,21 @@ static u_char end_mfs_root[] = "MFS Filesystem had better STOP here"; static u_char * mfs_getimage(void) { - caddr_t p, q; + caddr_t p; + vm_offset_t *q; p = module_search_by_type("mfs_root"); if (!p) return NULL; - q = module_search_info(p, MODINFO_ADDR); - return q; + q = (vm_offset_t *)module_search_info(p, MODINFO_ADDR); + if (!q) + return NULL; + /* XXX this needs to change to the appropriate function or macro */ +#ifdef __alpha__ + return (u_char *)*q; +#else + return (u_char *)*q + 0xf0000000; +#endif } #endif /* MFS_ROOT_SIZE */ |