summaryrefslogtreecommitdiffstats
path: root/arch/m68k/emu/nfblock.c
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2013-08-14 10:45:00 +0200
committerGeert Uytterhoeven <geert@linux-m68k.org>2013-08-23 12:49:01 +0200
commit55490050df0f5d82ce070be11351c65f7696101c (patch)
tree80ffaf29f1e1af88d928d332e18c65957fad1e8e /arch/m68k/emu/nfblock.c
parentm68k: Ignore disabled HSYNC interrupt on Atari for irqs_disabled() (diff)
downloadlinux-55490050df0f5d82ce070be11351c65f7696101c.tar.xz
linux-55490050df0f5d82ce070be11351c65f7696101c.zip
m68k/atari: ARAnyM - Always use physical addresses in NatFeat calls
Pointers passed to ARAnyM NatFeat calls should be physical addresses, not virtual addresses. This worked before because on Atari, physical and virtual kernel addresses are the same, as long as normal kernel memory is concerned. Correct the few remaining places where virtual addresses were used. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Diffstat (limited to 'arch/m68k/emu/nfblock.c')
-rw-r--r--arch/m68k/emu/nfblock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/m68k/emu/nfblock.c b/arch/m68k/emu/nfblock.c
index e3011338ab40..0721858fbd1e 100644
--- a/arch/m68k/emu/nfblock.c
+++ b/arch/m68k/emu/nfblock.c
@@ -41,8 +41,8 @@ static inline s32 nfhd_read_write(u32 major, u32 minor, u32 rwflag, u32 recno,
static inline s32 nfhd_get_capacity(u32 major, u32 minor, u32 *blocks,
u32 *blocksize)
{
- return nf_call(nfhd_id + NFHD_GET_CAPACITY, major, minor, blocks,
- blocksize);
+ return nf_call(nfhd_id + NFHD_GET_CAPACITY, major, minor,
+ virt_to_phys(blocks), virt_to_phys(blocksize));
}
static LIST_HEAD(nfhd_list);