Skip to content

Get ride of CPHYSADDR() in setup.c

Franck Bui-Huu linux-mips 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 14 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5Make __pa() uses CPHYSADDR() if really neededinclude/asm-mips/page.h+5 -18 replies
2/5setup.c: get ride of CPHYSADDR()arch/mips/kernel/setup.c+3 -30 replies
3/5setup.c: clean up initrd related codearch/mips/kernel/setup.c arch/mips/mm/init.c+24 -221 reply
4/5Introduce __pa_symbol()include/asm-mips/page.h+1 -05 replies
5/5setup.c: use __pa_symbol() where neededarch/mips/kernel/setup.c+5 -50 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] Get ride of CPHYSADDR() in setup.c

Indeed there's no point to have 2 macros __pa()/CPHYSADDR() that do exactly the same thing that is convert a virtual address into physical one at early boot.

So this patch simply removes CPHYSADDR() usages and make __pa() aware of 64 bit kernels with CONFIG_BUILD_ELF64=n constraint.

At the same time, it also removes all hacks related to the previous constraint and initrd.

Unfortunately, no tests have been done for 64 bit kernels because of lacks of hardware. If anybody could give a try that would be great.

Please consider,

Franck
---

 arch/mips/kernel/setup.c |   53 ++++++++++++++++++++++++++--------------------
 arch/mips/mm/init.c      |    5 ----
 include/asm-mips/page.h  |    7 +++++-
 3 files changed, 36 insertions(+), 29 deletions(-)