diff options
author | jkim <jkim@FreeBSD.org> | 2010-08-07 03:45:45 +0000 |
---|---|---|
committer | jkim <jkim@FreeBSD.org> | 2010-08-07 03:45:45 +0000 |
commit | 012f478c8162413e5e8320ff346dfd57a40ca9d1 (patch) | |
tree | 397f630582b983ae29a0f1710910add4a9ba7875 /sys/compat/x86bios | |
parent | e5604e6bc0cf9bc76d8c939e0b7810b7d250fe44 (diff) | |
download | FreeBSD-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.c | 2 |
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 |