[klibc] [PATCH 0/1] Porting klibc to AArch64

Anil Singhar anil.singhar at linaro.org
Wed Oct 9 02:44:44 PDT 2013


Hi All:

We have some patches to port klibc to ArmV8.

The first set of patches from Neil Williams fixes the build issues.
The second set of patches from Anil Singhar fixes functionalities.

The following files have changed in the second set of patches
------------------------------------------------------------------------------------------
usr/include/arch/aarch64/klibc/archconfig.h
usr/include/arch/aarch64/klibc/archsetjmp.h
usr/include/arch/aarch64/klibc/archstat.h
usr/include/sys/stat.h
usr/include/unistd.h
usr/klibc/SYSCALLS.def
usr/klibc/arch/aarch64/Kbuild
usr/klibc/arch/aarch64/MCONFIG
usr/klibc/arch/aarch64/crt0.S
usr/klibc/arch/aarch64/link.c
usr/klibc/arch/aarch64/mknod.c
usr/klibc/arch/aarch64/select.c
usr/klibc/arch/aarch64/setjmp.S
usr/klibc/arch/aarch64/symlink.c
usr/klibc/arch/aarch64/syscall.S
usr/klibc/arch/aarch64/sysstub.ph
usr/klibc/arch/aarch64/vfork.S
usr/klibc/statfs.c
usr/klibc/tests/stat.c

The above changes broadly include the following:
1. start-up code in crt0.S
2. wrapper to system calls as generated from sysstub.ph and error handling
in syscall.S
3. corrections to some system call definitions such as symlinkat, mkdirat
etc.
4. corrections to some data structure definitions such as stat etc.
5. separate aarch64 specific definition for some syscalls such as fork,
vfork etc.
6. fixes to setjmp and longjmp functions

Manual testing as provided within the package has been done with all tests
passing. This includes the units tests available under usr/klibc/tests,
usr/utils, usr/dash and usr/gzip. For dash and gzip, only sanity testing
has been done.

Automatic testing has been done using mksh with the following results:
Total failed: 5 (4 ignored) (1 unexpected)
Total passed: 431

The code is available at:
git clone git://git.linaro.org/people/anil.singhar/klibc-aarch64.git

Comments are highly appreciated.

Thanks and Regards,
Anil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.zytor.com/pipermail/klibc/attachments/20131009/afb80f1b/attachment.html>


More information about the klibc mailing list