Added userland support for exregs/read, mm0 slightly more graceful for illegal access

This commit is contained in:
Bahadir Balban
2009-11-05 15:56:01 +02:00
parent 3f870b540f
commit 35a5dc4c92
5 changed files with 51 additions and 3 deletions
@@ -32,6 +32,7 @@ int main(int argc, char *argv[])
char *parent_of_all;
char pidbuf[10];
printf("New task started: %d\n", __raw_tid(getpid()));
/* Convert current pid to string */
sprintf(pidbuf, "%d", getpid());
@@ -44,6 +45,8 @@ int main(int argc, char *argv[])
goto out;
}
printf("New task continues: %d\n", __raw_tid(getpid()));
/* Get parent of all pid as a string from environment */
parent_of_all = getenv("parent_of_all");
pagerid = ascii_to_int(getenv("pagerid"));