mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 20:43:00 +00:00
[ROSLOAD] Initial support for launching OS Loader Entrypoint and returning from it
[ENVIRON]: Implement BlArchGetCpuVendor [ROSLOAD]: Stub OslPrepareTarget, OslExecuteTransition [ROSLOAD]: Implement OslpMain
This commit is contained in:
parent
b49a2d6356
commit
e836d0b56e
3 changed files with 194 additions and 24 deletions
|
@ -932,3 +932,47 @@ BlArchCpuId (
|
|||
__cpuidex(Result, Function, SubFunction);
|
||||
#endif
|
||||
}
|
||||
|
||||
CPU_VENDORS
|
||||
BlArchGetCpuVendor (
|
||||
VOID
|
||||
)
|
||||
{
|
||||
INT CpuInfo[4];
|
||||
INT Temp;
|
||||
|
||||
/* Get the CPU Vendor */
|
||||
BlArchCpuId(0, 0, CpuInfo);
|
||||
Temp = CpuInfo[2];
|
||||
CpuInfo[2] = CpuInfo[3];
|
||||
CpuInfo[3] = Temp;
|
||||
|
||||
/* Check against supported values */
|
||||
if (!strncmp((PCHAR)&CpuInfo[1], "GenuineIntel", 12))
|
||||
{
|
||||
return CPU_INTEL;
|
||||
}
|
||||
if (!strncmp((PCHAR)&CpuInfo[1], "AuthenticAMD", 12))
|
||||
{
|
||||
return CPU_AMD;
|
||||
}
|
||||
if (!strncmp((PCHAR)&CpuInfo[1], "CentaurHauls", 12))
|
||||
{
|
||||
return CPU_VIA;
|
||||
}
|
||||
if (!strncmp((PCHAR)&CpuInfo[1], "CyrixInstead", 12))
|
||||
{
|
||||
return CPU_CYRIX;
|
||||
}
|
||||
if (!strncmp((PCHAR)&CpuInfo[1], "GenuineTMx86", 12))
|
||||
{
|
||||
return CPU_TRANSMETA;
|
||||
}
|
||||
if (!strncmp((PCHAR)&CpuInfo[1], "RiseRiseRise", 12))
|
||||
{
|
||||
return CPU_RISE;
|
||||
}
|
||||
|
||||
/* Other */
|
||||
return CPU_UNKNOWN;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue