Index: trunk/softs/tsar_boot/src/reset.S
===================================================================
--- trunk/softs/tsar_boot/src/reset.S	(revision 691)
+++ trunk/softs/tsar_boot/src/reset.S	(revision 694)
@@ -230,4 +230,5 @@
     mfc0    a1, CP0_CAUSE           /* second arg is cause                */
     mfc0    a2, CP0_EPC             /* third argc is epc                  */
+    mfc2    a3, CP2_DBVAR           /* fourth argc is dbvar               */
     nop
     j       handle_except
Index: trunk/softs/tsar_boot/src/reset_elf_loader.c
===================================================================
--- trunk/softs/tsar_boot/src/reset_elf_loader.c	(revision 691)
+++ trunk/softs/tsar_boot/src/reset_elf_loader.c	(revision 694)
@@ -39,5 +39,5 @@
     Elf32_Phdr      elf_pht[PHDR_ARRAY_SIZE];
 
-    unsigned char * buffer_ptr;
+    unsigned char * buffer_ptr = 0;
     Elf32_Ehdr    * elf_ehdr_ptr;
     Elf32_Phdr    * elf_phdr_ptr;
Index: trunk/softs/tsar_boot/src/reset_exception.c
===================================================================
--- trunk/softs/tsar_boot/src/reset_exception.c	(revision 691)
+++ trunk/softs/tsar_boot/src/reset_exception.c	(revision 694)
@@ -9,5 +9,5 @@
 #include <reset_tty.h>
 
-void handle_except(int status, int cause, int epc)
+void handle_except(int status, int cause, int epc, int dbvar)
 {
 	reset_puts("\n[RESET] exception handler called: \r\n    status ");
@@ -19,4 +19,6 @@
 	reset_puts(")\r\n    epc    ");
 	reset_putx(epc);
+	reset_puts("\r\n    dbvar  ");
+	reset_putx(dbvar);
 	reset_puts("\r\n");
 	while (1);
Index: trunk/softs/tsar_boot/src/sdcard.c
===================================================================
--- trunk/softs/tsar_boot/src/sdcard.c	(revision 691)
+++ trunk/softs/tsar_boot/src/sdcard.c	(revision 694)
@@ -107,5 +107,6 @@
  * \param   sdcard  : Initialized pointer to block device
  * \param   index   : SD card CMD index
- * \param   app     : Type of command, 0 for normal command or 1 for application specific
+ * \param   app     : Type of command, 0 for normal command or 1 for application 
+ *                    specific
  * \param   args    : SD card CMD arguments
  *
