diff options
author | marcel <marcel@FreeBSD.org> | 2003-07-25 05:37:13 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2003-07-25 05:37:13 +0000 |
commit | efb0411b26a07d0aa9382a43000505ce6cfabb78 (patch) | |
tree | 660584b944e602c22a010a32596c10b9dc1661e1 | |
parent | d47c06ea351f2815b1a0eecb88be40bfd10de8d1 (diff) | |
download | FreeBSD-src-efb0411b26a07d0aa9382a43000505ce6cfabb78.zip FreeBSD-src-efb0411b26a07d0aa9382a43000505ce6cfabb78.tar.gz |
Move ia64_pa_access() from machdep.c to mem.c and declare it static.
It's only used in mem.c and cannot accidentally be used elsewhere
this way.
-rw-r--r-- | sys/ia64/ia64/machdep.c | 6 | ||||
-rw-r--r-- | sys/ia64/ia64/mem.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/ia64/ia64/machdep.c b/sys/ia64/ia64/machdep.c index b9c792a..177d329 100644 --- a/sys/ia64/ia64/machdep.c +++ b/sys/ia64/ia64/machdep.c @@ -1209,12 +1209,6 @@ ptrace_single_step(struct thread *td) } int -ia64_pa_access(vm_offset_t pa) -{ - return VM_PROT_READ|VM_PROT_WRITE; -} - -int fill_regs(struct thread *td, struct reg *regs) { struct trapframe *tf; diff --git a/sys/ia64/ia64/mem.c b/sys/ia64/ia64/mem.c index cd4f3b1..a904172 100644 --- a/sys/ia64/ia64/mem.c +++ b/sys/ia64/ia64/mem.c @@ -95,6 +95,12 @@ static struct cdevsw mem_cdevsw = { struct mem_range_softc mem_range_softc; +static __inline int +ia64_pa_access(vm_offset_t pa) +{ + return (VM_PROT_READ|VM_PROT_WRITE); +} + static int mmclose(dev_t dev, int flags, int fmt, struct thread *td) { |