GithubHelp home page GithubHelp logo

Comments (9)

isage avatar isage commented on July 23, 2024

You need to generate stubs for your module (basically a static lib) and link with them. There's no dlsym-like functionality.
There's also no automatic loading.

If you want dlopen/dlsym functionality, you can use https://github.com/isage/vita-rss-libdl as reference (it'll need adjustments to work in kernel-space)

from vita-headers.

jvulcan avatar jvulcan commented on July 23, 2024

How do I generate those stubs for a vita kernel module?
Would that mean that I don't need to provide the skprx module anymore and it will be embedded to the vpk?
Thanks.

from vita-headers.

isage avatar isage commented on July 23, 2024

https://github.com/vitasdk/vita-toolchain/blob/master/cmake_toolchain/vita.cmake#L162
No, you still need to provide and load skprx.
VPK is just a zip file. You can add your module there for your app to load (from app0:/...)

https://github.com/TheOfficialFloW/kubridge is a nice exaple of kernel module with exports and stubs (and handling userspace <-> kernelspace memory conversion)

from vita-headers.

jvulcan avatar jvulcan commented on July 23, 2024

Thank you, I'll check them out.

from vita-headers.

jvulcan avatar jvulcan commented on July 23, 2024

QUESTION. Can I just use the kernel functions in the VPK project? that way I could just put everything in the VPK instead of coding a library.
or making a kernel module has something special?
I'm looking to:

  • handle SVC exceptions
  • allocate data in an arbitrary virtual space range (it doesn't collide with user space)
  • run byte asm code allocated in that arbitrary virtual space
    Thanks

from vita-headers.

isage avatar isage commented on July 23, 2024

No. Apps run in userspace

from vita-headers.

Princess-of-Sleeping avatar Princess-of-Sleeping commented on July 23, 2024

It is possible to make a simple hook to svc. It may or may not be possible to allocate memory for any virtual space.

About any virtual space mapping, You need to learn ARM TTBR.

Edit
All your questions must be run in kernel space.

from vita-headers.

jvulcan avatar jvulcan commented on July 23, 2024

These are the virtual spaces I wanna use:
0x100000
The following spaces may or may not be used:
0xbf3000
0xd32000
0xd71000
0xded000
0xec0000
0x1082000
0xb00000
0xb84000
0xcba000

from vita-headers.

jvulcan avatar jvulcan commented on July 23, 2024

For the hook I will need to know what Thread called SVC along with the code (e.g. SVC 0x36 , I need to catch the 0x36) and state of registers.

from vita-headers.

Related Issues (20)

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.