first shell prints $ prompt, though no console input yet
This commit is contained in:
parent
7fd1f1eb0a
commit
50cbc75102
14 changed files with 408 additions and 164 deletions
4
proc.c
4
proc.c
|
@ -24,7 +24,7 @@ extern void sysexit(void);
|
|||
|
||||
static void wakeup1(void *chan);
|
||||
|
||||
extern char trampstart[]; // trampoline.S
|
||||
extern char trampout[]; // trampoline.S
|
||||
|
||||
void
|
||||
procinit(void)
|
||||
|
@ -123,7 +123,7 @@ proc_pagetable(struct proc *p)
|
|||
// only the supervisor uses it, on the way
|
||||
// to/from user space, so not PTE_U.
|
||||
mappages(pagetable, TRAMPOLINE, PGSIZE,
|
||||
(uint64)trampstart, PTE_R | PTE_X);
|
||||
(uint64)trampout, PTE_R | PTE_X);
|
||||
|
||||
// map the trapframe, for trampoline.S.
|
||||
mappages(pagetable, (TRAMPOLINE - PGSIZE), PGSIZE,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue