roxas75 / rxTools

rxTools
http://www.rxtools.net/
GNU General Public License v2.0
266 stars 81 forks source link

Implement arm11 exception handling #332

Open TuxSH opened 8 years ago

TuxSH commented 8 years ago

ARM9 exception handling is already implemented, and it would be nice to have the same thing for ARM11 exception.

Such a feature would be useful to debug kernel exploits (namely memchunkhax2), or more generally, arm11 kernel-mode code.

AlbertoSONIC commented 8 years ago

@173210

173210 commented 8 years ago

The memory common for all processes are not so much, so we should implement a listener to receive information from the exception handler. We can implement one either in ARM9 or in ARM11, but I think ARM9 is better because it works even if ARM11 system is corrupted.

However, we have no way to talk with the listener. In my ARM9 exception handler, it can only show some registers on the screen and sometimes it doesn't work because the screen is handled by ARM11. So I came up two options for interactive debugging:

  1. SDMC Linux KeyASIC KA2000 is SDMC with Linux and Wi-Fi. It can talk with ARM9 via files in the SDMC. OEM devices are available about 2,000 yen in Japan.
  2. IrDA IrDA can be used as a serial interface. Today, however, there are not so many IrDA receiver for PC. I googled but it's also about 2,000 yen. I may have to make one by myself.

I think 2 is the better, but I have not implemented it yet because I don't have a receiver. I may buy one to debug my ARM9 boot loader for arm9loaderhax.

mariogamer2 commented 8 years ago

Litlle noob question,what it will permit ?