Skip to content

Instantly share code, notes, and snippets.

@ToadKing
Created September 1, 2012 04:27
Show Gist options
  • Save ToadKing/3563812 to your computer and use it in GitHub Desktop.
Save ToadKing/3563812 to your computer and use it in GitHub Desktop.
diff --git a/console/rarch_console_exec.c b/console/rarch_console_exec.c
index d599c56..204debb 100644
--- a/console/rarch_console_exec.c
+++ b/console/rarch_console_exec.c
@@ -140,6 +140,9 @@ void rarch_console_exec(const char *path)
fclose(fp);
DCFlushRange(EXECUTE_ADDR, size);
#else
+#ifdef HAVE_LOGGER
+ *((vu32 *) 0x93300000) = logger_send;
+#endif
uint8_t buffer[0x800];
size_t size;
size_t offset = 0;
diff --git a/gx/app_booter/main.c b/gx/app_booter/main.c
index b84a5dc..ac51227 100644
--- a/gx/app_booter/main.c
+++ b/gx/app_booter/main.c
@@ -15,10 +15,13 @@
#define SYSTEM_ARGV ((struct __argv *) 0x93200000)
#endif
+void (** logger_send)(const char *__format, ...) = (void (**)(const char *, ...)) 0x93300000;
+
// if we name this main, GCC inserts the __eabi symbol, even when we specify -mno-eabi
// what a lovely "feature"
void app_booter_main(void)
{
+ (*logger_send)("test\n");
#if HW_RVL
void *exeBuffer = (void *) EXECUTABLE_MEM_ADDR;
#else
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment