From: Max Filippov <jcmvbkbc@gmail.com>
To: musl@lists.openwall.com
Cc: Rich Felker <dalias@libc.org>, Max Filippov <jcmvbkbc@gmail.com>
Subject: [musl] [RFC v3 0/1] xtensa FDPIC port
Date: Mon, 6 May 2024 11:01:11 -0700 [thread overview]
Message-ID: <20240506180112.1045944-1-jcmvbkbc@gmail.com> (raw)
Hello,
this is the third RFC version of the xtensa FDPIC port for musl.
It corresponds to the xtensa FDPIC ABI specification version 1
available here:
https://github.com/jcmvbkbc/xtensa-abi/blob/master/fdpic-xtensa.txt
The following binutils and gcc can be used to build the
xtensa-linux-muslfdpic toolchain:
https://github.com/jcmvbkbc/binutils-gdb-xtensa tag xtensa-fdpic-abi-spec-1.2
https://github.com/jcmvbkbc/gcc-xtensa tag xtensa-fdpic-abi-spec-1.2
I've tested this version with libc-test using QEMU linux-user and full
system emulation. The results in the linux-user are the following:
FAIL src/functional/pthread_mutex_pi-static.exe [status 1]
FAIL src/functional/pthread_mutex_pi.exe [status 1]
FAIL src/functional/pthread_robust-static.exe [timed out]
FAIL src/functional/pthread_robust.exe [timed out]
FAIL src/functional/strptime-static.exe [status 1]
FAIL src/functional/strptime.exe [status 1]
FAIL src/math/acoshl.exe [status 1]
FAIL src/math/asinhl.exe [status 1]
FAIL src/math/erfcl.exe [status 1]
FAIL src/math/fma.exe [status 1]
FAIL src/math/fmal.exe [status 1]
FAIL src/math/lgammal.exe [status 1]
FAIL src/math/tgammal.exe [status 1]
FAIL src/regression/pthread-robust-detach-static.exe [status 1]
FAIL src/regression/pthread-robust-detach.exe [status 1]
functional/ and regression/ pthread-related failures are expected
because PI mutexes and robust list functions are not available in
the linux-user mode. These particular tests pass in full system
emulation.
math tests fail with ULP differences.
Max Filippov (1):
xtensa: add port
arch/xtensa/arch.mak | 1 +
arch/xtensa/atomic_arch.h | 25 ++
arch/xtensa/bits/alltypes.h.in | 27 ++
arch/xtensa/bits/float.h | 16 +
arch/xtensa/bits/ioctl.h | 219 ++++++++++++++
arch/xtensa/bits/ipcstat.h | 1 +
arch/xtensa/bits/limits.h | 1 +
arch/xtensa/bits/mman.h | 20 ++
arch/xtensa/bits/msg.h | 27 ++
arch/xtensa/bits/poll.h | 3 +
arch/xtensa/bits/posix.h | 2 +
arch/xtensa/bits/reg.h | 2 +
arch/xtensa/bits/sem.h | 22 ++
arch/xtensa/bits/setjmp.h | 1 +
arch/xtensa/bits/shm.h | 29 ++
arch/xtensa/bits/signal.h | 92 ++++++
arch/xtensa/bits/stat.h | 23 ++
arch/xtensa/bits/stdint.h | 20 ++
arch/xtensa/bits/syscall.h.in | 407 ++++++++++++++++++++++++++
arch/xtensa/bits/user.h | 4 +
arch/xtensa/crt_arch.h | 47 +++
arch/xtensa/kstat.h | 18 ++
arch/xtensa/pthread_arch.h | 11 +
arch/xtensa/reloc.h | 32 ++
arch/xtensa/syscall_arch.h | 104 +++++++
configure | 8 +
crt/xtensa/crti.S | 23 ++
crt/xtensa/crtn.S | 15 +
include/elf.h | 74 +++++
src/internal/xtensa/syscall.s | 14 +
src/ldso/xtensa/dlsym.s | 7 +
src/ldso/xtensa/dlsym_time64.S | 3 +
src/ldso/xtensa/tlsdesc.s | 25 ++
src/process/xtensa/vfork.s | 15 +
src/setjmp/xtensa/longjmp.s | 18 ++
src/setjmp/xtensa/setjmp.s | 21 ++
src/signal/xtensa/restore.s | 10 +
src/signal/xtensa/sigsetjmp.s | 22 ++
src/thread/xtensa/__set_thread_area.c | 9 +
src/thread/xtensa/__unmapself.s | 9 +
src/thread/xtensa/clone.S | 42 +++
src/thread/xtensa/syscall_cp.s | 34 +++
42 files changed, 1503 insertions(+)
create mode 100644 arch/xtensa/arch.mak
create mode 100644 arch/xtensa/atomic_arch.h
create mode 100644 arch/xtensa/bits/alltypes.h.in
create mode 100644 arch/xtensa/bits/float.h
create mode 100644 arch/xtensa/bits/ioctl.h
create mode 100644 arch/xtensa/bits/ipcstat.h
create mode 100644 arch/xtensa/bits/limits.h
create mode 100644 arch/xtensa/bits/mman.h
create mode 100644 arch/xtensa/bits/msg.h
create mode 100644 arch/xtensa/bits/poll.h
create mode 100644 arch/xtensa/bits/posix.h
create mode 100644 arch/xtensa/bits/reg.h
create mode 100644 arch/xtensa/bits/sem.h
create mode 100644 arch/xtensa/bits/setjmp.h
create mode 100644 arch/xtensa/bits/shm.h
create mode 100644 arch/xtensa/bits/signal.h
create mode 100644 arch/xtensa/bits/stat.h
create mode 100644 arch/xtensa/bits/stdint.h
create mode 100644 arch/xtensa/bits/syscall.h.in
create mode 100644 arch/xtensa/bits/user.h
create mode 100644 arch/xtensa/crt_arch.h
create mode 100644 arch/xtensa/kstat.h
create mode 100644 arch/xtensa/pthread_arch.h
create mode 100644 arch/xtensa/reloc.h
create mode 100644 arch/xtensa/syscall_arch.h
create mode 100644 crt/xtensa/crti.S
create mode 100644 crt/xtensa/crtn.S
create mode 100644 src/internal/xtensa/syscall.s
create mode 100644 src/ldso/xtensa/dlsym.s
create mode 100644 src/ldso/xtensa/dlsym_time64.S
create mode 100644 src/ldso/xtensa/tlsdesc.s
create mode 100644 src/process/xtensa/vfork.s
create mode 100644 src/setjmp/xtensa/longjmp.s
create mode 100644 src/setjmp/xtensa/setjmp.s
create mode 100644 src/signal/xtensa/restore.s
create mode 100644 src/signal/xtensa/sigsetjmp.s
create mode 100644 src/thread/xtensa/__set_thread_area.c
create mode 100644 src/thread/xtensa/__unmapself.s
create mode 100644 src/thread/xtensa/clone.S
create mode 100644 src/thread/xtensa/syscall_cp.s
--
2.39.2
next reply other threads:[~2024-05-06 18:01 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-06 18:01 Max Filippov [this message]
2024-05-06 18:01 ` [musl] [RFC v3 1/1] xtensa: add port Max Filippov
2024-05-06 20:58 ` Rich Felker
2024-05-06 21:47 ` Max Filippov
2024-05-06 22:15 ` Rich Felker
2024-05-06 22:40 ` Max Filippov
2024-05-06 22:55 ` Rich Felker
2024-05-06 23:28 ` Max Filippov
2024-05-06 23:59 ` Rich Felker
2024-05-07 0:40 ` Max Filippov
2024-05-07 1:37 ` Rich Felker
2024-05-07 15:30 ` Max Filippov
2024-05-07 16:27 ` Rich Felker
2024-05-07 18:41 ` Max Filippov
2024-05-08 17:39 ` Max Filippov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240506180112.1045944-1-jcmvbkbc@gmail.com \
--to=jcmvbkbc@gmail.com \
--cc=dalias@libc.org \
--cc=musl@lists.openwall.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).