Lockna / cernel

compact toy x64 kernel for learning purposes | uses stivale protocol
MIT License
9 stars 1 forks source link

add options for page #2

Closed 0x6D70 closed 3 years ago

0x6D70 commented 3 years ago

At the moment all pages are rwx, the goal is to set the rwx at every new mapping. Are there any other options which can be set?

Idea

// maps a page as writeable and reable (not executable)
vmm_map(page_table, v_addr, ph_addr,  PAGE_WRITE | PAGE_READ); 
0x6D70 commented 3 years ago

this issue will be closed for now, because we don't have userspace yet and it is not needed