Skip to content
Snippets Groups Projects
Commit 09d2aa9b authored by Tronel Frederic's avatar Tronel Frederic
Browse files

Ajout des programmes de tests du tas et d'affichage de la table des pages.

parent 8b8e13f2
No related branches found
No related tags found
No related merge requests found
#include "kernel/types.h"
#include "kernel/stat.h"
#include "user/user.h"
int main(){
int pid = getpid();
printf("Pagetable for PID = %d\n", pid);
int ret = dump_pagetable(pid);
// printf("pagetable returned %d\n", ret);
exit(ret);
}
#include "kernel/types.h"
#include "kernel/stat.h"
#include "user/user.h"
#include "kernel/riscv.h"
int main(int argc, char **argv)
{
sbrk(-(uint64)sbrk(0));
printf("This is the end.\n");
exit(0);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment