-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move sceGeEdramSetSize
function to sceGe_driver
#223
Conversation
I am not able to test this, since I this seems to move the function to a place that requires kernel mode and I don't know how to trigger that. I have the following code from the issue which compiles: CMakeLists.txt
main.c:
I get a 0x8002013C error when trying to start it. One thing of note, with this change you need to link to pspge_driver. |
This PR is moving sceGeEdramSetSize to a kernel library. You're attempting to use it in a usermode application, which won't work. You'll need to use kubridge or write your own kernel -> user plugin to use this. Also, don't you have to initialize this with sceGeEdramInit before attempting to call sceGeEdramSetSize? |
Thanks for testing! too bad we're same result. I'm trying to learn how to work on this one here: https://uofw.github.io/upspd/docs/software/ModuleTutorialv1.pdf but not sure if this is the correct one to get this thing work. also practicing some samples from https://github.com/pspdev/pspsdk/tree/master/src/samples/prx. Right now, I'm really confused how this thing works and I don't want to go down to the rabbit hole for this(hopefully not😅). Should I draft this, close it or just open?
I applied this one too, I tried the kubridge and calling the |
I wouldn't use PPSSPP for testing kernel->user functionality. However, I know you should be able to use kuKernelCall like this: https://github.com/joel16/CMFileManager-PSP/blob/30b0be604e4ea9cf770bd4c56e7db1af8355fbbb/app/source/kernel_functions.cpp#L10 |
I'll take note of that, and thanks for the code! I'll try that one. For now, I'll draft this because it's currently not working. |
I will close this PR because I can't get it to work, and this PR will probably get stuck in here. Hopefully someone can work on this and solve the issue. Thanks. |
PR is based on https://spenon-dev.github.io/PSPLibDoc/modules/ge.prx_sceGe_driver.html and https://github.com/uofw/uofw/blob/master/include/ge_kernel.h#L294
Also adjust the flags version of sceGe_driver and sceGe_user based on https://raw.githubusercontent.com/Spenon-dev/PSPLibDoc/main/PSPLibDoc/6.60/PSPLibDoc_6.60.xml
Hopefully could fix the issue #139