kernel: add new kernel build target
Used for testing the kernel on qemu, add an entry point that (for now)
assumes cortex-m and calls into a new kernel crate that starts an init
sequence.
Begin to fill in an architecture layer by creating a architecture
interface trait that currently one arch fills in (cortex-m).
Fill in all of the exception handlers in the arch, since we will want to
eventually override all of them anyway, and now we can see if one fires.
build and run the //build/kernel:kernel target
Change-Id: I2fc7841b33f6f78c68bdba28fd01524c6edeed91
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/maize/+/260070
Reviewed-by: Erik Gilling <konkers@google.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
Commit-Queue: Travis Geiselbrecht <travisg@google.com>
Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>
13 files changed