linux-mips
[Top] [All Lists]

Re: [PATCH]: Remove CONFIG_BUILD_ELF64 entirely

To: ralf@linux-mips.org
Subject: Re: [PATCH]: Remove CONFIG_BUILD_ELF64 entirely
From: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Date: Mon, 26 Mar 2007 22:25:30 +0900 (JST)
Cc: kumba@gentoo.org, linux-mips@linux-mips.org, ths@networkno.de
In-reply-to: <20070325221919.GA12088@linux-mips.org>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20070326.011000.75185255.anemo@mba.ocn.ne.jp> <4606AA74.3070907@gentoo.org> <20070325221919.GA12088@linux-mips.org>
Sender: linux-mips-bounce@linux-mips.org
On Sun, 25 Mar 2007 23:19:19 +0100, Ralf Baechle <ralf@linux-mips.org> wrote:
> --- a/include/asm-mips/stackframe.h
> +++ b/include/asm-mips/stackframe.h
> @@ -79,7 +79,7 @@
>  #else
>               MFC0    k0, CP0_CONTEXT
>  #endif
> -#if defined(CONFIG_BUILD_ELF64) || (defined(CONFIG_64BIT) && __GNUC__ < 4)
> +#if !defined(CONFIG_KERNEL_LOADS_IN_CKSEG0) || (defined(CONFIG_64BIT) && 
> __GNUC__ < 4)
>               lui     k1, %highest(kernelsp)
>               daddiu  k1, %higher(kernelsp)
>               dsll    k1, 16

CONFIG_KERNEL_LOADS_IN_CKSEG0 is not defined on 32-bit kernel.

#if defined(CONFIG_64BIT) && (!defined(CONFIG_KERNEL_LOADS_IN_CKSEG0) || 
__GNUC__ < 4)

Perhaps?
---
Atsushi Nemoto

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