diff --git a/sortix/kernel.cpp b/sortix/kernel.cpp index 81752840..7a082cf0 100644 --- a/sortix/kernel.cpp +++ b/sortix/kernel.cpp @@ -370,8 +370,16 @@ static void InitThread(void* /*user*/) int argc = 1; const char* argv[] = { "init", NULL }; - int envc = 0; - const char* envp[] = { NULL }; +#if defined(PLATFORM_X86) + const char* cputype = "cputype=i486-pc-sortix"; +#elif defined(PLATFORM_X64) + const char* cputype = "cputype=x86_64-pc-sortix"; +#else + #warning No cputype environmental variable provided here. + const char* cputype = "cputype=unknown-pc-sortix"; +#endif + int envc = 1; + const char* envp[] = { cputype, NULL }; CPU::InterruptRegisters regs; if ( process->Execute("init", program, programsize, argc, argv, envc, envp,