GithubHelp home page GithubHelp logo

libjz's Introduction

libjz

Based on the minimal amount of publically available information, and an unmeasurable amount of bruteforcing and observation, finally there is a driver and documentation on how to unlock and use the Jazelle core included (and most likely hidden) in some ARM CPU cores.

You can also reimplement this driver yourself based on the information documented in the wiki tab.

CPU compatibility

While all CPUs with J in their name should have Jazelle in them (like ARM926EJ-S or ARMv5TEJ), in some cases it's not so obvious (for example some if not all ARM11 MPCore (ARMv6K) CPUs should have it).

The best bet is to run the below instructions in kernel mode to see if the Jazelle core exists or not. You know there is a Jazelle core if you don't get any CPU exception, and you get a value with some high and some low bits set with middle bits being mostly if not all zero (in r0 in this example).

MOV r0, #2
MCR p14, 7, r0, c1, c0, 0
MRC p14, 7, r0, c0, c0, 0

On my ARM11 MPCore I get 0x74100064.

A rule of thumb is that ARM7TDMI (ARMv4 ?) is too old to hava Jazelle, while ARMv7 CPUs are highly unlikely to have it due to being too new.

Here are a few CPUs which are known to have Jazelle in them:

  • ARM7EJ-S (ARMv5TEJ)
  • ARM926EJ-S (ARMv5TEJ)
  • ARM11MPCore (ARMv6K)

Currently only the Jazelle core found in ARM11MPCore (0x74100064) is supported. Please open an issue if you need support for a different Jazelle identifier.

Kernel compatibility

Currently libjz has only been developed and tested on a Nintendo 3DS running in usermode under Nintendo's Horizon kernel with kernel code execution support.

Any kernel should work if it can unlock Jazelle for you, or if you can enter kernel mode to unlock it yourself with a jzk* prefix function.

Please note that functions starting with jzk* can only be executed in kernel mode, and will cause undefined instruction when attempted to be executed in usermode.

License

See LICENSE.txt. You may use this driver in personal projects freely.

If you want to distribute your project with this driver, please include a link to my github user page in your program where it's easily user-accessible (like in your program's about section, or in the copyright printout in a console application).

libjz's People

Contributors

sonosoos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

lolpro11 beta215

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.