Deleted Added
full compact
k6_mem.c (185341) k6_mem.c (189903)
1/*-
2 * Copyright (c) 1999 Brian Fundakowski Feldman
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 * 1. Redistributions of source code must retain the above copyright

--- 11 unchanged lines hidden (view full) ---

20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1999 Brian Fundakowski Feldman
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 * 1. Redistributions of source code must retain the above copyright

--- 11 unchanged lines hidden (view full) ---

20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
28__FBSDID("$FreeBSD: head/sys/i386/i386/k6_mem.c 185341 2008-11-26 19:25:13Z jkim $");
28__FBSDID("$FreeBSD: head/sys/i386/i386/k6_mem.c 189903 2009-03-17 00:48:11Z jkim $");
29
30#include <sys/param.h>
31#include <sys/kernel.h>
32#include <sys/systm.h>
33#include <sys/malloc.h>
34#include <sys/memrange.h>
35
36#include <machine/cputypes.h>

--- 28 unchanged lines hidden (view full) ---

65 int *);
66static __inline int k6_mrmake(struct mem_range_desc *, u_int32_t *);
67static void k6_mem_drvinit(void *);
68
69static struct mem_range_ops k6_mrops =
70{
71 k6_mrinit,
72 k6_mrset,
29
30#include <sys/param.h>
31#include <sys/kernel.h>
32#include <sys/systm.h>
33#include <sys/malloc.h>
34#include <sys/memrange.h>
35
36#include <machine/cputypes.h>

--- 28 unchanged lines hidden (view full) ---

65 int *);
66static __inline int k6_mrmake(struct mem_range_desc *, u_int32_t *);
67static void k6_mem_drvinit(void *);
68
69static struct mem_range_ops k6_mrops =
70{
71 k6_mrinit,
72 k6_mrset,
73 NULL,
73 NULL
74};
75
76static __inline int
77k6_mrmake(struct mem_range_desc *desc, u_int32_t *mtrr)
78{
79 u_int32_t len = 0, wc, uc;
80 register int bit;

--- 108 unchanged lines hidden ---
74 NULL
75};
76
77static __inline int
78k6_mrmake(struct mem_range_desc *desc, u_int32_t *mtrr)
79{
80 u_int32_t len = 0, wc, uc;
81 register int bit;

--- 108 unchanged lines hidden ---