Skip to content

Commit

Permalink
sparc: export openprom.h to userspace
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sam Ravnborg authored and David S. Miller committed Jul 18, 2008
1 parent b444b9a commit b1a8bf9
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
1 change: 1 addition & 0 deletions arch/sparc/kernel/entry.S
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include <asm/vaddrs.h>
#include <asm/memreg.h>
#include <asm/page.h>
#include <asm/pgtable.h>
#ifdef CONFIG_SUN4
#include <asm/pgtsun4.h>
#else
Expand Down
1 change: 1 addition & 0 deletions include/asm-sparc/Kbuild
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ header-y += bpp.h
header-y += display7seg.h
header-y += envctrl.h
header-y += jsflash.h
header-y += openprom.h
header-y += openpromio.h
header-y += psrcompat.h
header-y += pstate.h
Expand Down
2 changes: 0 additions & 2 deletions include/asm-sparc/openprom.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
* Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
*/

#include <asm/vaddrs.h>

/* Empirical constants... */
#define LINUX_OPPROM_MAGIC 0x10010407

Expand Down
7 changes: 6 additions & 1 deletion include/asm-sparc/pgtable.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* Copyright (C) 1998 Jakub Jelinek (jj@sunsite.mff.cuni.cz)
*/

#ifndef __ASSEMBLY__
#include <asm-generic/4level-fixup.h>

#include <linux/spinlock.h>
Expand All @@ -24,7 +25,6 @@
#include <asm/btfixup.h>
#include <asm/system.h>

#ifndef __ASSEMBLY__

struct vm_area_struct;
struct page;
Expand Down Expand Up @@ -464,6 +464,11 @@ extern int io_remap_pfn_range(struct vm_area_struct *vma,

#endif /* !(__ASSEMBLY__) */

#define VMALLOC_START 0xfe600000
/* XXX Alter this when I get around to fixing sun4c - Anton */
#define VMALLOC_END 0xffc00000


/* We provide our own get_unmapped_area to cope with VA holes for userland */
#define HAVE_ARCH_UNMAPPED_AREA

Expand Down
5 changes: 0 additions & 5 deletions include/asm-sparc/vaddrs.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,6 @@
#define IOBASE_VADDR 0xfe000000
#define IOBASE_END 0xfe600000

#define VMALLOC_START 0xfe600000

/* XXX Alter this when I get around to fixing sun4c - Anton */
#define VMALLOC_END 0xffc00000

/*
* On the sun4/4c we need a place
* to reliably map locked down kernel data. This includes the
Expand Down

0 comments on commit b1a8bf9

Please sign in to comment.