Skip to content

Commit e67d668

Browse files
Mingarelli, ThomasWim Van Sebroeck
authored andcommitted
watchdog: hpwdt: Changes to handle NX secure bit in 32bit path
This patch makes use of the set_memory_x() kernel API in order to make necessary BIOS calls to source NMIs. This is needed for SLES11 SP2 and the latest upstream kernel as it appears the NX Execute Disable has grown in its control. Signed-off by: Thomas Mingarelli <thomas.mingarelli@hp.com> Signed-off by: Wim Van Sebroeck <wim@iguana.be> Cc: stable@kernel.org
1 parent bb558da commit e67d668

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎drivers/watchdog/hpwdt.c‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ static int __devinit cru_detect(unsigned long map_entry,
231231

232232
cmn_regs.u1.reax = CRU_BIOS_SIGNATURE_VALUE;
233233

234+
set_memory_x((unsigned long)bios32_entrypoint, (2 * PAGE_SIZE));
234235
asminline_call(&cmn_regs, bios32_entrypoint);
235236

236237
if (cmn_regs.u1.ral != 0) {
@@ -248,8 +249,10 @@ static int __devinit cru_detect(unsigned long map_entry,
248249
if ((physical_bios_base + physical_bios_offset)) {
249250
cru_rom_addr =
250251
ioremap(cru_physical_address, cru_length);
251-
if (cru_rom_addr)
252+
if (cru_rom_addr) {
253+
set_memory_x((unsigned long)cru_rom_addr, cru_length);
252254
retval = 0;
255+
}
253256
}
254257

255258
printk(KERN_DEBUG "hpwdt: CRU Base Address: 0x%lx\n",

0 commit comments

Comments
 (0)