BSD 4_3_Reno release
[unix-history] / usr / src / sys / kdb / kdb_access.c
CommitLineData
9d61b7ff
SL
1/*
2 * Copyright (c) 1986 Regents of the University of California.
3 * All rights reserved. The Berkeley software License Agreement
4 * specifies the terms and conditions for redistribution.
5 *
1c15e888 6 * @(#)kdb_access.c 7.4 (Berkeley) 5/3/90
9d61b7ff 7 */
9acc71f0
SL
8
9/*
10 * Access data in kernel address space.
11 */
12
13#include "../kdb/defs.h"
14
15/*
16 * Primitives: put a value in a space, get a value from a space
17 * and get a word or byte not returning if an error occurred.
18 */
9d61b7ff 19/*ARGSUSED*/
1372898d 20kdbput(addr, space, value)
9d61b7ff 21 off_t addr; long value; { (void) kdbpoke((caddr_t)addr, value); }
9acc71f0 22
9d61b7ff 23/*ARGSUSED*/
9acc71f0 24u_int
1372898d 25kdbget(addr, space)
9d61b7ff 26 off_t addr; { return (kdbpeek((caddr_t)addr)); };
9acc71f0
SL
27
28u_int
1372898d
KS
29kdbchkget(addr, space)
30 off_t addr; { u_int w = kdbget(addr, space); kdbchkerr(); return (w); }
9acc71f0
SL
31
32u_int
1372898d
KS
33kdbbchkget(addr, space)
34 off_t addr; { return (byte(kdbchkget(addr, space))); }