diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1998-12-29 18:06:49 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1998-12-29 18:06:49 +0000 |
commit | b68fd26834dc32ca3ded2ca41008b567b73a7532 (patch) | |
tree | 00b928ce0578d0d0f0f005de2b65639737877667 /sys/arch | |
parent | d66d2b1c0c7a88d285fec8df406bfdc26292ceed (diff) |
some *machdep stuff
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/hppa/hppa/process_machdep.c | 53 | ||||
-rw-r--r-- | sys/arch/hppa/hppa/sys_machdep.c | 28 | ||||
-rw-r--r-- | sys/arch/hppa/hppa/vm_machdep.c | 110 |
3 files changed, 191 insertions, 0 deletions
diff --git a/sys/arch/hppa/hppa/process_machdep.c b/sys/arch/hppa/hppa/process_machdep.c new file mode 100644 index 00000000000..b03cb93c0e3 --- /dev/null +++ b/sys/arch/hppa/hppa/process_machdep.c @@ -0,0 +1,53 @@ +/* $OpenBSD: process_machdep.c,v 1.1 1998/12/29 18:06:48 mickey Exp $ */ + +#include <sys/param.h> +#include <sys/proc.h> +#include <sys/ptrace.h> + +int +process_read_regs(p, regs) + struct proc *p; + struct reg *regs; +{ + return EINVAL; +} + +int +process_write_regs(p, regs) + struct proc *p; + struct reg *regs; +{ + return EINVAL; +} + +int +process_read_fpregs(p, fpregs) + struct proc *p; + struct fpreg *fpregs; +{ + return EINVAL; +} + +int +process_write_fpregs(p, fpregs) + struct proc *p; + struct fpreg *fpregs; +{ + return EINVAL; +} + +int +process_sstep(p, sstep) + struct proc *p; + int sstep; +{ + return EINVAL; +} + +int +process_set_pc(p, addr) + struct proc *p; + caddr_t addr; +{ + return EINVAL; +} diff --git a/sys/arch/hppa/hppa/sys_machdep.c b/sys/arch/hppa/hppa/sys_machdep.c new file mode 100644 index 00000000000..66e6f94c3d7 --- /dev/null +++ b/sys/arch/hppa/hppa/sys_machdep.c @@ -0,0 +1,28 @@ +/* $OpenBSD: sys_machdep.c,v 1.1 1998/12/29 18:06:48 mickey Exp $ */ + + +#include <sys/param.h> +#include <sys/systm.h> + +#include <sys/mount.h> +#include <sys/syscallargs.h> + +int +sys_sysarch(p, v, retval) + struct proc *p; + void *v; + register_t *retval; +{ + struct sys_sysarch_args /* { + syscallarg(int) op; + syscallarg(char *) parms; + } */ *uap = v; + int error = 0; + + switch (SCARG(uap, op)) { + default: + error = EINVAL; + break; + } + return (error); +} diff --git a/sys/arch/hppa/hppa/vm_machdep.c b/sys/arch/hppa/hppa/vm_machdep.c new file mode 100644 index 00000000000..5cbc0b2a395 --- /dev/null +++ b/sys/arch/hppa/hppa/vm_machdep.c @@ -0,0 +1,110 @@ +/* $OpenBSD: vm_machdep.c,v 1.1 1998/12/29 18:06:48 mickey Exp $ */ + +#include <sys/param.h> +#include <sys/systm.h> +#include <sys/proc.h> +#include <sys/malloc.h> +#include <sys/buf.h> +#include <sys/vnode.h> +#include <sys/user.h> + +#include <machine/pmap.h> + +#include <vm/vm.h> + + +/* + * Dump the machine specific header information at the start of a core dump. + */ +int +cpu_coredump(p, vp, cred, core) + struct proc *p; + struct vnode *vp; + struct ucred *cred; + struct core *core; +{ + return EIO; +} + +/* + * Move pages from one kernel virtual address to another. + * Both addresses are assumed to reside in the Sysmap, + * and size must be a multiple of CLSIZE. + */ +void +pagemove(from, to, size) + register caddr_t from, to; + size_t size; +{ + register vm_offset_t pa; + + while (size > 0) { + pa = pmap_extract(pmap_kernel(), (vm_offset_t)from); + pmap_remove(pmap_kernel(), + (vm_offset_t)from, (vm_offset_t)from + PAGE_SIZE); + pmap_enter(pmap_kernel(), + (vm_offset_t)to, pa, VM_PROT_READ|VM_PROT_WRITE, 1); + from += PAGE_SIZE; + to += PAGE_SIZE; + size -= PAGE_SIZE; + } +} + +void +cpu_swapin(p) + struct proc *p; +{ + +} + +void +cpu_swapout(p) + struct proc *p; +{ + +} + +void +cpu_fork(p1, p2) + struct proc *p1, *p2; +{ +} + +void +cpu_exit(p) + struct proc *p; +{ + +} + + +void +cpu_wait(p) + struct proc *p; +{ + +} + +void +cpu_set_kpc(p, pc) + struct proc *p; + void (*pc) __P((struct proc *)); +{ + +} + +void +vmapbuf(bp, len) + struct buf *bp; + vm_size_t len; +{ + +} + +void +vunmapbuf(bp, len) + struct buf *bp; + vm_size_t len; +{ + +} |