Skip to content

Commit 9551a26

Browse files
committed
Merge tag 'loongarch-6.19' of git://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
Pull LoongArch updates from Huacai Chen: - Add basic LoongArch32 support Note: Build infrastructures of LoongArch32 are not enabled yet, because we need to adjust irqchip drivers and wait for GNU toolchain be upstream first. - Select HAVE_ARCH_BITREVERSE in Kconfig - Fix build and boot for CONFIG_RANDSTRUCT - Correct the calculation logic of thread_count - Some bug fixes and other small changes * tag 'loongarch-6.19' of git://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson: (22 commits) LoongArch: Adjust default config files for 32BIT/64BIT LoongArch: Adjust VDSO/VSYSCALL for 32BIT/64BIT LoongArch: Adjust misc routines for 32BIT/64BIT LoongArch: Adjust user accessors for 32BIT/64BIT LoongArch: Adjust system call for 32BIT/64BIT LoongArch: Adjust module loader for 32BIT/64BIT LoongArch: Adjust time routines for 32BIT/64BIT LoongArch: Adjust process management for 32BIT/64BIT LoongArch: Adjust memory management for 32BIT/64BIT LoongArch: Adjust boot & setup for 32BIT/64BIT LoongArch: Adjust common macro definitions for 32BIT/64BIT LoongArch: Add adaptive CSR accessors for 32BIT/64BIT LoongArch: Add atomic operations for 32BIT/64BIT LoongArch: Add new PCI ID for pci_fixup_vgadev() LoongArch: Add and use some macros for AVEC LoongArch: Correct the calculation logic of thread_count LoongArch: Use unsigned long for _end and _text LoongArch: Use __pmd()/__pte() for swap entry conversions LoongArch: Fix arch_dup_task_struct() for CONFIG_RANDSTRUCT LoongArch: Fix build errors for CONFIG_RANDSTRUCT ...
2 parents 187d080 + be77cf4 commit 9551a26

77 files changed

Lines changed: 3001 additions & 771 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

arch/loongarch/Kconfig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ config LOONGARCH
115115
select GPIOLIB
116116
select HAS_IOPORT
117117
select HAVE_ARCH_AUDITSYSCALL
118+
select HAVE_ARCH_BITREVERSE
118119
select HAVE_ARCH_JUMP_LABEL
119120
select HAVE_ARCH_JUMP_LABEL_RELATIVE
120121
select HAVE_ARCH_KASAN
@@ -567,6 +568,10 @@ config ARCH_STRICT_ALIGN
567568
to run kernel only on systems with h/w unaligned access support in
568569
order to optimise for performance.
569570

571+
config CPU_HAS_AMO
572+
bool
573+
default 64BIT
574+
570575
config CPU_HAS_FPU
571576
bool
572577
default y

arch/loongarch/Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,12 @@
55

66
boot := arch/loongarch/boot
77

8-
KBUILD_DEFCONFIG := loongson3_defconfig
8+
ifeq ($(shell uname -m),loongarch32)
9+
KBUILD_DEFCONFIG := loongson32_defconfig
10+
else
11+
KBUILD_DEFCONFIG := loongson64_defconfig
12+
endif
13+
914
KBUILD_DTBS := dtbs
1015

1116
image-name-y := vmlinux

0 commit comments

Comments
 (0)