littlekernel / lk

LK embedded kernel
MIT License
3.11k stars 613 forks source link

[feature] refresh optimized ARM string routines #275

Open travisg opened 3 years ago

travisg commented 3 years ago

Pull new copies of the optimized arm routines from https://github.com/ARM-software/optimized-routines

torralbaalla commented 3 years ago

Hello! I would like to work on this, but I'm not sure if the updated versions should use the VFP and/or NEON, or not. Maybe using these features could be platform-dependent?

travisg commented 3 years ago

Oh sure, that'd be lovely. I'd start with the non neon ones yes. For better or worse, most of the LK code runs in supervisor mode and some deep kernel code may call into the same routines and wouldn't be capable of using fpu/neon. So, in general most of the core library routines cant touch the fpu.

travisg commented 3 years ago

As a note, since they're coming from an external source, put the routines in the external/ top level directory and then have the lib/libc/string/... make logic just reach over and build the stuff out of there. That makes it easier to independently track the external repository, for future updates.