Is CPUTYPE=cortex-A7 supposed to work?

Andrew Gierth andrew at tao11.riddles.org.uk
Fri Mar 10 16:10:55 UTC 2017


>>>>> "Warner" == Warner Losh <imp at bsdimp.com> writes:

 Warner> I've not had good luck getting it to work. (cortex-a7 is the
 Warner> proper type name, btw). It kinda works, but ports are kinda
 Warner> wonky.

 >> Well, I can now report that with a local fix for #217611 in place
 >> and everything recompiled for cortex-a7, I'm not seeing any
 >> wonkiness at all even with a lot of ports in use.

 Warner> Awesome. What's the local fix? Is it in FreeBSD yet?

No, it's not in FreeBSD yet; I attached it as a patch to the bugzilla
report:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217611
https://bugs.freebsd.org/bugzilla/attachment.cgi?id=180669&action=diff

My fix requires breaking the ABI, since the definition of mcontext_t
simply does not have enough space to store all the registers, so I'm
assuming it won't go into stable/11 (though that really needs _some_
kind of fix, since the bug can be demonstrated with ordinary
floating-point code and no compile options).

It needs attention from someone with more kernel/arm experience than I
have to see whether I've missed something obvious (or subtle). 

(Maybe I should have filed it under "kern" rather than "arm"?)

-- 
Andrew.


More information about the freebsd-arm mailing list