-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Road map #1
Comments
TODO
|
Until I have no ideas, no todo and no question, can I compile the code. |
|
|
|
|
// TODO why kvmtool ignored PROT_EXEC ?
#define PROT_RWX (PROT_READ | PROT_WRITE |PROT_EXEC)
#define MAP_ANON_NORESERVE (MAP_PRIVATE | MAP_ANONYMOUS | MAP_NORESERVE)
static inline void *alloc_ebase()
{
void * addr = mmap(NULL, 1 << PAGESIZE, PROT_RWX, MAP_ANON_NORESERVE, -1, 0);
if(addr == NULL)
die_perror("alloc_ebase");
return addr;
} |
|
|
We can do better
|
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
review mode
ideas
host_loop
just like another thread, so it works just like two threads run in parallel.The text was updated successfully, but these errors were encountered: