mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Add kernelinfo firmware string.
This commit is contained in:
parent
328f4e1fd6
commit
08bac6e3f6
1 changed files with 6 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
|
|
||||||
Copyright(C) Jonas 'Sortie' Termansen 2012.
|
Copyright(C) Jonas 'Sortie' Termansen 2012, 2015.
|
||||||
|
|
||||||
This file is part of Sortix.
|
This file is part of Sortix.
|
||||||
|
|
||||||
|
@ -41,6 +41,11 @@ static const char* KernelInfo(const char* req)
|
||||||
if ( strcmp(req, "version") == 0 ) { return VERSIONSTR; }
|
if ( strcmp(req, "version") == 0 ) { return VERSIONSTR; }
|
||||||
if ( strcmp(req, "builddate") == 0 ) { return __DATE__; }
|
if ( strcmp(req, "builddate") == 0 ) { return __DATE__; }
|
||||||
if ( strcmp(req, "buildtime") == 0 ) { return __TIME__; }
|
if ( strcmp(req, "buildtime") == 0 ) { return __TIME__; }
|
||||||
|
#if defined(__i386__) || defined(__x86_64__)
|
||||||
|
if ( strcmp(req, "firmware") == 0 ) { return "bios"; }
|
||||||
|
#else
|
||||||
|
#warning "Name your system firmware here"
|
||||||
|
#endif
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue