diff options
| author | Sam Ravnborg <sam@ravnborg.org> | 2008-06-13 14:20:54 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2008-07-18 00:42:23 -0400 |
| commit | b1a8bf92a0303301f3e013e2a2f45a4916453ce7 (patch) | |
| tree | 3e0c5a4dbfbe96dc5881e2bafffcd4e760a8f23c | |
| parent | b444b9a5a1171ef07e1a87b01f7bb5bd0206d012 (diff) | |
sparc: export openprom.h to userspace
sparc64 exports openprom.h to userspace so let sparc follow
the example.
As openprom.h pulled in another not-for-export vaddrs.h header
file it required a few changes to fix the build.
The definition af VMALLOC_* were moved to pgtable as this is
where sparc64 has them.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
| -rw-r--r-- | arch/sparc/kernel/entry.S | 1 | ||||
| -rw-r--r-- | include/asm-sparc/Kbuild | 1 | ||||
| -rw-r--r-- | include/asm-sparc/openprom.h | 2 | ||||
| -rw-r--r-- | include/asm-sparc/pgtable.h | 7 | ||||
| -rw-r--r-- | include/asm-sparc/vaddrs.h | 5 |
5 files changed, 8 insertions, 8 deletions
diff --git a/arch/sparc/kernel/entry.S b/arch/sparc/kernel/entry.S index 55d3be1b5d81..2f96256dc515 100644 --- a/arch/sparc/kernel/entry.S +++ b/arch/sparc/kernel/entry.S | |||
| @@ -19,6 +19,7 @@ | |||
| 19 | #include <asm/vaddrs.h> | 19 | #include <asm/vaddrs.h> |
| 20 | #include <asm/memreg.h> | 20 | #include <asm/memreg.h> |
| 21 | #include <asm/page.h> | 21 | #include <asm/page.h> |
| 22 | #include <asm/pgtable.h> | ||
| 22 | #ifdef CONFIG_SUN4 | 23 | #ifdef CONFIG_SUN4 |
| 23 | #include <asm/pgtsun4.h> | 24 | #include <asm/pgtsun4.h> |
| 24 | #else | 25 | #else |
diff --git a/include/asm-sparc/Kbuild b/include/asm-sparc/Kbuild index c8432483628e..c83e3c0aa30b 100644 --- a/include/asm-sparc/Kbuild +++ b/include/asm-sparc/Kbuild | |||
| @@ -6,6 +6,7 @@ header-y += bpp.h | |||
| 6 | header-y += display7seg.h | 6 | header-y += display7seg.h |
| 7 | header-y += envctrl.h | 7 | header-y += envctrl.h |
| 8 | header-y += jsflash.h | 8 | header-y += jsflash.h |
| 9 | header-y += openprom.h | ||
| 9 | header-y += openpromio.h | 10 | header-y += openpromio.h |
| 10 | header-y += psrcompat.h | 11 | header-y += psrcompat.h |
| 11 | header-y += pstate.h | 12 | header-y += pstate.h |
diff --git a/include/asm-sparc/openprom.h b/include/asm-sparc/openprom.h index ed4b6bc2b102..e812cf3b0de7 100644 --- a/include/asm-sparc/openprom.h +++ b/include/asm-sparc/openprom.h | |||
| @@ -7,8 +7,6 @@ | |||
| 7 | * Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu) | 7 | * Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu) |
| 8 | */ | 8 | */ |
| 9 | 9 | ||
| 10 | #include <asm/vaddrs.h> | ||
| 11 | |||
| 12 | /* Empirical constants... */ | 10 | /* Empirical constants... */ |
| 13 | #define LINUX_OPPROM_MAGIC 0x10010407 | 11 | #define LINUX_OPPROM_MAGIC 0x10010407 |
| 14 | 12 | ||
diff --git a/include/asm-sparc/pgtable.h b/include/asm-sparc/pgtable.h index 60512296b2ca..b63ac6b4119f 100644 --- a/include/asm-sparc/pgtable.h +++ b/include/asm-sparc/pgtable.h | |||
| @@ -8,6 +8,7 @@ | |||
| 8 | * Copyright (C) 1998 Jakub Jelinek (jj@sunsite.mff.cuni.cz) | 8 | * Copyright (C) 1998 Jakub Jelinek (jj@sunsite.mff.cuni.cz) |
| 9 | */ | 9 | */ |
| 10 | 10 | ||
| 11 | #ifndef __ASSEMBLY__ | ||
| 11 | #include <asm-generic/4level-fixup.h> | 12 | #include <asm-generic/4level-fixup.h> |
| 12 | 13 | ||
| 13 | #include <linux/spinlock.h> | 14 | #include <linux/spinlock.h> |
| @@ -24,7 +25,6 @@ | |||
| 24 | #include <asm/btfixup.h> | 25 | #include <asm/btfixup.h> |
| 25 | #include <asm/system.h> | 26 | #include <asm/system.h> |
| 26 | 27 | ||
| 27 | #ifndef __ASSEMBLY__ | ||
| 28 | 28 | ||
| 29 | struct vm_area_struct; | 29 | struct vm_area_struct; |
| 30 | struct page; | 30 | struct page; |
| @@ -464,6 +464,11 @@ extern int io_remap_pfn_range(struct vm_area_struct *vma, | |||
| 464 | 464 | ||
| 465 | #endif /* !(__ASSEMBLY__) */ | 465 | #endif /* !(__ASSEMBLY__) */ |
| 466 | 466 | ||
| 467 | #define VMALLOC_START 0xfe600000 | ||
| 468 | /* XXX Alter this when I get around to fixing sun4c - Anton */ | ||
| 469 | #define VMALLOC_END 0xffc00000 | ||
| 470 | |||
| 471 | |||
| 467 | /* We provide our own get_unmapped_area to cope with VA holes for userland */ | 472 | /* We provide our own get_unmapped_area to cope with VA holes for userland */ |
| 468 | #define HAVE_ARCH_UNMAPPED_AREA | 473 | #define HAVE_ARCH_UNMAPPED_AREA |
| 469 | 474 | ||
diff --git a/include/asm-sparc/vaddrs.h b/include/asm-sparc/vaddrs.h index f6ca4779056c..a22fed5a3c6b 100644 --- a/include/asm-sparc/vaddrs.h +++ b/include/asm-sparc/vaddrs.h | |||
| @@ -34,11 +34,6 @@ | |||
| 34 | #define IOBASE_VADDR 0xfe000000 | 34 | #define IOBASE_VADDR 0xfe000000 |
| 35 | #define IOBASE_END 0xfe600000 | 35 | #define IOBASE_END 0xfe600000 |
| 36 | 36 | ||
| 37 | #define VMALLOC_START 0xfe600000 | ||
| 38 | |||
| 39 | /* XXX Alter this when I get around to fixing sun4c - Anton */ | ||
| 40 | #define VMALLOC_END 0xffc00000 | ||
| 41 | |||
| 42 | /* | 37 | /* |
| 43 | * On the sun4/4c we need a place | 38 | * On the sun4/4c we need a place |
| 44 | * to reliably map locked down kernel data. This includes the | 39 | * to reliably map locked down kernel data. This includes the |
