Chameleon

View chameleon-xcode5.patch

1Index: i386/libsaio/cpu.h
2===================================================================
3--- i386/libsaio/cpu.h(revision 2262)
4+++ i386/libsaio/cpu.h(working copy)
5@@ -179,7 +179,7 @@
6 ++count;
7 __asm__ volatile(
8 "inb$0x61,%0"
9- : "=q"(nmi_sc_val) /*:*/ /* no input */ /*:*/ /* no clobber */);
10+ : "=a"(nmi_sc_val) /*:*/ /* no input */ /*:*/ /* no clobber */);
11 } while( (nmi_sc_val & 0x20) == 0);
12 return count;
13 }
14Index: i386/libsaio/spd.c
15===================================================================
16--- i386/libsaio/spd.c(revision 2262)
17+++ i386/libsaio/spd.c(working copy)
18@@ -296,7 +296,7 @@
19 switch (slot->spd[SPD_MEMORY_TYPE]) {
20 case SPD_MEMORY_TYPE_SDRAM_DDR2:
21
22- slot->ModuleSize = ((1 << (slot->spd[SPD_NUM_ROWS] & 0x0f) + (slot->spd[SPD_NUM_COLUMNS] & 0x0f) - 17) *
23+ slot->ModuleSize = ((1 << ((slot->spd[SPD_NUM_ROWS] & 0x0f) + (slot->spd[SPD_NUM_COLUMNS] & 0x0f) - 17)) *
24 ((slot->spd[SPD_NUM_DIMM_BANKS] & 0x7) + 1) * slot->spd[SPD_NUM_BANKS_PER_SDRAM]);
25 break;
26
27

Archive Download this file

Attachment to issue 351

Created: 10 years 7 months ago by bltz