Fixed build and warnings. Thanks to Jonas for reporting this.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10395 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
34d0fe82c4
commit
71a81208ef
@ -112,7 +112,7 @@ opt_identify(cpuid_info *info, int vendor_tag)
|
|||||||
|
|
||||||
// the 'vendorid' field of the info struct is not null terminated,
|
// the 'vendorid' field of the info struct is not null terminated,
|
||||||
// so it is copied into a properly terminated local string buffer
|
// so it is copied into a properly terminated local string buffer
|
||||||
memcpy(vendorID, info->eax_0.vendorid, 12);
|
memcpy(vendorID, info->eax_0.vendor_id, 12);
|
||||||
printf("%12s '%s'\n", "Vendor ID:", vendorID);
|
printf("%12s '%s'\n", "Vendor ID:", vendorID);
|
||||||
|
|
||||||
switch (vendor_tag) {
|
switch (vendor_tag) {
|
||||||
@ -263,7 +263,7 @@ Intel_identify(cpuid_info *info)
|
|||||||
if (info->regs.eax & 0x80000000) {
|
if (info->regs.eax & 0x80000000) {
|
||||||
// extended feature/signature bits supported
|
// extended feature/signature bits supported
|
||||||
if (info->regs.eax >= 0x80000004) {
|
if (info->regs.eax >= 0x80000004) {
|
||||||
int i;
|
uint32 i;
|
||||||
|
|
||||||
printf("\nExtended brand string:\n'");
|
printf("\nExtended brand string:\n'");
|
||||||
for (i = 0x80000002; i <= 0x80000004; ++i) {
|
for (i = 0x80000002; i <= 0x80000004; ++i) {
|
||||||
@ -388,7 +388,7 @@ Intel_TLB_cache(cpuid_info *info)
|
|||||||
|
|
||||||
#define BIT_31_MASK (1 << 31)
|
#define BIT_31_MASK (1 << 31)
|
||||||
|
|
||||||
int pass, matches; // counters
|
uint32 pass, matches; // counters
|
||||||
uint32 reg; // value of an individual register (eax, ebx, ecx, edx)
|
uint32 reg; // value of an individual register (eax, ebx, ecx, edx)
|
||||||
uint8 db; // descriptor byte
|
uint8 db; // descriptor byte
|
||||||
int indexOf[256] = {0}; // converts descriptor bytes to table indexes
|
int indexOf[256] = {0}; // converts descriptor bytes to table indexes
|
||||||
|
Loading…
Reference in New Issue
Block a user