9os

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 05b2cd263e2fa1e71a530f2d50fcf34d17c70601
parent d60556bf6cb6304a18de257d19b2e94bc6f80928
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Sun, 18 Oct 2020 09:37:52 +0200

os9/arm64: Add ptable segment

This segment is used for the buffer allocator allocb().

Change-Id: I36a4885a5601bf33802cd78c4f471a99d6c12e2a

Diffstat:
Msrc/os9/arch/arm64/fvp.c | 11++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/src/os9/arch/arm64/fvp.c b/src/os9/arch/arm64/fvp.c @@ -21,14 +21,15 @@ Mach mach = { void imach(void) { - Map *textp, *datap, *stackp; - static Map maps[4]; + Map *textp, *datap, *stackp, *pagep; + static Map maps[5]; extern char text[], etext[], end[]; mach.maps = maps; textp = &maps[0]; datap = &maps[1]; stackp = &maps[2]; + pagep = &maps[3]; textp->name = "text"; textp->pa = mach.phytext; @@ -48,7 +49,11 @@ imach(void) stackp->siz = 4*KiB; stackp->perm = MR | MW; - barrier(DATA); + pagep->name = "ptable"; + pagep->pa = mach.phystack; + pagep->va = 0xFFFFFF0000080000; + pagep->siz = PAGESIZE * 20; + pagep->perm = MR | MW; } int