mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-05-28 07:24:37 +00:00
Added SIMD option in kernel arguments
This commit is contained in:
parent
3738e9b018
commit
c6e8efa22e
@ -218,6 +218,9 @@ namespace CPU
|
||||
SSESupport = true;
|
||||
}
|
||||
|
||||
if (!Config.SIMD)
|
||||
SSESupport = false;
|
||||
|
||||
if (PGESupport)
|
||||
{
|
||||
debug("Enabling global pages support...");
|
||||
|
14
KConfig.cpp
14
KConfig.cpp
@ -72,6 +72,12 @@ static struct cag_option ConfigOptions[] = {
|
||||
.value_name = "BOOL",
|
||||
.description = "Enable Interrupts On Crash. If enabled, the navigation keys will be enabled on crash"},
|
||||
|
||||
{.identifier = 's',
|
||||
.access_letters = NULL,
|
||||
.access_name = "simd",
|
||||
.value_name = "BOOL",
|
||||
.description = "Enable SIMD instructions"},
|
||||
|
||||
{.identifier = 'h',
|
||||
.access_letters = "h",
|
||||
.access_name = "help",
|
||||
@ -90,6 +96,7 @@ KernelConfig ParseConfig(char *Config)
|
||||
true,
|
||||
0,
|
||||
0,
|
||||
false,
|
||||
false};
|
||||
|
||||
if (Config == NULL)
|
||||
@ -382,6 +389,13 @@ ParseSuccess:
|
||||
KPrint("\eAAFFAAUnlocking the deadlock after 10 retries");
|
||||
break;
|
||||
}
|
||||
case 's':
|
||||
{
|
||||
value = cag_option_get_value(&context);
|
||||
strcmp(value, "true") ? config.SIMD = false : config.SIMD = true;
|
||||
KPrint("\eAAFFAASingle Instruction, Multiple Data (SIMD): %s", value);
|
||||
break;
|
||||
}
|
||||
case 'h':
|
||||
{
|
||||
KPrint("\n---------------------------------------------------------------------------\nUsage: kernel.fsys [OPTION]...\nKernel configuration.");
|
||||
|
@ -14,6 +14,7 @@ struct KernelConfig
|
||||
int Cores;
|
||||
int IOAPICInterruptCore;
|
||||
bool UnlockDeadLock;
|
||||
bool SIMD;
|
||||
};
|
||||
|
||||
KernelConfig ParseConfig(char *Config);
|
||||
|
Loading…
x
Reference in New Issue
Block a user