fix corner cases in exec of ELF
put an invalid page below the stack have fork() handle invalid pages
This commit is contained in:
parent
1afc9d3fca
commit
c4cc10da7e
8 changed files with 84 additions and 37 deletions
1
mmu.h
1
mmu.h
|
|
@ -129,7 +129,6 @@ struct segdesc {
|
|||
#define PTE_ADDR(pte) ((uint) (pte) & ~0xFFF)
|
||||
|
||||
typedef uint pte_t;
|
||||
extern pde_t *kpgdir;
|
||||
|
||||
// Control Register flags
|
||||
#define CR0_PE 0x00000001 // Protection Enable
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue