1/* 2 * Copyright (c) 2008 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 99 unchanged lines hidden (view full) --- 108 memset(cleanName, '\0', nameStringSize); 109 strncpy(cleanName, nameString, nameStringSize); 110 111 int offset = (funcNum - NameString1) * 16; 112 assert(nameStringSize >= offset + 16); 113 result = CpuidResult( 114 stringToRegister(cleanName + offset + 0), 115 stringToRegister(cleanName + offset + 4), |
116 stringToRegister(cleanName + offset + 12), 117 stringToRegister(cleanName + offset + 8)); |
118 } 119 break; 120 case L1CacheAndTLB: 121 result = CpuidResult(0xff08ff08, 0xff20ff20, 122 0x40020140, 0x40020140); 123 break; 124 case L2L3CacheAndL2TLB: 125 result = CpuidResult(0x00000000, 0x42004200, --- 35 unchanged lines hidden --- |