Subject: Re: In-kernel RAS
To: Blair Sadewitz <blair.sadewitz@gmail.com>
From: David Laight <david@l8s.co.uk>
List: tech-kern
Date: 11/12/2007 22:23:09
On Mon, Nov 12, 2007 at 05:10:07PM -0500, Blair Sadewitz wrote:
> I have a Pentium D (Presler) CPU, and would be happy to test this for
> you. Could you prepare a diff?
In src/lib/libc/arch/i386/SYS.h replace RSYSCALL(x) - which expands to:
.text
_ALIGN_TEXT
2: PIC_PROLOGUE
mov PIC_GOT(CERROR), %ecx
PIC_EPILOGUE
jmp *%ecx
ENTRY(x)
SYSTRAP(y)
jc 2b
ret
with something that expands to:
.text
_ALIGN_TEXT
ENTRY(x)
SYSTRAP(x)
jc 2f
ret
2: PIC_PROLOGUE
mov PIC_GOT(CERROR), %ecx
PIC_EPILOGUE
jmp *%ecx
David
--
David Laight: david@l8s.co.uk