1 /*	kdb_access.c	7.1	86/11/20	*/
2 
3 /*
4  * Access data in kernel address space.
5  */
6 
7 #include "../kdb/defs.h"
8 
9 /*
10  * Primitives: put a value in a space, get a value from a space
11  * and get a word or byte not returning if an error occurred.
12  */
13 put(addr, space, value)
14     off_t addr; { (void) kdbpoke(addr, value); }
15 
16 u_int
17 get(addr, space)
18     off_t addr; { return (kdbpeek(addr)); };
19 
20 u_int
21 chkget(addr, space)
22     off_t addr; { return (get(addr, space)); }
23 
24 u_int
25 bchkget(addr, space)
26     off_t addr; { return (byte(chkget(addr, space))); }
27