Page MenuHomeFreeBSD

Kernel support for Thumb-2
AbandonedPublic

Authored by andrew on Apr 25 2015, 4:25 PM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 20 2023, 2:13 AM
Unknown Object (File)
Apr 8 2023, 12:41 AM
Unknown Object (File)
Mar 21 2023, 8:39 PM
Unknown Object (File)
Dec 31 2016, 9:32 AM
Unknown Object (File)
Dec 25 2016, 3:15 AM
Unknown Object (File)
Sep 7 2016, 10:44 AM
Unknown Object (File)
Aug 28 2016, 5:07 PM
Unknown Object (File)
Jul 1 2016, 11:58 AM
Subscribers

Details

Reviewers
None
Group Reviewers
ARM
manpages
Summary

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.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage

Event Timeline

andrew retitled this revision from to Kernel support for Thumb-2.
andrew updated this object.
andrew edited the test plan for this revision. (Show Details)
andrew added a reviewer: ARM.

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.

In D2367#43160, @imp wrote:

So this is only for thumb2, which is only available on armv7?

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.

Was this committed in r282779? Could it be closed?