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

AvSetSavedDataAddress issues #26

Open
Luca1991 opened this issue Apr 9, 2018 · 3 comments
Open

AvSetSavedDataAddress issues #26

Luca1991 opened this issue Apr 9, 2018 · 3 comments

Comments

@Luca1991
Copy link
Member

Luca1991 commented Apr 9, 2018

As pointed out by @PatrickvL the address 0xFD000000 (NV2A_MMIO_BASE) should be valid.

Instead on my real xbox I get a black screen and the system hangs there.

@Luca1991
Copy link
Member Author

Luca1991 commented Apr 9, 2018

Okay, what I did: I called AvGetSavedDataAddress and printed the value. It was 0x0. I passed 0x0 to AvSetSavedDataAddress and now it doesn't crash. According to XboxDevWiki 0x00000000 is where main mem start (obviously).

@PatrickvL what do you think about it?

@PatrickvL
Copy link
Member

PatrickvL commented Apr 9, 2018

Currently, Cxbx-Reloaded doesn't do anything else but store and retrieve a 32 bit number via AvSetSavedDataAddress/AvGetSavedDataAddress. The real kernel however does much more. The kernel test suite should somehow describe all the things that these API's do in the original kernel. (And what they shouldn't do with certain input.) Until we have a better understanding on that, we best keep it simple. Setting NULL isn't much of a test, but if that's the only way to prevent the real kernel from crashing, then that's what we do. Also, do add a description of why the test is so simple (and possibly create an issue to figure out how the original kernel behaves).

@JayFoxRox
Copy link

You need to point it at a memory page, ideally one which was made persistent.
I don't remember if this takes a physical or virtual address though.

The point of this function is to preserve framebuffer contents across a reboot / XBE change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants