i386_set_watch.c (66174) | i386_set_watch.c (92986) |
---|---|
1/* 2 * Copyright 2000 Brian S. Dean <bsd@bsdhome.com> 3 * All Rights Reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * --- 10 unchanged lines hidden (view full) --- 19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 20 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 21 * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 22 * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 23 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE 25 * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH 26 * DAMAGE. | 1/* 2 * Copyright 2000 Brian S. Dean <bsd@bsdhome.com> 3 * All Rights Reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * --- 10 unchanged lines hidden (view full) --- 19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 20 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 21 * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 22 * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 23 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE 25 * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH 26 * DAMAGE. |
27 * | |
28 */ 29 | 27 */ 28 |
30/* 31 * $FreeBSD: head/lib/libc/i386/sys/i386_set_watch.c 66174 2000-09-21 17:07:27Z bsd $ 32 */ | 29#include <sys/cdefs.h> 30__FBSDID("$FreeBSD: head/lib/libc/i386/sys/i386_set_watch.c 92986 2002-03-22 21:53:29Z obrien $"); |
33 | 31 |
34 | |
35#include <machine/reg.h> 36#include <machine/sysarch.h> 37 | 32#include <machine/reg.h> 33#include <machine/sysarch.h> 34 |
38 | |
39int 40i386_set_watch(int watchnum, unsigned int watchaddr, int size, 41 int access, struct dbreg * d) 42{ 43 int i; 44 unsigned int mask; 45 46 if (watchnum == -1) { --- 42 unchanged lines hidden --- | 35int 36i386_set_watch(int watchnum, unsigned int watchaddr, int size, 37 int access, struct dbreg * d) 38{ 39 int i; 40 unsigned int mask; 41 42 if (watchnum == -1) { --- 42 unchanged lines hidden --- |