1 --- i386/i386/initcpu.c 2003-11-10 16:48:30.000000000 +0100
2 +++ /home/yaron/diplom/bsdpatch/initcpu.c 2005-11-22 13:36:01.000000000 +0100
7 + switch (cpu_id & 0xf00) {
9 + // allow rdpmc from userland
10 + load_cr4(rcr4() | CR4_PCE);
12 + wrmsr(0x186, 0x430079);
15 + // allow rdpmc from userland
16 + load_cr4(rcr4() | CR4_PCE);
18 + wrmsr(0x3a2, 0x2600020c);
19 + wrmsr(0x360, 0x3d000);
22 } else if (strcmp(cpu_vendor, "AuthenticAMD") == 0) {
23 + // allow rdpmc from userland
24 + load_cr4(rcr4() | CR4_PCE);
26 + wrmsr(0xC0010000, 0x430076);
27 #if defined(I686_CPU) && defined(CPU_ATHLON_SSE_HACK)
29 * Sometimes the BIOS doesn't enable SSE instructions.