mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-07 23:45:12 +00:00
Initial kernel allocator
This commit is contained in:
parent
0f76e72de1
commit
d7a34f0904
25 changed files with 247 additions and 144 deletions
|
|
@ -1,6 +1,7 @@
|
|||
#include "linker.hpp"
|
||||
#include "align.hpp"
|
||||
#include "io-device.hpp"
|
||||
#include "orbis/KernelAllocator.hpp"
|
||||
#include "orbis/module/Module.hpp"
|
||||
#include "vfs.hpp"
|
||||
#include "vm.hpp"
|
||||
|
|
@ -280,7 +281,7 @@ void rx::linker::override(std::string originalModuleName,
|
|||
|
||||
Ref<orbis::Module> rx::linker::loadModule(std::span<std::byte> image,
|
||||
orbis::Process *process) {
|
||||
Ref<orbis::Module> result{new orbis::Module{}};
|
||||
Ref<orbis::Module> result{orbis::knew<orbis::Module>()};
|
||||
|
||||
Elf64_Ehdr header;
|
||||
std::memcpy(&header, image.data(), sizeof(Elf64_Ehdr));
|
||||
|
|
@ -842,7 +843,7 @@ Ref<orbis::Module> rx::linker::loadModuleFile(const char *path,
|
|||
}
|
||||
|
||||
static Ref<orbis::Module> createSceFreeTypeFull(orbis::Process *process) {
|
||||
auto result = orbis::create<orbis::Module>();
|
||||
auto result = orbis::knew<orbis::Module>();
|
||||
|
||||
std::strncpy(result->soName, "libSceFreeTypeFull.prx",
|
||||
sizeof(result->soName) - 1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue