summaryrefslogtreecommitdiffstats
path: root/sys/compat/x86bios
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2010-08-07 03:45:45 +0000
committerjkim <jkim@FreeBSD.org>2010-08-07 03:45:45 +0000
commit012f478c8162413e5e8320ff346dfd57a40ca9d1 (patch)
tree397f630582b983ae29a0f1710910add4a9ba7875 /sys/compat/x86bios
parente5604e6bc0cf9bc76d8c939e0b7810b7d250fe44 (diff)
downloadFreeBSD-src-012f478c8162413e5e8320ff346dfd57a40ca9d1.zip
FreeBSD-src-012f478c8162413e5e8320ff346dfd57a40ca9d1.tar.gz
Optimize interrupt vector lookup. There is no need to check the page table.
Diffstat (limited to 'sys/compat/x86bios')
-rw-r--r--sys/compat/x86bios/x86bios.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/compat/x86bios/x86bios.c b/sys/compat/x86bios/x86bios.c
index a9fe257..b9be658 100644
--- a/sys/compat/x86bios/x86bios.c
+++ b/sys/compat/x86bios/x86bios.c
@@ -194,7 +194,7 @@ uint32_t
x86bios_get_intr(int intno)
{
- return (readl(x86bios_offset(intno * 4)));
+ return (readl(BIOS_PADDRTOVADDR(intno * 4)));
}
void
OpenPOWER on IntegriCloud