1
0
Fork 0
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:
Jonas 'Sortie' Termansen 2015-10-30 18:10:34 +01:00
parent 328f4e1fd6
commit 08bac6e3f6

View file

@ -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;
} }