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
This commit is contained in:
Marcel Moolenaar 2005-03-02 20:29:04 +00:00
parent 9e2b417bfd
commit f685f62c98
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=143057

View File

@ -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();