process: Support loading multiple codesets.
This commit is contained in:
parent
6bafd3f4f7
commit
fa1c7c7ee1
2 changed files with 27 additions and 20 deletions
|
@ -79,7 +79,11 @@ struct CodeSet final : public Object {
|
|||
u32 size = 0;
|
||||
};
|
||||
|
||||
Segment code, rodata, data;
|
||||
Segment segments[3];
|
||||
Segment& code = segments[0];
|
||||
Segment& rodata = segments[1];
|
||||
Segment& data = segments[2];
|
||||
|
||||
VAddr entrypoint;
|
||||
|
||||
private:
|
||||
|
@ -136,6 +140,8 @@ public:
|
|||
*/
|
||||
void Run(s32 main_thread_priority, u32 stack_size);
|
||||
|
||||
void LoadModule(SharedPtr<CodeSet> module_, VAddr base_addr);
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Memory Management
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue