linux-cvs-patches
[Top] [All Lists]

CVS Update@linux-mips.org: linux

To: linux-cvs-patches@linux-mips.org
Subject: CVS Update@linux-mips.org: linux
From: ths@linux-mips.org
Date: Fri, 07 Jan 2005 19:57:39 +0000
Reply-to: linux-mips@linux-mips.org
Sender: linux-cvs-patches-bounce@linux-mips.org
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.

<Prev in Thread] Current Thread [Next in Thread>