This is the mail archive of the
mailing list for the glibc project.
Re: [PATCH 11/12] RISC-V: Linux ABI
- From: Florian Weimer <fweimer at redhat dot com>
- To: Palmer Dabbelt <palmer at dabbelt dot com>
- Cc: libc-alpha at sourceware dot org, Andrew Waterman <andrew at sifive dot com>, patches at groups dot riscv dot org, Darius Rad <darius at bluespec dot com>
- Date: Wed, 21 Jun 2017 10:56:12 +0200
- Subject: Re: [PATCH 11/12] RISC-V: Linux ABI
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx02.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx02.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=fweimer at redhat dot com
- Dkim-filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 07DA78E773
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 07DA78E773
- References: <mhng-8e338698-a4e8-48db-957f-fbc364c65f16@palmer-si-x1c4>
On 06/20/2017 11:29 PM, Palmer Dabbelt wrote:
> On Wed, 14 Jun 2017 13:39:50 PDT (-0700), firstname.lastname@example.org wrote:
>> Palmer Dabbelt <email@example.com> writes:
>>> Linux-specific code that is required for maintaining ABI compatibility.
>>> This doesn't contain the actual system call interface, that is split out
>>> in order to avoid having a patch that's too big.
>> You likely need to override bits/sigstack.h in one of these patches
>> because the generic MINSIGSTKSZ and SIGSTKSZ values are likely too
>> small, especially if you want to add more or broader vector registers in
>> the future.
>> PTHREAD_STACK_MIN might warrant adjustment, too.
> We're going to pick the most common values, which I believe are
> MINSIGSTKSZ = 4KiB (alpha, powerpc, sparc, with aarch64 setting 5KiB)
You need to check what your architecture actually needs: the amount of
data pushed by the kernel, and it's also good to take into account the
save area used by the dynamic linker trampoline. Then maybe add a
couple of kilobytes so that there is room for some actually work
performed by the application signal handler.