From 0c8ad9d059408e60916b8c974e1f20655c2b1810 Mon Sep 17 00:00:00 2001 From: Adam Belay Date: Tue, 6 Jan 2004 04:08:21 -0800 Subject: [PATCH] [PATCH] Fix PnP BIOS call The recent escd fix I have made corrects a thinko in the PnPBIOS code and it turns out that faults from calling /proc/pnp/bus/escd were probably not caused by BIOS bugs. --- drivers/pnp/pnpbios/bioscalls.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pnp/pnpbios/bioscalls.c b/drivers/pnp/pnpbios/bioscalls.c index 42e4280bd927d..bd17b09530670 100644 --- a/drivers/pnp/pnpbios/bioscalls.c +++ b/drivers/pnp/pnpbios/bioscalls.c @@ -493,7 +493,7 @@ static int __pnp_bios_read_escd(char *data, u32 nvram_base) if (!pnp_bios_present()) return ESCD_FUNCTION_NOT_SUPPORTED; status = call_pnp_bios(PNP_READ_ESCD, 0, PNP_TS1, PNP_TS2, PNP_DS, 0, 0, 0, - data, 65536, (void *)nvram_base, 65536); + data, 65536, __va(nvram_base), 65536); return status; } @@ -516,7 +516,7 @@ static int pnp_bios_write_escd(char *data, u32 nvram_base) if (!pnp_bios_present()) return ESCD_FUNCTION_NOT_SUPPORTED; status = call_pnp_bios(PNP_WRITE_ESCD, 0, PNP_TS1, PNP_TS2, PNP_DS, 0, 0, 0, - data, 65536, nvram_base, 65536); + data, 65536, __va(nvram_base), 65536); return status; } #endif -- 2.53.0