View Single Post
 
Old 04-13-2011, 12:22 AM
OS_Ninja OS_Ninja is offline
Cheetah
 
Join Date: Jul 2010
Posts: 12
Oh Boy....! Give it up iPhoneTom... Nobody needs/wants your code.

BTW, the only code I ever got from you would never compile, and when I finally got it to compile, it never booted os x...

As for me "not knowing" what EFI is.... A monkey can program EFI. Its written in the most simple programmer language, "C"..

Now.. About Ujen trying to "steal" your smbios code... Are you really being serious? Is that what you really think...? Stealing code eh? How many lines of code did you actually write yourself when you supposedly coded XPC out of thin air...?

The last time I looked at "your" code it was a messy copy/paste collection of REFIT, Chameleon, EDK2 and some code from sources that i will not mention so you can save some degree of dignity.

Hmmm... Does this look like "XPC" code to you?

VOIDPatchSmbiosTables(INVOID *Smbios)
{
SMBIOS_STRUCTURE_POINTERSmbiosTable;
CHAR8 *AString;

// Get Table Type0
SmbiosTable = GetSmbiosTableFromType ((SMBIOS_TABLE_ENTRY_POINT *)Smbios, EFI_SMBIOS_TYPE_BIOS_INFORMATION, 0);
if (SmbiosTable.Raw == NULL) {
AsciiPrint("SmbiosTable: Type 0 (Bios Information) not found!\n");
}
if(AsciiStrLen(gSettingsFromMenu.VendorName)>0){
// Get Vendor
AString = GetSmbiosString (SmbiosTable, SmbiosTable.Type0->Vendor);
// Patch Vendor
AsciiStrCpy (AString, gSettingsFromMenu.VendorName);
// Print Patched Vendor
AsciiPrint("BiosVendor: ");
AsciiPrint(AString);
AsciiPrint("\n");
}

// Get Table Type4
SmbiosTable = GetSmbiosTableFromType ((SMBIOS_TABLE_ENTRY_POINT *)Smbios, EFI_SMBIOS_TYPE_PROCESSOR_INFORMATION, 0);
if (SmbiosTable.Raw == NULL) {
AsciiPrint("SmbiosTable: Type 4 (Processor Information) not found!\n");
}
// Patch Processor Info
if (SmbiosTable.Raw != NULL) {
SmbiosTable.Type4->ProcessorType=0x03;
SmbiosTable.Type4->ProcessorId.Signature.ProcessorSteppingId=gCPUStructure.Stepping;
SmbiosTable.Type4->ProcessorId.Signature.ProcessorModel=gCPUStructure.Model;
SmbiosTable.Type4->ProcessorId.Signature.ProcessorFamily=gCPUStructure.Family;
SmbiosTable.Type4->ProcessorId.Signature.ProcessorType=gCPUStructure.Type;
SmbiosTable.Type4->ProcessorId.Signature.ProcessorXModel=gCPUStructure.Extmodel;
SmbiosTable.Type4->ProcessorId.Signature.ProcessorXFamily=gCPUStructure.Extfamily;
SmbiosTable.Type4->ExternalClock=gCPUStructure.ExternalClock;
SmbiosTable.Type4->MaxSpeed=gCPUStructure.MaxSpeed;
SmbiosTable.Type4->CurrentSpeed=gCPUStructure.CurrentSpeed;
SmbiosTable.Type4->ThreadCount=gCPUStructure.Threads;
SmbiosTable.Type4->CoreCount=gCPUStructure.Cores;
SmbiosTable.Type4->EnabledCoreCount=gCPUStructure.Cores;
}
return;
}

EFI_STATUSPatchSmbios()
{
EFI_STATUSStatus;
EFI_SMBIOS_PROTOCOL* gSmbios;
EFI_PEI_HOB_POINTERSGuidHob;
EFI_PEI_HOB_POINTERSHobStart;
VOID *Smbios;
UINTNIndex;
// Get SMBIOS Tables
Smbios = GetSmbiosTablesFromHob ();
if (Smbios == NULL) {
returnEFI_NOT_FOUND;
}
// Locate SMBIOS Protocol
Status = gBootServices->LocateProtocol (&gEfiSmbiosProtocolGuid,NULL,(VOID**)&gSmbios);
if(!EFI_ERROR(Status))
{
// Patch SMBIOS Tables
PatchSmbiosTables(Smbios);
}
// Get Hob List
HobStart.Raw = GetHobList ();
// Iteratively add Smbios Table to EFI System Table
for (Index = 0; Index < sizeof (gTableGuidArray) / sizeof (*gTableGuidArray); ++Index) {
GuidHob.Raw = GetNextGuidHob (gTableGuidArray[Index], HobStart.Raw);
if (GuidHob.Raw != NULL) {
smbiosTable = GET_GUID_HOB_DATA (GuidHob.Guid);
if (smbiosTable != NULL) {
//
// Check if Smbios Table exists in E/F seg,
// According to UEFI Spec, we should make sure Smbios table
// is kept in memory of specified type
//
ConvertSmbiosSystemTable(gTableGuidArray[Index],(VOID**)&smbiosTable);
if (EFI_ERROR (Status)) {
InitDesktopGUI();
DrawLogo();
InitPointer();
ShowPointer();
Print_On_Error(Status,"There were errors Converting SMBIOS System Table!");
ShowIcon(Stop);
}
}
}
}

returnStatus;
}

I didn't think so.. So why not stop running around making false claims.

HEY, I have a GREAT Idea!!! Since you say Ujen tries to steal your code and iBoot is "your" code, make me look like a fool by posting the code i supposedly stole from you.


To Mods: Please remove iPhoneTom posting from this thread, it is flooding the topic. To guarantee of bogus iPhoneTom claims, I guarantee he doesn't show supposed code he claims is stolen.

To iPhoneTom: Doing things like this does nothing to help the community. Jealousy is a wicked disease..
Reply With Quote