[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 10/16] lib: General Linux RV64 syscall support.

From: Jan Nieuwenhuizen
Subject: Re: [PATCH 10/16] lib: General Linux RV64 syscall support.
Date: Wed, 05 May 2021 21:45:09 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)

W. J. van der Laan writes:

> On Tuesday, May 4th, 2021 at 1:31 PM, Danny Milosavljevic 
> <dannym@scratchpost.org> wrote:
>> > Same for the other syscalls I've replaced in this patch. Doing it in some 
>> > way is a necessity, unfortunately.
>> Which kernel version introduced openat() on architectures we want to use? 
>> (x86, x86_64, arm, risc-v)
> According to the manual page: "openat() was added to Linux in kernel
> 2.6.16". So I guess that is old enough. For other replaced syscalls
> the introduction may be much more recent though! (RISC-V is one of the
> newest architectures in the kernel, after all, so it provides a really
> recent snapshot.)

That seems really old enough for the moment.

> I think the decision what kernel to set as minimum depends on whether
> it is valuable to be able to bootstrap on really old kernels on
> i386. I have no insight into this.

Yes, that's an interesting perspective.  However, if we can add RISC-V
support without adding code duplication or extra parameterization, I
think that's a real benefit.  We can always add support for older
Linux kernels when the need arises.

I just chose the simple variants at the time because they were familiar
to me.


Jan Nieuwenhuizen <janneke@gnu.org> | GNU LilyPond http://lilypond.org
Freelance IT http://JoyofSource.com | AvatarĀ® http://AvatarAcademy.com

reply via email to

[Prev in Thread] Current Thread [Next in Thread]