FS#20619 - [kernel26] i8k module
Attached to Project:
Arch Linux
Opened by Nick Sudden (nick_sudden) - Thursday, 26 August 2010, 11:57 GMT
Last edited by Andrea Scarpino (BaSh) - Saturday, 07 May 2011, 00:43 GMT
Opened by Nick Sudden (nick_sudden) - Thursday, 26 August 2010, 11:57 GMT
Last edited by Andrea Scarpino (BaSh) - Saturday, 07 May 2011, 00:43 GMT
|
Details
Description:
Reporting to this discussion (https://bbs.archlinux.org/viewtopic.php?pid=783733), the i8k module integrated into latests kernel doesn't work correctly. Here's the patch : diff --git a/drivers/char/i8k.c b/drivers/char/i8k.c index 4cd8b22..c2eaa02 100644 --- a/drivers/char/i8k.c +++ b/drivers/char/i8k.c @@ -119,7 +119,7 @@ static int i8k_smm(struct smm_regs *regs) int eax = regs->eax; #if defined(CONFIG_X86_64) - asm("pushq %%rax\n\t" + asm volatile("pushq %%rax\n\t" "movl 0(%%rax),%%edx\n\t" "pushq %%rdx\n\t" "movl 4(%%rax),%%ebx\n\t" @@ -145,7 +145,7 @@ static int i8k_smm(struct smm_regs *regs) : "a"(regs) : "%ebx", "%ecx", "%edx", "%esi", "%edi", "memory"); #else - asm("pushl %%eax\n\t" + asm volatile("pushl %%eax\n\t" "movl 0(%%eax),%%edx\n\t" "push %%edx\n\t" "movl 4(%%eax),%%ebx\n\t" |
This task depends upon
Closed by Andrea Scarpino (BaSh)
Saturday, 07 May 2011, 00:43 GMT
Reason for closing: Fixed
Additional comments about closing: kernel26 2.6.38.5-1
Saturday, 07 May 2011, 00:43 GMT
Reason for closing: Fixed
Additional comments about closing: kernel26 2.6.38.5-1
Please use attachs next time.
Original file is here (https://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob_plain;f=drivers/char/i8k.c;hb=HEAD)