This adds the kernel support to run Thumb-2 in userland. With this I can
boot a mostly thumb-2 userland to multiuser mode. There are still a few
segfaults on boot, but further investigation is needed to find if this
is a toolchain or kernel issue.
Details
Details
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Passed - Unit
No Test Coverage
Event Timeline
Comment Actions
So this is only for thumb2, which is only available on armv7?
I also don't see sanity checks to make sure that the libraries loaded are compatible, but that's an issue that's well beyond the scope of this one problem.
sys/arm/arm/undefined.c | ||
---|---|---|
247 | That doesn't seem to be the right #define for this. |
sys/arm/arm/undefined.c | ||
---|---|---|
247 | This code has only been moved and had it's indentation changed, the check was already there. |
Comment Actions
It would also work on ARMv6T2, however we don't support it.
I also don't see sanity checks to make sure that the libraries loaded are compatible, but that's an issue that's well beyond the scope of this one problem.
There are a number of userland changes needed, but a binary built targeting the correct architecture should just work.