mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-07-11 07:19:20 +00:00
Added SIMD option in kernel arguments
This commit is contained in:
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.");
|
||||
|
Reference in New Issue
Block a user