mirror of
https://github.com/drasko/codezero.git
synced 2026-11-24 18:04:00 +01:00
Added userland support for exregs/read, mm0 slightly more graceful for illegal access
This commit is contained in:
@@ -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"));
|
||||
|
||||
Reference in New Issue
Block a user