-
Notifications
You must be signed in to change notification settings - Fork 29
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
[WIP] Implement mmap/munmap #44
base: vita
Are you sure you want to change the base?
Conversation
Thanks to @frangarcj for testing it.
MrNetrix changes and user-defined heap size
Implement _gettimeofday_r
Allows building the manuals using recent versions of TexInfo.
* Add `vita/lcltime_r.c` to provide localtime_r using SceRtc functions * Use hardtabs instead of spaces in `sys/vita/lcltime_r.c` * Use `rid` as `errno` in `lcltime_r.c`
copy from `newlib/libc/sys/phoenix/net/*`
vita newlib has sa_len and doesn't have arpa/inet.h
copy from `newlib/libc/sys/phoenix/net/*`
Add more network functions
Add more socket defines
Does this make malloc to use mmap when heap finished? If so, depending on the case, it can break already existing homebrews. (Eg: an homebrew using vita2d that allocs a lot of textures will result in running out of available memblocks making mmap fail despite having still free memory. The viceversa case would apply too, you run out of newlib heap and keep alloc-ing memblocks with malloc until you run out of memblocks and then vita2d becomes completely unusable to alloc new textures). |
hm. maybe yes (main flow is alloc small block ->alloc large block->alloc with mmap->extend heap memblock, but i just readed very roughly). and it related and I'm not sure that this patch occurs breaking of homebrews if that apps were had quite right memory handling. |
@Rinnegatamante split malloc part to #46 to easy reviewing |
I'm quite sure mmap can't be replaced in all cases with sceKernelAllocMemBlock. Speaking about dynarec: mmap's generally used in that case but on Vita we need sceKernelAllocMemBlockForVM: @frangarcj may know more about this. |
well... we don't need to replace all of more detail explain, maybe PS. same reason, ioq3 repo is wrong. sorry ioq3's code is right. that code called |
added mark WIP. I didn't test yet, but imo, |
5aff4aa
to
190169b
Compare
No description provided.