CVSROOT: /home/cvs
Module name: linux
Changes by: ths@ftp.linux-mips.org 05/01/07 19:57:33
Modified files:
arch/mips/kernel: setup.c
Log message:
Use CPHYSADDR instead of virt_to_phys. This is needed for newer binutils
plus 64bit kernels in 32bit compat space, because virt_to_phys for a
linker script symbol needs a 64bit relocation which can't be represented
in ELF32.
diff -urN linux/arch/mips/kernel/setup.c linux/arch/mips/kernel/setup.c
--- linux/arch/mips/kernel/setup.c 2004/12/21 14:13:11 1.176
+++ linux/arch/mips/kernel/setup.c 2005/01/07 19:57:33 1.177
@@ -443,10 +443,10 @@
{
int i;
- code_resource.start = virt_to_phys(&_text);
- code_resource.end = virt_to_phys(&_etext) - 1;
- data_resource.start = virt_to_phys(&_etext);
- data_resource.end = virt_to_phys(&_edata) - 1;
+ code_resource.start = CPHYSADDR(&_text);
+ code_resource.end = CPHYSADDR(&_etext) - 1;
+ data_resource.start = CPHYSADDR(&_etext);
+ data_resource.end = CPHYSADDR(&_edata) - 1;
/*
* Request address space for all standard RAM.
|