File tree Expand file tree Collapse file tree 11 files changed +11123
-5
lines changed Expand file tree Collapse file tree 11 files changed +11123
-5
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,9 @@ i686-linux-gnu-gcc main.c list.o -o main.exe $cflags
2323x86_64-linux-gnu-gcc -Iinclude -c list.c $cflags
2424x86_64-linux-gnu-gcc main.c list.o -o main.exe $cflags
2525./main.exe >> " $out "
26+ loongarch64-unknown-linux-gnu-gcc -Iinclude -c list.c $cflags
27+ loongarch64-unknown-linux-gnu-gcc main.c list.o -o main.exe $cflags
28+ ./main.exe >> " $out "
2629aarch64-linux-gnu-gcc -Iinclude -c list.c $cflags
2730aarch64-linux-gnu-gcc main.c list.o -o main.exe $cflags
2831qemu-aarch64 -L /usr/aarch64-linux-gnu ./main.exe >> " $out "
@@ -41,5 +44,4 @@ qemu-mipsel -L /usr/mipsel-linux-gnu ./main.exe >> "$out"
4144riscv64-linux-gnu-gcc -Iinclude -c list.c $cflags
4245riscv64-linux-gnu-gcc main.c list.o -o main.exe $cflags
4346qemu-riscv64 -L /usr/riscv64-linux-gnu ./main.exe >> " $out "
44-
4547rm list.o main.exe
Original file line number Diff line number Diff line change @@ -537,7 +537,6 @@ UDF_GETEASIZE
537537NVME_IOCTL_ADMIN64_CMD
538538VHOST_SET_OWNER
539539RIO_ALLOC_DMA
540- F2FS_IOC_ABORT_VOLATILE_WRITE
541540RIO_CM_CHAN_ACCEPT
542541I2OHRTGET
543542ATM_SETCIRANGE
@@ -1426,6 +1425,7 @@ HIDIOCGREPORTINFO
14261425WDIOC_GETBOOTSTATUS
14271426VDUSE_VQ_GET_INFO
14281427ACRN_IOCTL_ASSIGN_PCIDEV
1428+ BLKGETDISKSEQ
14291429ACRN_IOCTL_PM_GET_CPU_STATE
14301430ACRN_IOCTL_DESTROY_VM
14311431ACRN_IOCTL_SET_PTDEV_INTR
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ struct sockaddr {
9595#include <linux/joystick.h>
9696#include <linux/kd.h>
9797#include <linux/kcov.h>
98- #if !defined(__arm__ ) && !defined(__powerpc64__ ) && !defined(__riscv ) // various errors
98+ #if !defined(__arm__ ) && !defined(__loongarch64 ) && !defined( __powerpc64__ ) && !defined(__riscv ) // various errors
9999#include <linux/kvm.h>
100100#endif
101101#include <linux/lirc.h>
@@ -493,7 +493,7 @@ void list(void) {
493493 IOCTL_REQUEST (ENI_SETMULT );
494494 IOCTL_REQUEST (RIO_GET_EVENT_MASK );
495495 IOCTL_REQUEST (LIRC_GET_MAX_TIMEOUT );
496- #if !defined(__arm__ ) && !defined(__powerpc64__ ) && !defined(__riscv )
496+ #if !defined(__arm__ ) && !defined(__loongarch64 ) && !defined( __powerpc64__ ) && !defined(__riscv )
497497#if 0 // needs `struct kvm_cpuid2`
498498 IOCTL_REQUEST (KVM_GET_SUPPORTED_CPUID );
499499#endif
@@ -1037,7 +1037,9 @@ void list(void) {
10371037 IOCTL_REQUEST (NVME_IOCTL_ADMIN64_CMD );
10381038 IOCTL_REQUEST (VHOST_SET_OWNER );
10391039 IOCTL_REQUEST (RIO_ALLOC_DMA );
1040+ #if !defined(__loongarch64 )
10401041 IOCTL_REQUEST (F2FS_IOC_ABORT_VOLATILE_WRITE );
1042+ #endif
10411043 IOCTL_REQUEST (RIO_CM_CHAN_ACCEPT );
10421044 IOCTL_REQUEST (I2OHRTGET );
10431045 IOCTL_REQUEST (ATM_SETCIRANGE );
Original file line number Diff line number Diff line change @@ -41,6 +41,8 @@ int main(void) {
4141 printf ("#if __mips == 64\n" );
4242#elif defined(__riscv ) && __riscv_xlen == 64
4343 printf ("#if defined(__riscv) && __riscv_xlen == 64\n" );
44+ #elif defined(__loongarch64 )
45+ printf ("#ifdef __loongarch64\n" );
4446#else
4547#error "unimplemented architecture"
4648#endif
You can’t perform that action at this time.
0 commit comments