Commit 7a58400f authored by Billy Hulbert's avatar Billy Hulbert
Browse files

Add Scorpio revision.

parent 1cf2bf43
Loading
Loading
Loading
Loading
+8 −7
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@
#define CPUID_HW_REV 0x4000000D

/*
* Console Revisions (REQUIRES UPDATING)
* Console Revisions
*/

#define HW_REV_DURANGO				0x10
@@ -16,6 +16,7 @@
#define HW_REV_CARMEL_BASE			0x30
#define HW_REV_CARMEL_4K			0x31
#define HW_REV_EDMONTON				0x40
#define HW_REV_SCORPIO				0x50

/*
* Devkit types
+4 −1
Original line number Diff line number Diff line
@@ -6,7 +6,7 @@ void PrintConsoleRevision()
	int regs[4];

	__cpuid(regs, CPUID_HW_REV);
	int consoleRevId = regs[2] & 0xFF;
	int consoleRevId = regs[2] & 0xFFFF;

	char *consoleRev = (char *)calloc(1, 0x100);

@@ -30,6 +30,9 @@ void PrintConsoleRevision()
	case HW_REV_EDMONTON:
		consoleRev = "Edmonton";
		break;
	case HW_REV_SCORPIO:
		consoleRev = "Scorpio";
		break;
	default:
		consoleRev = "Unknown";
	}