diff options
-rw-r--r-- | drivers/watchdog/hpwdt.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/watchdog/hpwdt.c b/drivers/watchdog/hpwdt.c index 9cb60dfbb59..d4ab797cf75 100644 --- a/drivers/watchdog/hpwdt.c +++ b/drivers/watchdog/hpwdt.c | |||
@@ -216,7 +216,7 @@ static int __devinit cru_detect(unsigned long map_entry, | |||
216 | 216 | ||
217 | cmn_regs.u1.reax = CRU_BIOS_SIGNATURE_VALUE; | 217 | cmn_regs.u1.reax = CRU_BIOS_SIGNATURE_VALUE; |
218 | 218 | ||
219 | set_memory_x((unsigned long)bios32_entrypoint, (2 * PAGE_SIZE)); | 219 | set_memory_x((unsigned long)bios32_map, 2); |
220 | asminline_call(&cmn_regs, bios32_entrypoint); | 220 | asminline_call(&cmn_regs, bios32_entrypoint); |
221 | 221 | ||
222 | if (cmn_regs.u1.ral != 0) { | 222 | if (cmn_regs.u1.ral != 0) { |
@@ -235,7 +235,8 @@ static int __devinit cru_detect(unsigned long map_entry, | |||
235 | cru_rom_addr = | 235 | cru_rom_addr = |
236 | ioremap(cru_physical_address, cru_length); | 236 | ioremap(cru_physical_address, cru_length); |
237 | if (cru_rom_addr) { | 237 | if (cru_rom_addr) { |
238 | set_memory_x((unsigned long)cru_rom_addr, cru_length); | 238 | set_memory_x((unsigned long)cru_rom_addr & PAGE_MASK, |
239 | (cru_length + PAGE_SIZE - 1) >> PAGE_SHIFT); | ||
239 | retval = 0; | 240 | retval = 0; |
240 | } | 241 | } |
241 | } | 242 | } |