gblues 86ac651edf Fix disabled HID code, add defensive programming
== DETAILS

1. Noticed that the HID driver wasn't loading after setting WIIU_HID=1. Found
   that the HID driver init was ifdef'd out. Removed that.

2. Current theory around "System Memory Error 160-2203" is in-memory
   corruption. So, to try to identify it:

   - Created a routine that does a hex dump of the RPX over the logger. (I
     have a python3 script that can extract the hex dump back into a binary
     file). If a SME occurs with this routine enabled, we can see if the
     corruption is happening at read-time, or somewhere between when we send
     the RPX to the loader and try to execute it.

   - I noticed that we allocate slightly more memory than the RPX actually
     needs, and we don't zero the memory, which means there's a handful of
     bytes at the end that could be anything. I added a call to memset() to
     zero out the memory prior to loading the RPX off the SD card.

And, of course, after adding those, I haven't been able to reproduce the
System Memory Error, so maybe the uninitialized memory was the problem?

Here's hoping.
2018-01-18 19:57:19 -08:00
..
2018-01-06 09:44:03 -03:00
2018-01-06 09:44:03 -03:00
2018-01-06 09:44:03 -03:00
2018-01-06 09:44:03 -03:00
2017-08-04 21:30:49 +10:00
2017-08-04 21:30:49 +10:00
2016-11-02 22:06:15 +01:00
2018-01-13 12:16:37 -08:00
2016-11-10 08:32:45 +01:00
2018-01-04 17:21:16 +01:00
2018-01-06 09:44:03 -03:00
2018-01-06 09:44:03 -03:00