All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC 0/2] MIPS: fix code relocation routine
@ 2019-06-18  9:38 Antony Pavlov
  2019-06-18  9:38 ` [RFC 1/2] MIPS: lib/Makefile: fix whitespaces Antony Pavlov
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Antony Pavlov @ 2019-06-18  9:38 UTC (permalink / raw)
  To: barebox; +Cc: Oleksij Rempel

At the moment MIPS relocation code routine has at least two problems:

1. the first problem is fixed in the 'MIPS: relocate_code: fix barebox image size'
   patch from this patchseries.

2. relocate_code() calls flush_cache_all().
   flush_cache_all() uses 'struct cpuinfo_mips current_cpu_data' data fields.
   These data fields are initialized in r4k_cache_init().

   However in the current implementation the r4k_cache_init() function
   is called __AFTER__ relocate_code().

   This cache problem can't be discovered via qemu.

Antony Pavlov (2):
  MIPS: lib/Makefile: fix whitespaces
  MIPS: relocate_code: fix barebox image memcpy() size

 arch/mips/lib/Makefile |  4 ++--
 arch/mips/lib/reloc.c  | 11 +++++------
 2 files changed, 7 insertions(+), 8 deletions(-)

-- 
2.20.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

end of thread, other threads:[~2019-06-20 14:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-18  9:38 [RFC 0/2] MIPS: fix code relocation routine Antony Pavlov
2019-06-18  9:38 ` [RFC 1/2] MIPS: lib/Makefile: fix whitespaces Antony Pavlov
2019-06-18  9:38 ` [RFC 2/2] MIPS: relocate_code: fix barebox image memcpy() size Antony Pavlov
2019-06-18 11:05   ` Oleksij Rempel
2019-06-20 14:34 ` [RFC 0/2] MIPS: fix code relocation routine Sascha Hauer

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.