]> git.hungrycats.org Git - linux/commitdiff
[PATCH] Sun-3 first page
authorGeert Uytterhoeven <geert@linux-m68k.org>
Thu, 20 Mar 2003 14:05:06 +0000 (06:05 -0800)
committerLinus Torvalds <torvalds@home.transmeta.com>
Thu, 20 Mar 2003 14:05:06 +0000 (06:05 -0800)
Sun-3: Properly calculate the physical address of the first virtual page
(0x0e000000) (from Sam Creasey)

include/asm-m68k/page.h

index b57a4b497b0fd0ca8cf0e06e29aa3fbf48721199..8343b13441892efabd4b7eacda00fc44b4573ed2 100644 (file)
@@ -145,7 +145,7 @@ static inline unsigned long ___pa(unsigned long x)
 {
      if(x == 0)
          return 0;
-     if(x > PAGE_OFFSET)
+     if(x >= PAGE_OFFSET)
         return (x-PAGE_OFFSET);
      else
         return (x+0x2000000);