Commit 8b2ef549 authored by David Mosberger's avatar David Mosberger Committed by David Mosberger

ia64: Print fpswa revision number. Based on patch by

	KOCHI Takayoshi.
parent 2831300e
...@@ -49,10 +49,15 @@ static fpswa_interface_t *fpswa_interface; ...@@ -49,10 +49,15 @@ static fpswa_interface_t *fpswa_interface;
void __init void __init
trap_init (void) trap_init (void)
{ {
printk("fpswa interface at %lx\n", ia64_boot_param->fpswa); int major = 0, minor = 0;
if (ia64_boot_param->fpswa)
if (ia64_boot_param->fpswa) {
/* FPSWA fixup: make the interface pointer a kernel virtual address: */ /* FPSWA fixup: make the interface pointer a kernel virtual address: */
fpswa_interface = __va(ia64_boot_param->fpswa); fpswa_interface = __va(ia64_boot_param->fpswa);
major = fpswa_interface->revision & 0xffff;
minor = fpswa_interface->revision >> 16;
}
printk("fpswa interface at %lx (rev %d.%d)\n", ia64_boot_param->fpswa, major, minor);
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment