Linux Kernel 2.4 Useful Patches

Web access to the GIT repository - GIT access to the repository

i386-emu-rdtsc : Kernel emulation of user-space RDTSC instructions on i386 and above

Some user-space applications erroneously rely on the presence of the RDTSC instruction on x86 CPUs while they should check its support first. This leads to Illegal Instruction signals causing the application to crash. Mikael's patch emulates the instruction in a clever way so that the values it returns follows a monotonous function over time.

Initial date:2006/01/30
Description:Kernel emulation of user-space RDTSC instructions on i386 and above
Author(s):Mikael Pettersson
Conflicts with:x86-emu
See also:x86-emu
Abstract:Some user-space applications erroneously rely on the presence of the RDTSC instruction on x86 CPUs while they should check its support first. This leads to Illegal Instruction signals causing the application to crash. Mikael's patch emulates the instruction in a clever way so that the values it returns follows a monotonous function over time.

Contents


(C) Willy Tarreau - 2008-06-01