Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion source/lv2/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,19 @@

#include "log.h"

static const char *consoleNames[] =
{
"Xenon",
"Zephyr",
"Falcon",
"Jasper",
"Trinity",
"Corona",
"Corona MMC",
"Winchester",
"Winchester MMC",
};

void do_asciiart()
{
char *p = asciiart;
Expand Down Expand Up @@ -89,6 +102,7 @@ void synchronize_timebases()
int main(){
LogInit();
int i;
int consoleType = 0;

printf("ANA Dump before Init:\n");
dumpana();
Expand Down Expand Up @@ -179,7 +193,11 @@ int main(){
/*int device_list_size = */ // findDevices();

/* display some cpu info */
printf(" * CPU PVR: %08x\n", mfspr(287));
consoleType = xenon_get_console_type();

printf("\n * Console Type: %s (PVR %08x)\n\n",
(consoleType >= 0 && consoleType <= 7) ? consoleNames[consoleType] : "Unknown",
mfspr(287));

#ifndef NO_PRINT_CONFIG
printf(" * FUSES - write them down and keep them safe:\n");
Expand Down
Loading