summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2005-03-02 20:29:04 +0000
committermarcel <marcel@FreeBSD.org>2005-03-02 20:29:04 +0000
commit2307c11d0fa1ac2133cff99d6c1a90c711b15f61 (patch)
tree80eeeb402a353168ffdfbe668ab303641057deca /sys
parentd01b3831e7925bb33988e449963cf40ded3669c7 (diff)
downloadFreeBSD-src-2307c11d0fa1ac2133cff99d6c1a90c711b15f61.zip
FreeBSD-src-2307c11d0fa1ac2133cff99d6c1a90c711b15f61.tar.gz
Make sure fpswa_iface equals NULL when bootinfo.bi_fpswa equals 0.
We need to be able to test for the (possible) non-existence of the FPSWA code. PR: ia64/77591 Submitted by: Christian Kandeler (christian dot kandeler at hob dot de) MFC after: 1 day
Diffstat (limited to 'sys')
-rw-r--r--sys/ia64/ia64/machdep.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/ia64/ia64/machdep.c b/sys/ia64/ia64/machdep.c
index 5c281b0..e9866f5 100644
--- a/sys/ia64/ia64/machdep.c
+++ b/sys/ia64/ia64/machdep.c
@@ -613,7 +613,8 @@ ia64_init(void)
printf("WARNING: loader(8) metadata is missing!\n");
/* Get FPSWA interface */
- fpswa_iface = (struct fpswa_iface *)IA64_PHYS_TO_RR7(bootinfo.bi_fpswa);
+ fpswa_iface = (bootinfo.bi_fpswa == 0) ? NULL :
+ (struct fpswa_iface *)IA64_PHYS_TO_RR7(bootinfo.bi_fpswa);
/* Init basic tunables, including hz */
init_param1();
OpenPOWER on IntegriCloud