Skip to content

Get ride of CPHYSADDR() in setup.c [take #3]

Franck Bui-Huu linux-mips 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7page.h: remove __pa() usages.arch/mips/mm/init.c include/asm-mips/io.h include/asm-mips/page.h +1 more+10 -80 replies
2/7Make __pa() aware of XKPHYS/CKSEG0 address mix for 64 bit kernelsinclude/asm-mips/page.h+7 -20 replies
3/7setup.c: get ride of CPHYSADDR()arch/mips/kernel/setup.c+3 -30 replies
4/7Introduce __pa_symbol()include/asm-mips/page.h+1 -00 replies
5/7setup.c: use __pa_symbol() where neededarch/mips/kernel/setup.c+5 -50 replies
6/7setup.c: clean up initrd related codearch/mips/kernel/setup.c arch/mips/mm/init.c+38 -320 replies
7/7Make free_init_pages() arguments to be physical addressesarch/mips/mm/init.c+17 -160 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/7] Get ride of CPHYSADDR() in setup.c [take #3]

Changes from take #2
--------------------
* More initrd code clean up. It should be more readable and more robust now.
* Add some missing include in page.h (Atsushi)
* Fix a wrong use of __page_offset() in __va() (Atsushi)
* Rename __page_offset() into __pa_page_offset()

changes from take #1
--------------------
* Changed the definition of __pa() for 64-bits kernels to match the one suggested by Atsushi. It should be safer.
* Make virt_to_page() uses virt_to_phys() instead of __pa().

I still can't test this patchset on 64 bit kernels. If anybody could give a try that would be great.

Please consider,

Franck
---

 arch/mips/kernel/setup.c   |   77 +++++++++++++++++++-------------------------
 arch/mips/mm/init.c        |   42 +++++++++++++-----------
 include/asm-mips/io.h      |    2 +
 include/asm-mips/page.h    |   16 ++-------
 include/asm-mips/pgtable.h |    2 +
 5 files changed, 62 insertions(+), 77 deletions(-)