Bug 77591

Summary: Case of pointer to FPSWA being NULL not correctly handled
Product: Base System Reporter: Christian Kandeler <christian.kandeler>
Component: ia64Assignee: freebsd-ia64 (Nobody) <ia64>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Christian Kandeler 2005-02-16 09:50:10 UTC
In sys/ia64/ia64/machdep.c, the physical address of the fpswa interface in the boot_info structure is unconditionally converted to a virtual address: 
  fpswa_interface = (FPSWA_INTERFACE*)IA64_PHYS_TO_RR7(bootinfo.bi_fpswa);
This will lead to invalid memory accesses if the original physical address was zero, causing the machine to crash very early in the boot process.

Fix: Here is a patch. I know this web form should not be used to submit code, but since I'm not able to boot into the system, I cannot use the send-pr program.
How-To-Repeat: Boot on a machine with no FPSWA built into the firmware.
Comment 1 Marcel Moolenaar freebsd_committer freebsd_triage 2005-03-02 20:29:18 UTC
State Changed
From-To: open->closed

Committed to current. Will be MFC'd for 5.4-RELEASE. 
Thanks!