Skip to content
Snippets Groups Projects
Commit 0c26a1ff authored by a2-stratford's avatar a2-stratford
Browse files

Apply suggestion to userprog/process.c

parent 622329ad
No related branches found
No related tags found
1 merge request!5Alex/6 implement populate stack process
...@@ -212,7 +212,7 @@ struct Elf32_Phdr ...@@ -212,7 +212,7 @@ struct Elf32_Phdr
#define PF_W 2 /* Writable. */ #define PF_W 2 /* Writable. */
#define PF_R 4 /* Readable. */ #define PF_R 4 /* Readable. */
static bool setup_stack(void **initial_stack_pointer, char **argv, int argc) static bool setup_stack(void **initial_stack_pointer, char **argv, int argc);
static bool validate_segment (const struct Elf32_Phdr *, struct file *); static bool validate_segment (const struct Elf32_Phdr *, struct file *);
static bool load_segment (struct file *file, off_t ofs, uint8_t *upage, static bool load_segment (struct file *file, off_t ofs, uint8_t *upage,
uint32_t read_bytes, uint32_t zero_bytes, uint32_t read_bytes, uint32_t zero_bytes,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment