On 32-bit, it need to use __ucmpdi2, otherwise, it can't find the __ucmpdi2
symbol.
Signed-off-by: Zong Li
---
arch/riscv/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
index 6debcc4afc72..3e683be9b7a8 100644
--- a/arch/riscv/Kconfig
+++ b
On 32-bit, it need to use __ucmpdi2, otherwise, it can't find the __ucmpdi2
symbol.
Signed-off-by: Zong Li
---
arch/riscv/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
index 6debcc4afc72..3e683be9b7a8 100644
--- a/arch/riscv/Kconfig
+++ b
Use generic marco to get the index and type of symbol.
Signed-off-by: Zong Li
---
arch/riscv/include/uapi/asm/elf.h | 9 +++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/arch/riscv/include/uapi/asm/elf.h
b/arch/riscv/include/uapi/asm/elf.h
index 5cae4c30cd8e
Use fixed width integer types for print format on 32/64 bit
to fix warning about format compatible.
Like inttypes.h, but more simpler for RISC-V usage.
Signed-off-by: Zong Li
---
arch/riscv/include/asm/format.h | 20
arch/riscv/kernel/module.c | 13 +++--
2
Use generic marco to get the index and type of symbol.
Signed-off-by: Zong Li
---
arch/riscv/include/uapi/asm/elf.h | 9 +++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/arch/riscv/include/uapi/asm/elf.h
b/arch/riscv/include/uapi/asm/elf.h
index 5cae4c30cd8e
Use fixed width integer types for print format on 32/64 bit
to fix warning about format compatible.
Like inttypes.h, but more simpler for RISC-V usage.
Signed-off-by: Zong Li
---
arch/riscv/include/asm/format.h | 20
arch/riscv/kernel/module.c | 13 +++--
2
Signed-off-by: Zong Li
---
arch/riscv/kernel/module.c | 22 +++---
1 file changed, 11 insertions(+), 11 deletions(-)
diff --git a/arch/riscv/kernel/module.c b/arch/riscv/kernel/module.c
index 29d265d0cf45..c88d2ee918a5 100644
--- a/arch/riscv/kernel/module.c
+++ b/arch/riscv
Signed-off-by: Zong Li
---
arch/riscv/kernel/module.c | 22 +++---
1 file changed, 11 insertions(+), 11 deletions(-)
diff --git a/arch/riscv/kernel/module.c b/arch/riscv/kernel/module.c
index 29d265d0cf45..c88d2ee918a5 100644
--- a/arch/riscv/kernel/module.c
+++ b/arch/riscv
The DMA32 is for 64-bit usage.
Signed-off-by: Zong Li
---
arch/riscv/mm/init.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/riscv/mm/init.c b/arch/riscv/mm/init.c
index c77df8142be2..91a5852e28fd 100644
--- a/arch/riscv/mm/init.c
+++ b/arch/riscv/mm/init.c
@@ -28,8 +28,11
The stvec's value must be 4 byte alignment by specification definition.
This directive avoids to stvec be set the non-alignment value by the
following code in head.S
/* Point stvec to virtual address of intruction after satp write */
la a0, 1f
add a0, a0, a1
csrw stvec, a0
Signed-off-by: Zong
The DMA32 is for 64-bit usage.
Signed-off-by: Zong Li
---
arch/riscv/mm/init.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/riscv/mm/init.c b/arch/riscv/mm/init.c
index c77df8142be2..91a5852e28fd 100644
--- a/arch/riscv/mm/init.c
+++ b/arch/riscv/mm/init.c
@@ -28,8 +28,11
The stvec's value must be 4 byte alignment by specification definition.
This directive avoids to stvec be set the non-alignment value by the
following code in head.S
/* Point stvec to virtual address of intruction after satp write */
la a0, 1f
add a0, a0, a1
csrw stvec, a0
Signed-off-by: Zong
Fix link error when disable support SMP.
It causes the undefined reference to `smp_callin'.
Signed-off-by: Zong Li
---
arch/riscv/kernel/head.S | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/riscv/kernel/head.S b/arch/riscv/kernel/head.S
index 3b6293f10e3e..396ec7b349ce 100644
These patches are for building 32-bit RISC-V kernel.
- Fix the compile errors and warnings on RV32I.
- Fix some incompatible problem on RV32I.
- Add format.h for compatible of print format.
Zong Li (5):
RISC-V: Add conditional macro for zone of DMA32
RISC-V: Select GENERIC_UCMPDI2
Fix link error when disable support SMP.
It causes the undefined reference to `smp_callin'.
Signed-off-by: Zong Li
---
arch/riscv/kernel/head.S | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/riscv/kernel/head.S b/arch/riscv/kernel/head.S
index 3b6293f10e3e..396ec7b349ce 100644
These patches are for building 32-bit RISC-V kernel.
- Fix the compile errors and warnings on RV32I.
- Fix some incompatible problem on RV32I.
- Add format.h for compatible of print format.
Zong Li (5):
RISC-V: Add conditional macro for zone of DMA32
RISC-V: Select GENERIC_UCMPDI2
Fix link error when disable support SMP.
It causes the undefined reference to `smp_callin'.
Signed-off-by: Zong Li
---
arch/riscv/kernel/head.S | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/riscv/kernel/head.S b/arch/riscv/kernel/head.S
index 3b6293f10e3e..396ec7b349ce 100644
Fix link error when disable support SMP.
It causes the undefined reference to `smp_callin'.
Signed-off-by: Zong Li
---
arch/riscv/kernel/head.S | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/riscv/kernel/head.S b/arch/riscv/kernel/head.S
index 3b6293f10e3e..396ec7b349ce 100644
eys 19606 0 - Live 0xffd003717000
>>> test_static_key_base 7374 1 test_static_keys, Live 0xffd0036dc000
>>> test_printf 7804 0 [permanent], Live 0xffd00369c000
>>> test_module 1557 0 - Live 0xffd003646000
>>> test_kmod 49100 0 - Live 0xffd00
test_static_key_base 7374 1 test_static_keys, Live 0xffd0036dc000
>>> test_printf 7804 0 [permanent], Live 0xffd00369c000
>>> test_module 1557 0 - Live 0xffd003646000
>>> test_kmod 49100 0 - Live 0xffd0035f2000
>>> test_bpf 1599301 0 - Live 0x
>> test_kmod 49100 0 - Live 0xffd0035f2000
>> test_bpf 1599301 0 - Live 0xffd00300
>> test_bitmap 4403 0 - Live 0xffd002dd8000
>> reed_solomon 38866 1 ramoops, Live 0xffd002d86000
>> raid6_pq 161872 1 btrfs, Live 0xffd002b9e000
>> netdevsim 654
0 - Live 0xffd0035f2000
>> test_bpf 1599301 0 - Live 0xffd00300
>> test_bitmap 4403 0 - Live 0xffd002dd8000
>> reed_solomon 38866 1 ramoops, Live 0xffd002d86000
>> raid6_pq 161872 1 btrfs, Live 0xffd002b9e000
>> netdevsim 65401 0 - Live 0xffd0
2018-03-15 16:50 GMT+08:00 Zong Li <z...@andestech.com>:
> These patches resolve the some issues of loadable module.
> - symbol out of ranges
> - unknown relocation types
>
> The reference of external variable and function symbols
> cannot exceed 32-bit offset
2018-03-15 16:50 GMT+08:00 Zong Li :
> These patches resolve the some issues of loadable module.
> - symbol out of ranges
> - unknown relocation types
>
> The reference of external variable and function symbols
> cannot exceed 32-bit offset ranges in kernel module.
> The
tree, please drop us a note to
> help improve the system]
>
> url:
> https://github.com/0day-ci/linux/commits/Zong-Li/RISC-V-Resolve-the-issue-of-loadable-module-on-64-bit/20180314-203750
> config: riscv-defconfig (attached as .config)
> compiler: riscv64-linux-gcc (GC
us a note to
> help improve the system]
>
> url:
> https://github.com/0day-ci/linux/commits/Zong-Li/RISC-V-Resolve-the-issue-of-loadable-module-on-64-bit/20180314-203750
> config: riscv-defconfig (attached as .config)
> compiler: riscv64-linux-gcc (GCC) 7.2
. The GOT entry is just the data symbol address.
Signed-off-by: Zong Li <z...@andestech.com>
---
arch/riscv/Kconfig | 5 ++
arch/riscv/Makefile | 5 ++
arch/riscv/include/asm/module.h | 103 ++
arch/riscv/kernel/Makefile
. The GOT entry is just the data symbol address.
Signed-off-by: Zong Li
---
arch/riscv/Kconfig | 5 ++
arch/riscv/Makefile | 5 ++
arch/riscv/include/asm/module.h | 103 ++
arch/riscv/kernel/Makefile | 1 +
arch/riscv/kernel
65401 0 - Live 0xffd00291
Signed-off-by: Zong Li <z...@andestech.com>
---
Change in v2:
- Add compile option 'mno-relax' for build kernel module
- Just fail on ALIGN type, this is unexpected type with mno-relax.
Zong Li (11):
RISC-V: Add sections of PLT and GOT for kernel module
65401 0 - Live 0xffd00291
Signed-off-by: Zong Li
---
Change in v2:
- Add compile option 'mno-relax' for build kernel module
- Just fail on ALIGN type, this is unexpected type with mno-relax.
Zong Li (11):
RISC-V: Add sections of PLT and GOT for kernel module
RISC-V: Add section
HI20 and LO12_I/LO12_S relocate the absolute address, the range of
offset must in 32-bit.
Signed-off-by: Zong Li <z...@andestech.com>
---
arch/riscv/kernel/module.c | 42 ++
1 file changed, 42 insertions(+)
diff --git a/arch/riscv/kernel/module.c
HI20 and LO12_I/LO12_S relocate the absolute address, the range of
offset must in 32-bit.
Signed-off-by: Zong Li
---
arch/riscv/kernel/module.c | 42 ++
1 file changed, 42 insertions(+)
diff --git a/arch/riscv/kernel/module.c b/arch/riscv/kernel/module.c
*ABS*
Signed-off-by: Zong Li <z...@andestech.com>
---
arch/riscv/kernel/module.c | 62 ++
1 file changed, 52 insertions(+), 10 deletions(-)
diff --git a/arch/riscv/kernel/module.c b/arch/riscv/kernel/module.c
index e0f05034fc21..be717b
*ABS*
Signed-off-by: Zong Li
---
arch/riscv/kernel/module.c | 62 ++
1 file changed, 52 insertions(+), 10 deletions(-)
diff --git a/arch/riscv/kernel/module.c b/arch/riscv/kernel/module.c
index e0f05034fc21..be717bd7cea7 100644
--- a/arch/riscv
Just fail on align type. Kernel modules loader didn't do relax
like linker, it is difficult to remove or migrate the code,
but the remnant nop instructions harm the performaace of module.
We expect the building module with the no-relax option.
Signed-off-by: Zong Li <z...@andestech.com>
---
Just fail on align type. Kernel modules loader didn't do relax
like linker, it is difficult to remove or migrate the code,
but the remnant nop instructions harm the performaace of module.
We expect the building module with the no-relax option.
Signed-off-by: Zong Li
---
arch/riscv/kernel
Signed-off-by: Zong Li <z...@andestech.com>
---
arch/riscv/kernel/module.c | 8
1 file changed, 8 insertions(+)
diff --git a/arch/riscv/kernel/module.c b/arch/riscv/kernel/module.c
index 957933e669b1..73ea36c73d3b 100644
--- a/arch/riscv/kernel/module.c
+++ b/arch/riscv/kernel/mo
Signed-off-by: Zong Li
---
arch/riscv/kernel/module.c | 8
1 file changed, 8 insertions(+)
diff --git a/arch/riscv/kernel/module.c b/arch/riscv/kernel/module.c
index 957933e669b1..73ea36c73d3b 100644
--- a/arch/riscv/kernel/module.c
+++ b/arch/riscv/kernel/module.c
@@ -249,6 +249,13
Signed-off-by: Zong Li <z...@andestech.com>
---
arch/riscv/include/uapi/asm/elf.h | 7 +++
1 file changed, 7 insertions(+)
diff --git a/arch/riscv/include/uapi/asm/elf.h
b/arch/riscv/include/uapi/asm/elf.h
index a510edfa8226..5cae4c30cd8e 100644
--- a/arch/riscv/include/uapi/asm/elf.h
Signed-off-by: Zong Li <z...@andestech.com>
---
arch/riscv/kernel/module.c | 8
1 file changed, 8 insertions(+)
diff --git a/arch/riscv/kernel/module.c b/arch/riscv/kernel/module.c
index 73ea36c73d3b..5dddba301d0a 100644
--- a/arch/riscv/kernel/module.c
+++ b/arch/riscv/kernel/mo
Signed-off-by: Zong Li
---
arch/riscv/include/uapi/asm/elf.h | 7 +++
1 file changed, 7 insertions(+)
diff --git a/arch/riscv/include/uapi/asm/elf.h
b/arch/riscv/include/uapi/asm/elf.h
index a510edfa8226..5cae4c30cd8e 100644
--- a/arch/riscv/include/uapi/asm/elf.h
+++ b/arch/riscv/include
Signed-off-by: Zong Li
---
arch/riscv/kernel/module.c | 8
1 file changed, 8 insertions(+)
diff --git a/arch/riscv/kernel/module.c b/arch/riscv/kernel/module.c
index 73ea36c73d3b..5dddba301d0a 100644
--- a/arch/riscv/kernel/module.c
+++ b/arch/riscv/kernel/module.c
@@ -256,6 +256,13
Signed-off-by: Zong Li <z...@andestech.com>
---
arch/riscv/configs/defconfig | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/riscv/configs/defconfig b/arch/riscv/configs/defconfig
index 92ff23586c11..07326466871b 100644
--- a/arch/riscv/configs/defconfig
+++ b/arch/riscv/c
Signed-off-by: Zong Li
---
arch/riscv/configs/defconfig | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/riscv/configs/defconfig b/arch/riscv/configs/defconfig
index 92ff23586c11..07326466871b 100644
--- a/arch/riscv/configs/defconfig
+++ b/arch/riscv/configs/defconfig
@@ -74,3 +74,5
Signed-off-by: Zong Li <z...@andestech.com>
---
arch/riscv/kernel/module.c | 35 +++
1 file changed, 35 insertions(+)
diff --git a/arch/riscv/kernel/module.c b/arch/riscv/kernel/module.c
index f1bd6b1a4520..7ab6a9b72384 100644
--- a/arch/riscv/kernel/mo
Signed-off-by: Zong Li
---
arch/riscv/kernel/module.c | 35 +++
1 file changed, 35 insertions(+)
diff --git a/arch/riscv/kernel/module.c b/arch/riscv/kernel/module.c
index f1bd6b1a4520..7ab6a9b72384 100644
--- a/arch/riscv/kernel/module.c
+++ b/arch/riscv/kernel
Signed-off-by: Zong Li <z...@andestech.com>
---
arch/riscv/kernel/module.c | 22 ++
1 file changed, 22 insertions(+)
diff --git a/arch/riscv/kernel/module.c b/arch/riscv/kernel/module.c
index be717bd7cea7..3f2730840c25 100644
--- a/arch/riscv/kernel/module.c
+++ b/arch
Signed-off-by: Zong Li
---
arch/riscv/kernel/module.c | 22 ++
1 file changed, 22 insertions(+)
diff --git a/arch/riscv/kernel/module.c b/arch/riscv/kernel/module.c
index be717bd7cea7..3f2730840c25 100644
--- a/arch/riscv/kernel/module.c
+++ b/arch/riscv/kernel/module.c
Separate the function symbol address from .plt to .got.plt section.
The original plt entry has trampoline code with symbol address,
there is a 32-bit padding bwtween jar instruction and symbol address.
Extract the symbol address to .got.plt to reduce the module size.
Signed-off-by: Zong Li &l
Separate the function symbol address from .plt to .got.plt section.
The original plt entry has trampoline code with symbol address,
there is a 32-bit padding bwtween jar instruction and symbol address.
Extract the symbol address to .got.plt to reduce the module size.
Signed-off-by: Zong Li
2018-03-14 19:56 GMT+08:00 Shea Levy <s...@shealevy.com>:
> Zong Li <zong...@gmail.com> writes:
>
>> 2018-03-14 11:07 GMT+08:00 Palmer Dabbelt <pal...@sifive.com>:
>>> On Tue, 13 Mar 2018 18:34:19 PDT (-0700), zong...@gmail.com wrote:
>>&
2018-03-14 19:56 GMT+08:00 Shea Levy :
> Zong Li writes:
>
>> 2018-03-14 11:07 GMT+08:00 Palmer Dabbelt :
>>> On Tue, 13 Mar 2018 18:34:19 PDT (-0700), zong...@gmail.com wrote:
>>>>
>>>> 2018-03-14 5:30 GMT+08:00 Shea Levy :
>>>
sections depend on the relocation types:
>>>>> - R_RISCV_GOT_HI20
>>>>> - R_RISCV_CALL_PLT
>>>>>
>>>>> These patches also support more relocation types
>>>>> - R_RISCV_CALL
>>>>> - R_RISCV_HI20
- R_RISCV_GOT_HI20
>>>>> - R_RISCV_CALL_PLT
>>>>>
>>>>> These patches also support more relocation types
>>>>> - R_RISCV_CALL
>>>>> - R_RISCV_HI20
>>>>> - R_RISCV_LO12_I
>>>>> - R_RISCV_LO12_S
&g
the relocation types:
>>> - R_RISCV_GOT_HI20
>>> - R_RISCV_CALL_PLT
>>>
>>> These patches also support more relocation types
>>> - R_RISCV_CALL
>>> - R_RISCV_HI20
>>> - R_RISCV_LO12_I
>>> - R_RISCV_LO12_S
>>> - R_RISCV_RVC_BR
0
>>> - R_RISCV_CALL_PLT
>>>
>>> These patches also support more relocation types
>>> - R_RISCV_CALL
>>> - R_RISCV_HI20
>>> - R_RISCV_LO12_I
>>> - R_RISCV_LO12_S
>>> - R_RISCV_RVC_BRANCH
>>> - R_RISCV_RVC_JUMP
>>>
2018-03-13 16:35 GMT+08:00 Zong Li <z...@andestech.com>:
>
> These patches resolve the some issues of loadable module.
> - symbol out of ranges
> - unknown relocation types
>
> The reference of external variable and function symbols
> cannot exceed 32-bit off
2018-03-13 16:35 GMT+08:00 Zong Li :
>
> These patches resolve the some issues of loadable module.
> - symbol out of ranges
> - unknown relocation types
>
> The reference of external variable and function symbols
> cannot exceed 32-bit offset ranges in kernel module.
>
relocation types
- R_RISCV_CALL
- R_RISCV_HI20
- R_RISCV_LO12_I
- R_RISCV_LO12_S
- R_RISCV_RVC_BRANCH
- R_RISCV_RVC_JUMP
- R_RISCV_ALIGN
- R_RISCV_ADD32
- R_RISCV_SUB32
Zong Li (11):
RISC-V: Add sections of PLT and GOT for kernel module
RISC-V: Add section of GOT.PLT for kernel module
RISC-V
relocation types
- R_RISCV_CALL
- R_RISCV_HI20
- R_RISCV_LO12_I
- R_RISCV_LO12_S
- R_RISCV_RVC_BRANCH
- R_RISCV_RVC_JUMP
- R_RISCV_ALIGN
- R_RISCV_ADD32
- R_RISCV_SUB32
Zong Li (11):
RISC-V: Add sections of PLT and GOT for kernel module
RISC-V: Add section of GOT.PLT for kernel module
RISC-V
Signed-off-by: Zong Li <z...@andestech.com>
---
arch/riscv/kernel/module.c | 22 ++
1 file changed, 22 insertions(+)
diff --git a/arch/riscv/kernel/module.c b/arch/riscv/kernel/module.c
index 242d3a14c210..7e85e5840b4d 100644
--- a/arch/riscv/kernel/module.c
+++ b/arch
Signed-off-by: Zong Li
---
arch/riscv/kernel/module.c | 22 ++
1 file changed, 22 insertions(+)
diff --git a/arch/riscv/kernel/module.c b/arch/riscv/kernel/module.c
index 242d3a14c210..7e85e5840b4d 100644
--- a/arch/riscv/kernel/module.c
+++ b/arch/riscv/kernel/module.c
Separate the function symbol address from .plt to .got.plt section.
The original plt entry has trampoline code with symbol address,
there is a 32-bit padding bwtween jar instruction and symbol address.
Extract the symbol address to .got.plt to reduce the module size.
Signed-off-by: Zong Li &l
Separate the function symbol address from .plt to .got.plt section.
The original plt entry has trampoline code with symbol address,
there is a 32-bit padding bwtween jar instruction and symbol address.
Extract the symbol address to .got.plt to reduce the module size.
Signed-off-by: Zong Li
*ABS*
Signed-off-by: Zong Li <z...@andestech.com>
---
arch/riscv/kernel/module.c | 61 ++
1 file changed, 51 insertions(+), 10 deletions(-)
diff --git a/arch/riscv/kernel/module.c b/arch/riscv/kernel/module.c
index e0f05034fc21..242d3a
Signed-off-by: Zong Li <z...@andestech.com>
---
arch/riscv/kernel/module.c | 35 +++
1 file changed, 35 insertions(+)
diff --git a/arch/riscv/kernel/module.c b/arch/riscv/kernel/module.c
index 654fe7dcd38d..e23c051dfc62 100644
--- a/arch/riscv/kernel/mo
*ABS*
Signed-off-by: Zong Li
---
arch/riscv/kernel/module.c | 61 ++
1 file changed, 51 insertions(+), 10 deletions(-)
diff --git a/arch/riscv/kernel/module.c b/arch/riscv/kernel/module.c
index e0f05034fc21..242d3a14c210 100644
--- a/arch/riscv
Signed-off-by: Zong Li
---
arch/riscv/kernel/module.c | 35 +++
1 file changed, 35 insertions(+)
diff --git a/arch/riscv/kernel/module.c b/arch/riscv/kernel/module.c
index 654fe7dcd38d..e23c051dfc62 100644
--- a/arch/riscv/kernel/module.c
+++ b/arch/riscv/kernel
Just ignore align type. The nop instructions cannot be removed in
kernel module. Kernel modules is not doing relax.
Signed-off-by: Zong Li <z...@andestech.com>
---
arch/riscv/kernel/module.c | 7 +++
1 file changed, 7 insertions(+)
diff --git a/arch/riscv/kernel/module.c b/arch/riscv/
HI20 and LO12_I/LO12_S relocate the absolute address, the range of
offset must in 32-bit.
Signed-off-by: Zong Li <z...@andestech.com>
---
arch/riscv/kernel/module.c | 42 ++
1 file changed, 42 insertions(+)
diff --git a/arch/riscv/kernel/module.c
Just ignore align type. The nop instructions cannot be removed in
kernel module. Kernel modules is not doing relax.
Signed-off-by: Zong Li
---
arch/riscv/kernel/module.c | 7 +++
1 file changed, 7 insertions(+)
diff --git a/arch/riscv/kernel/module.c b/arch/riscv/kernel/module.c
index
HI20 and LO12_I/LO12_S relocate the absolute address, the range of
offset must in 32-bit.
Signed-off-by: Zong Li
---
arch/riscv/kernel/module.c | 42 ++
1 file changed, 42 insertions(+)
diff --git a/arch/riscv/kernel/module.c b/arch/riscv/kernel/module.c
Signed-off-by: Zong Li <z...@andestech.com>
---
arch/riscv/configs/defconfig | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/riscv/configs/defconfig b/arch/riscv/configs/defconfig
index 92ff23586c11..07326466871b 100644
--- a/arch/riscv/configs/defconfig
+++ b/arch/riscv/c
Signed-off-by: Zong Li
---
arch/riscv/configs/defconfig | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/riscv/configs/defconfig b/arch/riscv/configs/defconfig
index 92ff23586c11..07326466871b 100644
--- a/arch/riscv/configs/defconfig
+++ b/arch/riscv/configs/defconfig
@@ -74,3 +74,5
Signed-off-by: Zong Li <z...@andestech.com>
---
arch/riscv/kernel/module.c | 8
1 file changed, 8 insertions(+)
diff --git a/arch/riscv/kernel/module.c b/arch/riscv/kernel/module.c
index 2d14dff22861..4228270efe93 100644
--- a/arch/riscv/kernel/module.c
+++ b/arch/riscv/kernel/mo
Signed-off-by: Zong Li
---
arch/riscv/kernel/module.c | 8
1 file changed, 8 insertions(+)
diff --git a/arch/riscv/kernel/module.c b/arch/riscv/kernel/module.c
index 2d14dff22861..4228270efe93 100644
--- a/arch/riscv/kernel/module.c
+++ b/arch/riscv/kernel/module.c
@@ -253,6 +253,13
Signed-off-by: Zong Li <z...@andestech.com>
---
arch/riscv/kernel/module.c | 8
1 file changed, 8 insertions(+)
diff --git a/arch/riscv/kernel/module.c b/arch/riscv/kernel/module.c
index 351bf2a518ee..2d14dff22861 100644
--- a/arch/riscv/kernel/module.c
+++ b/arch/riscv/kernel/mo
Signed-off-by: Zong Li
---
arch/riscv/kernel/module.c | 8
1 file changed, 8 insertions(+)
diff --git a/arch/riscv/kernel/module.c b/arch/riscv/kernel/module.c
index 351bf2a518ee..2d14dff22861 100644
--- a/arch/riscv/kernel/module.c
+++ b/arch/riscv/kernel/module.c
@@ -246,6 +246,13
. The GOT entry is just the data symbol address.
Signed-off-by: Zong Li <z...@andestech.com>
---
arch/riscv/Kconfig | 5 ++
arch/riscv/Makefile | 3 +
arch/riscv/include/asm/module.h | 102 ++
arch/riscv/kernel/Makefile
. The GOT entry is just the data symbol address.
Signed-off-by: Zong Li
---
arch/riscv/Kconfig | 5 ++
arch/riscv/Makefile | 3 +
arch/riscv/include/asm/module.h | 102 ++
arch/riscv/kernel/Makefile | 1 +
arch/riscv/kernel
Signed-off-by: Zong Li <z...@andestech.com>
---
arch/riscv/include/uapi/asm/elf.h | 24
1 file changed, 24 insertions(+)
diff --git a/arch/riscv/include/uapi/asm/elf.h
b/arch/riscv/include/uapi/asm/elf.h
index a510edfa8226..5111c7c35e8b 100644
--- a/arch/riscv/i
Signed-off-by: Zong Li
---
arch/riscv/include/uapi/asm/elf.h | 24
1 file changed, 24 insertions(+)
diff --git a/arch/riscv/include/uapi/asm/elf.h
b/arch/riscv/include/uapi/asm/elf.h
index a510edfa8226..5111c7c35e8b 100644
--- a/arch/riscv/include/uapi/asm/elf.h
+++ b
2018-02-28 6:32 GMT+08:00 Anders Roxell <anders.rox...@linaro.org>:
>
> On 23 February 2018 at 08:05, Zong Li <zong...@gmail.com> wrote:
> > 2018-02-23 3:57 GMT+08:00 Anders Roxell <anders.rox...@linaro.org>:
> >> On 22 February 2018 at 12:53, Zong Li
2018-02-28 6:32 GMT+08:00 Anders Roxell :
>
> On 23 February 2018 at 08:05, Zong Li wrote:
> > 2018-02-23 3:57 GMT+08:00 Anders Roxell :
> >> On 22 February 2018 at 12:53, Zong Li wrote:
> >>> Since the 'commit d3deafaa8b5c ("lib/: make RUNTIME_TESTS a men
2018-02-23 3:57 GMT+08:00 Anders Roxell <anders.rox...@linaro.org>:
> On 22 February 2018 at 12:53, Zong Li <zong...@gmail.com> wrote:
>> Since the 'commit d3deafaa8b5c ("lib/: make RUNTIME_TESTS a menuconfig
>> to ease disabling it all")', the make kself
2018-02-23 3:57 GMT+08:00 Anders Roxell :
> On 22 February 2018 at 12:53, Zong Li wrote:
>> Since the 'commit d3deafaa8b5c ("lib/: make RUNTIME_TESTS a menuconfig
>> to ease disabling it all")', the make kselftest-merge cannot merge the
>> config dependencies of ks
underline as prefix to avoid confilct with
built-in command of shell.
(e.g. The exec is built-in command of shell)
The hyhpen of function name be replace to the underline because
not all shells can use hyphen in function name, like sh, ash and so on.
Signed-off-by: Zong Li <z...@andestech.com&
underline as prefix to avoid confilct with
built-in command of shell.
(e.g. The exec is built-in command of shell)
The hyhpen of function name be replace to the underline because
not all shells can use hyphen in function name, like sh, ash and so on.
Signed-off-by: Zong Li
Cc: Greentime Hu
Cc: Shuah
ING_MENU=y' at the same time.
Signed-off-by: Zong Li <z...@andestech.com>
Cc: Greentime Hu <greent...@andestech.com>
---
tools/testing/selftests/bpf/config | 1 +
tools/testing/selftests/firmware/config| 1 +
tools/testing/selftests/kmod/config| 1 +
tools/testin
ING_MENU=y' at the same time.
Signed-off-by: Zong Li
Cc: Greentime Hu
---
tools/testing/selftests/bpf/config | 1 +
tools/testing/selftests/firmware/config| 1 +
tools/testing/selftests/kmod/config| 1 +
tools/testing/selftests/lib/config | 1 +
tools/testing/selftests/
012441f6>] _do_fork+0x1b4/0x1e0
[<f46c3e3b>] ret_from_syscall+0xa/0xe
Signed-off-by: Zong Li <z...@andestech.com>
---
arch/riscv/kernel/entry.S | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/arch/riscv/kernel/entry.S b/arch/riscv/kernel/entry.
012441f6>] _do_fork+0x1b4/0x1e0
[<f46c3e3b>] ret_from_syscall+0xa/0xe
Signed-off-by: Zong Li
---
arch/riscv/kernel/entry.S | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/arch/riscv/kernel/entry.S b/arch/riscv/kernel/entry.S
index 7404ec2..61f063e 10
has underline as prefix to avoid confilct with
built-in command of shell.
(e.g. The exec is built-in command of shell)
Replace the hyphen with underline for cpu-hotplug and memory-hotplug.
Not all shell can use hyphen in function name, like sh, ash and so on.
Signed-off-by: Zong Li &l
has underline as prefix to avoid confilct with
built-in command of shell.
(e.g. The exec is built-in command of shell)
Replace the hyphen with underline for cpu-hotplug and memory-hotplug.
Not all shell can use hyphen in function name, like sh, ash and so on.
Signed-off-by: Zong Li
---
tools
-in command of shell.
(e.g. The exec is built-in command of shell)
Replace the hyphen with underline for cpu-hotplug and memory-hotplug.
Not all shell can use hyphen in function name, like sh, ash and so on.
Signed-off-by: Zong Li <z...@andestech.com>
---
tools/testing/selftests/Ma
-in command of shell.
(e.g. The exec is built-in command of shell)
Replace the hyphen with underline for cpu-hotplug and memory-hotplug.
Not all shell can use hyphen in function name, like sh, ash and so on.
Signed-off-by: Zong Li
---
tools/testing/selftests/Makefile| 17
Build the dtb into the kernel image.
If the DTB is given via bootloader, the external DTB is adopted first.
Signed-off-by: Zong Li <zong...@gmail.com>
---
arch/riscv/Kconfig | 4
arch/riscv/Makefile | 9 +
arch/riscv/boot/Makefile
Build the dtb into the kernel image.
If the DTB is given via bootloader, the external DTB is adopted first.
Signed-off-by: Zong Li
---
arch/riscv/Kconfig | 4
arch/riscv/Makefile | 9 +
arch/riscv/boot/Makefile | 17 +
arch/riscv/boot/dts
Build the dtb into the kernel image.
If the DTB is given via bootloader, the external DTB is adopted first.
Signed-off-by: Zong Li <zong...@gmail.com>
---
arch/riscv/Kconfig | 4
arch/riscv/Makefile | 9 +
arch/riscv/boot/Makefile
Build the dtb into the kernel image.
If the DTB is given via bootloader, the external DTB is adopted first.
Signed-off-by: Zong Li
---
arch/riscv/Kconfig | 4
arch/riscv/Makefile | 9 +
arch/riscv/boot/Makefile | 17 +
arch/riscv/boot/dts
301 - 400 of 410 matches
Mail list logo