kernel: Add more architecture code post-scheduler

* Fix incorrect cpu vendor name mapping
* Add additional CPU architectures
* Add additional CPU vendors
* Rework PowerPC arch_system_info passing
  PVR back for cpu model
This commit is contained in:
Alexander von Gluck IV
2014-01-19 21:53:56 -06:00
parent e1720098c6
commit 14919567d1
3 changed files with 82 additions and 56 deletions
+3 -1
View File
@@ -170,8 +170,10 @@ parse_amd(const char* name)
static const char*
get_cpu_vendor_string(enum cpu_vendor cpuVendor)
{
// Should match vendors in OS.h
static const char* vendorStrings[] = {
NULL, "AMD", "Cyrix", "IDT", "Intel", "Rise", "Transmeta", "VIA",
NULL, "AMD", "Cyrix", "IDT", "Intel", "National Semiconductor", "Rise",
"Transmeta", "VIA", "IBM", "Motorola", "NEC"
};
if ((size_t)cpuVendor >= sizeof(vendorStrings) / sizeof(const char*))