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
5
kalloc.c
5
kalloc.c
|
@ -1,9 +1,8 @@
|
|||
// Physical memory allocator, intended to allocate
|
||||
// memory for user processes. Allocates in 4096-byte "pages".
|
||||
// memory for user processes. Allocates in 4096-byte pages.
|
||||
// Free list is kept sorted and combines adjacent pages into
|
||||
// long runs, to make it easier to allocate big segments.
|
||||
// One reason the page size is 4k is that the x86 segment size
|
||||
// granularity is 4k.
|
||||
// This combining is not useful now that xv6 uses paging.
|
||||
|
||||
#include "types.h"
|
||||
#include "defs.h"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue