diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2008-04-07 22:37:19 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2008-04-07 22:37:19 +0000 |
commit | 4daaa30806c6bc03f7497d244da68c0006efb101 (patch) | |
tree | 80d99a94a1a5e132acd19ba0916f90dc9971e73b /sys/arch/mips64/include/cpu.h | |
parent | 3b155998b905d3951937b9aa72b3f53c5f07d8e0 (diff) |
Add ``guarded'' word read and write routines, to be used by machine-dependent
code soon. Similar to what ddb does, but does not need ddb to be compiled in.
Diffstat (limited to 'sys/arch/mips64/include/cpu.h')
-rw-r--r-- | sys/arch/mips64/include/cpu.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/arch/mips64/include/cpu.h b/sys/arch/mips64/include/cpu.h index 629c4bf8766..d320ef5a309 100644 --- a/sys/arch/mips64/include/cpu.h +++ b/sys/arch/mips64/include/cpu.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.h,v 1.23 2008/04/07 22:29:16 miod Exp $ */ +/* $OpenBSD: cpu.h,v 1.24 2008/04/07 22:37:16 miod Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -545,10 +545,12 @@ int tlb_update(vaddr_t, unsigned); void tlb_read(int, struct tlb_entry *); void savectx(struct user *, int); -void switch_exit(struct proc *); void MipsSaveCurFPState(struct proc *); void MipsSaveCurFPState16(struct proc *); +int guarded_read_4(paddr_t, uint32_t *); +int guarded_write_4(paddr_t, uint32_t); + extern u_int32_t cpu_counter_interval; /* Number of counter ticks/tick */ extern u_int32_t cpu_counter_last; /* Last compare value loaded */ |