Compare commits

...

2 Commits

Author SHA1 Message Date
Mathieu Maret
2359cf2744 process: add name getter 2024-01-26 22:23:58 +01:00
Mathieu Maret
ee42ba1350 Update gcc deps
Ubuntu gcc does not include libgcc for 32bits anymore and we are using access attribut from gcc 11
2024-01-26 22:23:10 +01:00
3 changed files with 6 additions and 1 deletions

View File

@ -11,7 +11,7 @@ It's targetting x86 and inspirated by http://sos.enix.org/fr/PagePrincipale
To generate iso image To generate iso image
* `mtools xorriso (which is libisoburn on ArchLinux)` * `mtools xorriso (which is libisoburn on ArchLinux)`
* gcc >= 6 * gcc for 32bits (e.g. gcc-multilib for ubuntu) >= 11
* sfdisk (util-linux) * sfdisk (util-linux)
# Run it # Run it

View File

@ -164,6 +164,10 @@ int processSetName(struct process *proc, char *name)
return 0; return 0;
} }
char *processGetName(struct process *proc){
return proc->name;
}
struct mmu_context *processGetMMUContext(struct process *proc) struct mmu_context *processGetMMUContext(struct process *proc)
{ {
return uAddrSpaceGetMMUContext(proc->addrSpace); return uAddrSpaceGetMMUContext(proc->addrSpace);

View File

@ -12,6 +12,7 @@ void processListPrint();
int processRef(struct process *proc); int processRef(struct process *proc);
int processUnref(struct process *proc); int processUnref(struct process *proc);
int processSetName(struct process *proc, char *name); int processSetName(struct process *proc, char *name);
char *processGetName(struct process *proc);
int processAddThread(struct process *proc, struct thread *th); int processAddThread(struct process *proc, struct thread *th);
int processRemoveThread(struct thread *th); int processRemoveThread(struct thread *th);
struct mmu_context *processGetMMUContext(struct process *th); struct mmu_context *processGetMMUContext(struct process *th);