[Top] [All Lists]

Re: Breakage in arch/mips/kernel/traps.c for 64bit

To: Ralf Baechle <>
Subject: Re: Breakage in arch/mips/kernel/traps.c for 64bit
From: "Maciej W. Rozycki" <>
Date: Sat, 3 May 2008 20:57:04 +0100 (BST)
Cc: Atsushi Nemoto <>,,
In-reply-to: <>
Original-recipient: rfc822;
References: <> <> <> <>
On Sat, 3 May 2008, Ralf Baechle wrote:

> Slightly cleaner:
>   return KSEGX(a) == KSEG0;

 You mean:

return KSEGX(a) == KSEG0 || KSEGX(a) == KSEG1;


> Unfortunately there is no such macro for the 64-bit segments nor does
> the existing KSEGX() work correctly for non-CKSEGx 64-bit addresses.

 As I mentioned there is suitable code doing exactly this in
arch/mips/lib/uncached.c and it can be extracted to an inline function to
be put in <asm/addrspace.h> to be reused here and in the future possibly


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