~linaro-toolchain-dev/linaro-toolchain-misc/kvm-boot-wrapper

  • Committer: Jon Medhurst
  • Date: 2012-12-07 11:15:18 UTC
  • Revision ID: git-v1:eb037c6e562daf4803b38ee374dbe97aefeef6e2
bootwrapper: CPU hotplug aware boot protocol

To enable CPU hotplug the need to provide some boot code at the reset
vector and which survives after the kernel has booted without being
overwritten. We achieve this by the getting the linker script to place
the code in boot.S at address zero. This now means we can delete the
code that relocates the secondary CPU pen code to "a location less
likely to be overridden".

We then modify the boot protocol slightly to allow hot-plugging of any
CPU, including CPU #0, when the system is already booted. This is done
by checking if SYS_FLAGS is already set before the normal check for CPU0
and the boot-or-wait decision made.

This patch is based on work by Nicolas Pitre.

Signed-off-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Jon Medhurst <tixy@linaro.org>
Filename Latest Rev Last Changed Committer Comment Size
..
libfdt 31 11 years ago Peter Maydell bootwrapper: Import libfdt flattened device tree l Diff
.gitignore 22 12 years ago Christoffer Dall Makefile: Introduced super-simple config file Con 73 bytes Diff Download File
boot.S 48 11 years ago Jon Medhurst bootwrapper: CPU hotplug aware boot protocol To e 4.9 KB Diff Download File
c_start.c 33 11 years ago Peter Maydell bootwrapper: Switch to C semihosting code Switch 2.1 KB Diff Download File
config-default.mk 24 12 years ago Christoffer Dall config-default.mk: Explicitly pass -marm when we w 2.7 KB Diff Download File
LICENSE.txt 13 13 years ago Catalin Marinas Change the license to BSD (required by ARM's legal 1.4 KB Diff Download File
Makefile 42 11 years ago Peter Maydell bootwrapper: Drop now-obsolete SMC interface suppo 1.9 KB Diff Download File
model.lds.S 48 11 years ago Jon Medhurst bootwrapper: CPU hotplug aware boot protocol To e 1 KB Diff Download File
README.txt 34 11 years ago Peter Maydell bootwrapper: Add README Add a short README file d 2.8 KB Diff Download File
semi_loader.c 47 11 years ago Peter Maydell bootwrapper: Enable non-secure access to the CCI 16.1 KB Diff Download File
semi_loader.h 41 11 years ago Peter Maydell bootwrapper: Delay switch to Hyp mode until kernel 2.8 KB Diff Download File
semihosting.c 32 11 years ago Peter Maydell bootwrapper: Import C semihosting code Import the 2.7 KB Diff Download File
semihosting.h 32 11 years ago Peter Maydell bootwrapper: Import C semihosting code Import the 1.6 KB Diff Download File
string.c 32 11 years ago Peter Maydell bootwrapper: Import C semihosting code Import the 2 KB Diff Download File
string.h 38 11 years ago Peter Maydell bootwrapper: Use local definition of string.h The 577 bytes Diff Download File