]> rtime.felk.cvut.cz Git - jailhouse.git/commitdiff
inmates: x86: align code after last level of page tables
authorHenning Schild <henning.schild@siemens.com>
Thu, 30 Oct 2014 16:29:54 +0000 (17:29 +0100)
committerJan Kiszka <jan.kiszka@siemens.com>
Thu, 30 Oct 2014 17:12:48 +0000 (18:12 +0100)
The header contains the page tables but the last level (pd) contained the
code right after the first entry. Calls to map_range would actually
overwrite the inmates code.
This patch makes sure the code will start on the next page.

Signed-off-by: Henning Schild <henning.schild@siemens.com>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
inmates/lib/x86/header.S

index 22c20261995958453f58cff5bf01544f29d05ac1..bac50286c2dd2c033467d9edc356c2337c67dd1a 100644 (file)
@@ -96,3 +96,4 @@ pdpt:
        .align(4096)
 pd:
        .quad   0x0000000000000083
+       .align(4096)