|
Message-ID: <CAK8P3a1HDjzX0Wra7o00F95npU+TKM7_1C81KNwvdxB8=xh3Zg@mail.gmail.com> Date: Fri, 7 May 2021 23:58:15 +0200 From: Arnd Bergmann <arnd@...nel.org> To: musl@...ts.openwall.com Cc: 陈国祺 <chenguoqi@...ngson.cn> Subject: Re: Port the new architecture loongarch64 to musl On Fri, May 7, 2021 at 11:01 AM 翟小娟 <zhaixiaojuan@...ngson.cn> wrote: > > Hi, > I ported a new architecture loongarch64 on the latest branch of musl master. It has been successfully compiled and run the official test libraries libc-testsuit and libc-test of musl. > The source code of the prot has been published in https://github.com/loongson-community/musl. Or check the attachment 0001-port-to-loongarch64.patch, it is the transplanted patch file. It's nice to see upstreaming work for loongarch64. I'm mainly interested in the kernel side of this, as I review any new ports of Linux to new architectures. Looking at the system call interfaces, I see that you used the generic ABI, so there is a good chance that this will not require incompatible changes, but a proper review of the kernel port will be necessary to be sure. I did notice that the system call list is a bit outdated and does not reflect the latest kernel, but that should be easy to change. There are a few system calls that are technically obsoleted by newer variants now, and we may decide to drop them for new architectures in favor of the newer variants, e.g. openat, faccessat, and io_getevents. The order I would generally recommend for upstreaming is: 1. toolchain (either gcc/binutils or clang) 2. kernel 3. libc 4. everything else If you do the order differently, there is a risk that ABI changes in one of the lower levels require changing the upper levels later on. Arnd
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.