All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Bugy bootloader woraround
@ 2020-05-27  5:27 Jiaxun Yang
  2020-05-27  5:27 ` [PATCH 1/2] MIPS: head.S: Always jump to kernel_entry at head of text Jiaxun Yang
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Jiaxun Yang @ 2020-05-27  5:27 UTC (permalink / raw)
  To: linux-mips; +Cc: Jiaxun Yang, Thomas Bogendoerfer, linux-kernel

Jiaxun Yang (2):
  MIPS: head.S: Always jump to kernel_entry at head of text
  MIPS: Loongso64: select NO_EXCEPT_FILL

 arch/mips/Kconfig       | 1 +
 arch/mips/kernel/head.S | 2 --
 2 files changed, 1 insertion(+), 2 deletions(-)

-- 
2.27.0.rc0


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 1/2] MIPS: head.S: Always jump to kernel_entry at head of text
  2020-05-27  5:27 [PATCH 0/2] Bugy bootloader woraround Jiaxun Yang
@ 2020-05-27  5:27 ` Jiaxun Yang
  2020-05-27  5:27 ` [PATCH 2/2] MIPS: Loongso64: select NO_EXCEPT_FILL Jiaxun Yang
  2020-05-27  5:58 ` [PATCH 0/2] Bugy bootloader woraround Jiaxun Yang
  2 siblings, 0 replies; 4+ messages in thread
From: Jiaxun Yang @ 2020-05-27  5:27 UTC (permalink / raw)
  To: linux-mips; +Cc: Jiaxun Yang, Thomas Bogendoerfer, linux-kernel

Buggy loaders like early version of PMON2000 sometimes ignore
elf_entry and goto start of text directly.

That would help with dealing with these loaders.

Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
---
 arch/mips/kernel/head.S | 2 --
 1 file changed, 2 deletions(-)

diff --git a/arch/mips/kernel/head.S b/arch/mips/kernel/head.S
index 3b02ffe46304..c7c2795837e7 100644
--- a/arch/mips/kernel/head.S
+++ b/arch/mips/kernel/head.S
@@ -69,7 +69,6 @@
 
 EXPORT(_stext)
 
-#ifdef CONFIG_BOOT_RAW
 	/*
 	 * Give us a fighting chance of running if execution beings at the
 	 * kernel load address.	 This is needed because this platform does
@@ -77,7 +76,6 @@ EXPORT(_stext)
 	 */
 FEXPORT(__kernel_entry)
 	j	kernel_entry
-#endif /* CONFIG_BOOT_RAW */
 
 	__REF
 
-- 
2.27.0.rc0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/2] MIPS: Loongso64: select NO_EXCEPT_FILL
  2020-05-27  5:27 [PATCH 0/2] Bugy bootloader woraround Jiaxun Yang
  2020-05-27  5:27 ` [PATCH 1/2] MIPS: head.S: Always jump to kernel_entry at head of text Jiaxun Yang
@ 2020-05-27  5:27 ` Jiaxun Yang
  2020-05-27  5:58 ` [PATCH 0/2] Bugy bootloader woraround Jiaxun Yang
  2 siblings, 0 replies; 4+ messages in thread
From: Jiaxun Yang @ 2020-05-27  5:27 UTC (permalink / raw)
  To: linux-mips; +Cc: Jiaxun Yang, Thomas Bogendoerfer, linux-kernel

Loongson64 load kernel at 0x82000000 and allocate exception vectors
by ebase. So we don't need to reserve space for exception vectors
at head of kernel.

Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
---
 arch/mips/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
index 3ca59b610a67..0e385f7b7691 100644
--- a/arch/mips/Kconfig
+++ b/arch/mips/Kconfig
@@ -462,6 +462,7 @@ config MACH_LOONGSON64
 	select IRQ_MIPS_CPU
 	select NR_CPUS_DEFAULT_64
 	select USE_GENERIC_EARLY_PRINTK_8250
+	select NO_EXCEPT_FILL
 	select SYS_HAS_CPU_LOONGSON64
 	select SYS_HAS_EARLY_PRINTK
 	select SYS_SUPPORTS_SMP
-- 
2.27.0.rc0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 0/2] Bugy bootloader woraround
  2020-05-27  5:27 [PATCH 0/2] Bugy bootloader woraround Jiaxun Yang
  2020-05-27  5:27 ` [PATCH 1/2] MIPS: head.S: Always jump to kernel_entry at head of text Jiaxun Yang
  2020-05-27  5:27 ` [PATCH 2/2] MIPS: Loongso64: select NO_EXCEPT_FILL Jiaxun Yang
@ 2020-05-27  5:58 ` Jiaxun Yang
  2 siblings, 0 replies; 4+ messages in thread
From: Jiaxun Yang @ 2020-05-27  5:58 UTC (permalink / raw)
  To: linux-mips; +Cc: Thomas Bogendoerfer, linux-kernel

On Wed, 27 May 2020 13:27:17 +0800
Jiaxun Yang <jiaxun.yang@flygoat.com> wrote:

> Jiaxun Yang (2):
>   MIPS: head.S: Always jump to kernel_entry at head of text
>   MIPS: Loongso64: select NO_EXCEPT_FILL

Please ignore the noise.....
Something went wrong with my keyboard...

> 
>  arch/mips/Kconfig       | 1 +
>  arch/mips/kernel/head.S | 2 --
>  2 files changed, 1 insertion(+), 2 deletions(-)
> 


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-05-27  5:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-27  5:27 [PATCH 0/2] Bugy bootloader woraround Jiaxun Yang
2020-05-27  5:27 ` [PATCH 1/2] MIPS: head.S: Always jump to kernel_entry at head of text Jiaxun Yang
2020-05-27  5:27 ` [PATCH 2/2] MIPS: Loongso64: select NO_EXCEPT_FILL Jiaxun Yang
2020-05-27  5:58 ` [PATCH 0/2] Bugy bootloader woraround Jiaxun Yang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.