]> rtime.felk.cvut.cz Git - jailhouse.git/commit
inmates: Add memory services to inmates framework
authorJan Kiszka <jan.kiszka@siemens.com>
Thu, 17 Jul 2014 15:18:21 +0000 (17:18 +0200)
committerJan Kiszka <jan.kiszka@siemens.com>
Mon, 21 Jul 2014 06:53:05 +0000 (08:53 +0200)
commit994d207f669f6159cb18b0f3e98b2e886f86b1b0
treebbdd3c194c03faa98bdf70f887f932a8b99f5712
parent370b3c791fbb0561d074fea4b7fee5a561810068
inmates: Add memory services to inmates framework

This adds a primitive memory allocator (without release) and a page
mapper (without unmap) to the inmates library. MMIO accessors are also
included. Those used for intercepted resources are encoded in assembly
to ensure that only supported instructions are used. With these
services, inmates can now access memory-mapped devices.

The allocator uses the lower memory starting from the first page.
Document this as well as the remaining memory layout.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
inmates/lib/x86/inmate.h
inmates/lib/x86/inmate.lds
inmates/lib/x86/mem.c [new file with mode: 0644]