Deleted Added
full compact
subr_pcpu.c (208392) subr_pcpu.c (209059)
1/*-
2 * Copyright (c) 2001 Wind River Systems, Inc.
3 * All rights reserved.
4 * Written by: John Baldwin <jhb@FreeBSD.org>
5 *
6 * Copyright (c) 2009 Jeffrey Roberson <jeff@freebsd.org>
7 * All rights reserved.
8 *

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

41 * gaps in the mappings.
42 * - The platform sets the value of MAXCPU in <machine/param.h>.
43 * - It is suggested, but not required, that in the non-SMP case, the
44 * platform define MAXCPU to be 1 and define the logical ID of the
45 * sole CPU as 0.
46 */
47
48#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2001 Wind River Systems, Inc.
3 * All rights reserved.
4 * Written by: John Baldwin <jhb@FreeBSD.org>
5 *
6 * Copyright (c) 2009 Jeffrey Roberson <jeff@freebsd.org>
7 * All rights reserved.
8 *

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

41 * gaps in the mappings.
42 * - The platform sets the value of MAXCPU in <machine/param.h>.
43 * - It is suggested, but not required, that in the non-SMP case, the
44 * platform define MAXCPU to be 1 and define the logical ID of the
45 * sole CPU as 0.
46 */
47
48#include <sys/cdefs.h>
49__FBSDID("$FreeBSD: head/sys/kern/subr_pcpu.c 208392 2010-05-21 17:17:56Z jhb $");
49__FBSDID("$FreeBSD: head/sys/kern/subr_pcpu.c 209059 2010-06-11 18:46:34Z jhb $");
50
51#include "opt_ddb.h"
52
53#include <sys/param.h>
54#include <sys/systm.h>
55#include <sys/sysctl.h>
56#include <sys/linker_set.h>
57#include <sys/lock.h>

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

312 return (SYSCTL_OUT(req, &count, sizeof(count)));
313}
314
315#ifdef DDB
316DB_SHOW_COMMAND(dpcpu_off, db_show_dpcpu_off)
317{
318 int id;
319
50
51#include "opt_ddb.h"
52
53#include <sys/param.h>
54#include <sys/systm.h>
55#include <sys/sysctl.h>
56#include <sys/linker_set.h>
57#include <sys/lock.h>

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

312 return (SYSCTL_OUT(req, &count, sizeof(count)));
313}
314
315#ifdef DDB
316DB_SHOW_COMMAND(dpcpu_off, db_show_dpcpu_off)
317{
318 int id;
319
320 for (id = 0; id <= mp_maxid; id++) {
321 if (CPU_ABSENT(id))
322 continue;
320 CPU_FOREACH(id) {
323 db_printf("dpcpu_off[%2d] = 0x%jx (+ DPCPU_START = %p)\n",
324 id, (uintmax_t)dpcpu_off[id],
325 (void *)(uintptr_t)(dpcpu_off[id] + DPCPU_START));
326 }
327}
328
329static void
330show_pcpu(struct pcpu *pc)

--- 71 unchanged lines hidden ---
321 db_printf("dpcpu_off[%2d] = 0x%jx (+ DPCPU_START = %p)\n",
322 id, (uintmax_t)dpcpu_off[id],
323 (void *)(uintptr_t)(dpcpu_off[id] + DPCPU_START));
324 }
325}
326
327static void
328show_pcpu(struct pcpu *pc)

--- 71 unchanged lines hidden ---