I do a scientific work with the ps3.
For this reason i have to enable the "graphics rounding mode" that configures the VMX unit to produce results equivalent in precision to the SPE.
I'm confused... why are you using inline asm rather than just calling lv1_set_vmx_graphics_mode directly? Are you trying to do this from userspace? I don't think that will work.
Trying to call hypervisor functions from userspace should result in a return code of LV1_NO_PRIVILEGE (-3). You'll need to call the hypervisor function from a kernel module (called by your userspace program) for the call to be allowed.
scorp wrote:I've never wrote such a kernel module. Does anyone have one, which a can use / rewrite to my function?
I know I sent you an example before, but to solve a similar problem I knocked up a quick module module as a patch. I've commented out the vmx_graphics stuff in this example because you'll need to add it to lv1call.h, and I didn't actually need it for what I was doing. But, it's pretty much a case of uncommenting and adding the appropriate definition to lv1call.h. http://python-ps3.svn.sourceforge.net/v ... iew=markup
I have the Kernelversion: 2.6.16-20061110.ydl.2ps3, but if i include <lv1call.h> the compiler use the header from the version /2.6.16-20070425.ydl.3ps3.
Do i have to update the kernel first to use your patch?
How do i install such a kernel patch ? I think you have to run
Sorry, my linux knowledge isn't very good, cause i had to use it only to develop some c-code. I don't want to do things which crash or detroy the system due to my unexperience.