Skip to contentSkip to conversation

hardware random number generator?

DISCUSSION Matthew Wilcox 1 participant 1 message Dec 10, 2003

lore
Share & tools
lore
#0 lore raw

config HW_RANDOM
tristate "Intel/AMD/VIA HW Random Number Generator support" depends on (X86 || IA64) && PCI
---help---
This driver provides kernel-side support for the Random Number Generator hardware found on Intel i8xx-based motherboards, AMD 76x-based motherboards, and Via Nehemiah CPUs.

Why IA64 too? This file contains the code:

static inline u32 xstore(u32 *addr, u32 edx_in)

{
        u32 eax_out;

        asm(".byte 0x0F,0xA7,0xC0 /* xstore %%edi (addr=%0) */"
                :"=m"(*addr), "=a"(eax_out)
                :"D"(addr), "d"(edx_in));

        return eax_out;
}

which doesn't compile on ia64. I think it should be unselectable.

Signature · 6 lines
"Next the statesmen will invent cheap lies, putting the blame upon 
the nation that is attacked, and every man will be glad of those
conscience-soothing falsities, and will diligently study them, and refuse
to examine any refutations of them; and thus he will by and by convince 
himself that the war is just, and will thank God for the better sleep 
he enjoys after this process of grotesque self-deception." -- Mark Twain