Index: branches/azimutz/Cleancut/i386/libsaio/spd.c =================================================================== --- branches/azimutz/Cleancut/i386/libsaio/spd.c (revision 930) +++ branches/azimutz/Cleancut/i386/libsaio/spd.c (revision 931) @@ -344,8 +344,9 @@ slot->SerialNo); #if DEBUG_SPD + // prevously located on mem.c; temporarily on platform.c now dumpPhysAddr("spd content: ", slot->spd, spd_size); - getc(); + getchar(); #endif } Index: branches/azimutz/Cleancut/i386/libsaio/platform.c =================================================================== --- branches/azimutz/Cleancut/i386/libsaio/platform.c (revision 930) +++ branches/azimutz/Cleancut/i386/libsaio/platform.c (revision 931) @@ -26,6 +26,50 @@ PlatformInfo_t Platform; pci_dt_t * dram_controller_dev = NULL; +//Azi: temporarily placing this here; from removed mem.c, needed by DEBUG_PLATFORM +// check if replaceable by other or completely remove?? whatever... +#define DC(c) (c >= 0x20 && c < 0x7f ? (char) c : '.') +#define STEP 16 +void dumpPhysAddr(const char * title, void * a, int len) +{ + int i,j; + u_int8_t* ad = (u_int8_t*) a; + char buffer[80]; + char str[16]; + + if(ad==NULL) return; + + printf("%s addr=0x%08x len=%04d\n",title ? title : "Dump of ", a, len); + printf("Ofs-00-01-02-03-04-05-06-07-08-09-0A-0B-0C-0D-0E-0F ASCII\n"); + i = (len/STEP)*STEP; + for (j=0; j < i; j+=STEP) + { + printf("%02x: %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c\n", + j, + ad[j], ad[j+1], ad[j+2], ad[j+3] , ad[j+4], ad[j+5], ad[j+6], ad[j+7], + ad[j+8], ad[j+9], ad[j+10], ad[j+11] , ad[j+12], ad[j+13], ad[j+14], ad[j+15], + DC(ad[j]), DC(ad[j+1]), DC(ad[j+2]), DC(ad[j+3]) , DC(ad[j+4]), DC(ad[j+5]), DC(ad[j+6]), DC(ad[j+7]), + DC(ad[j+8]), DC(ad[j+9]), DC(ad[j+10]), DC(ad[j+11]) , DC(ad[j+12]), DC(ad[j+13]), DC(ad[j+14]), DC(ad[j+15]) + ); + } + + if (len%STEP==0) return; + sprintf(buffer,"%02x:", i); + for (j=0; j < STEP; j++) { + if (j<(len%STEP)) + sprintf(str, " %02x", ad[i+j]); + else + strcpy(str, " " ); + strncat(buffer, str, sizeof(buffer)); + } + strncat(buffer," ", sizeof(buffer)); + for (j=0; j < (len%STEP); j++) { + sprintf(str, "%c", DC(ad[i+j])); + strncat(buffer, str, sizeof(buffer)); + } + printf("%s\n",buffer); +} + /** Return if a CPU feature specified by feature is activated (true) or not (false) */ bool platformCPUFeature(uint32_t feature) { Index: branches/azimutz/Cleancut/i386/modules/Resolution/915resolution.c =================================================================== --- branches/azimutz/Cleancut/i386/modules/Resolution/915resolution.c (revision 930) +++ branches/azimutz/Cleancut/i386/modules/Resolution/915resolution.c (revision 931) @@ -182,7 +182,7 @@ if((id & 0x0000FFFF) == 0x00008086) // Intel chipset { //printf("Unknown chipset 0x%llX, please email id to meklort@gmail.com", id); - //getc(); + //getchar(); type = CT_UNKNOWN_INTEL; //type = CT_UNKNOWN; Index: branches/azimutz/Cleancut/i386/modules/IntelGraphicsEnabler/gma.c =================================================================== --- branches/azimutz/Cleancut/i386/modules/IntelGraphicsEnabler/gma.c (revision 930) +++ branches/azimutz/Cleancut/i386/modules/IntelGraphicsEnabler/gma.c (revision 931) @@ -99,7 +99,7 @@ { printf("Failed initializing dev-prop string dev-entry, press any key...\n"); - getc(); + getchar(); return false; } @@ -142,7 +142,7 @@ if(!stringdata) { printf("no stringdata press a key...\n"); - getc(); + getchar(); return false; } Index: branches/azimutz/Cleancut/i386/modules/ATiGraphicsEnabler/ati.c =================================================================== --- branches/azimutz/Cleancut/i386/modules/ATiGraphicsEnabler/ati.c (revision 930) +++ branches/azimutz/Cleancut/i386/modules/ATiGraphicsEnabler/ati.c (revision 931) @@ -658,7 +658,7 @@ device = devprop_add_device(string, devicepath); if (!device) { printf("Failed initializing dev-prop string dev-entry, press any key...\n"); - getc(); + getchar(); return false; }