Get ride of CPHYSADDR() in setup.c
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest5 patches 14 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | Make __pa() uses CPHYSADDR() if really neededinclude/ | +5 | 8 replies | |
| 2/5 | setup.c: get ride of CPHYSADDR()arch/ | +3 | 0 replies | |
| 3/5 | setup.c: clean up initrd related codearch/ arch/ | +24 | 1 reply | |
| 4/5 | Introduce __pa_symbol()include/ | +1 | 5 replies | |
| 5/5 | setup.c: use __pa_symbol() where neededarch/ | +5 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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(-)