projects
/
dosdemo
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added CPUID code from rbench and get_cpl to be used by the
[dosdemo]
/
src
/
dos
/
main.c
diff --git
a/src/dos/main.c
b/src/dos/main.c
index
566d47e
..
d820c7b
100644
(file)
--- a/
src/dos/main.c
+++ b/
src/dos/main.c
@@
-10,6
+10,7
@@
#include "audio.h"
#include "sball.h"
#include "vmath.h"
#include "audio.h"
#include "sball.h"
#include "vmath.h"
+#include "cpuid.h"
static int handle_sball_event(sball_event *ev);
static void recalc_sball_matrix(float *xform);
static int handle_sball_event(sball_event *ev);
static void recalc_sball_matrix(float *xform);
@@
-38,6
+39,10
@@
int main(int argc, char **argv)
__djgpp_nearptr_enable();
#endif
__djgpp_nearptr_enable();
#endif
+ if(read_cpuid(&cpuid) == 0) {
+ print_cpuid(&cpuid);
+ }
+
init_logger("demo.log");
/* au_init needs to be called early, before init_timer, and also before
init_logger("demo.log");
/* au_init needs to be called early, before init_timer, and also before