]> rtime.felk.cvut.cz Git - jailhouse.git/commit
core: Move per_cpu::cpu_id initialization out of assembly code
authorJan Kiszka <jan.kiszka@siemens.com>
Sun, 9 Feb 2014 10:08:27 +0000 (11:08 +0100)
committerJan Kiszka <jan.kiszka@siemens.com>
Sun, 9 Feb 2014 10:08:27 +0000 (11:08 +0100)
commitd835c47364916c3a279e99cb668e1920bb0eafcc
tree24c44d8300c22a0de2eaf1c51633d08d7d58551f
parent6f8cee11e661e4f56c2cd205d6b7cef62c0c2042
core: Move per_cpu::cpu_id initialization out of assembly code

We can trivially initialize this field during early setup if we pass the
value to entry(). Removes one offset define that needs to be kept in
manual sync with struct per_cpu.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
hypervisor/arch/arm/include/asm/percpu.h
hypervisor/arch/x86/entry.S
hypervisor/arch/x86/include/asm/percpu.h
hypervisor/include/jailhouse/entry.h
hypervisor/setup.c