Skip to content
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

Implement SYS_WRITE #825

Open
FluffyOMC opened this issue Apr 12, 2024 · 0 comments
Open

Implement SYS_WRITE #825

FluffyOMC opened this issue Apr 12, 2024 · 0 comments
Labels
T-enhancement Type: Enhancement

Comments

@FluffyOMC
Copy link
Member

Sys_write gets used 3 times before we hard crash on mdbg mode currently. (This is mainly just the memory issue that's being worked on)

We should implement sys_write, but maybe also potentially let it be in the log as well? Currently I use this:

        unsafe {
            let data_slice = std::slice::from_raw_parts(ptr, len);
            let text_output = String::from_utf8_lossy(data_slice);
            info!("DEBUG: SYS_WRITE - {}", text_output);
        }

Which we get (in order)

++++++++++++++++++ I [00:00:00:05:487]:0x0000000000004b74: kernel\src\fs\mod.rs:395
DEBUG: SYS_WRITE - **** Base Mode ****
++++++++++++++++++ I [00:00:00:06:104]:0x0000000000004b74: kernel\src\fs\mod.rs:395
DEBUG: SYS_WRITE - [NpMgrSdkInit  	] sceNpManagerPrxStart() sceNpArchInit failed. ret = 0x8055800a
++++++++++++++++++ I [00:00:00:06:104]:0x0000000000004b74: kernel\src\fs\mod.rs:395
DEBUG: SYS_WRITE - [Sysmodule(123) 792] libSceNpManager cannot be loaded (0x80020064)
@gandalfthewhite19890404 gandalfthewhite19890404 added the T-enhancement Type: Enhancement label Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-enhancement Type: Enhancement
Development

No branches or pull requests

2 participants