Deleted Added
full compact
smp.h (183439) smp.h (192067)
1/*-
2 * Copyright (c) 2008 Marcel Moolenaar
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 *

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

18 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 *
1/*-
2 * Copyright (c) 2008 Marcel Moolenaar
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 *

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

18 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 *
26 * $FreeBSD: head/sys/powerpc/include/smp.h 183439 2008-09-28 18:34:14Z marius $
26 * $FreeBSD: head/sys/powerpc/include/smp.h 192067 2009-05-14 00:34:26Z nwhitehorn $
27 */
28
29#ifndef _MACHINE_SMP_H_
30#define _MACHINE_SMP_H_
31
32#ifdef _KERNEL
33
34#define IPI_AST 0

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

41void ipi_all_but_self(int ipi);
42void ipi_selected(cpumask_t cpus, int ipi);
43
44struct cpuref {
45 uintptr_t cr_hwref;
46 u_int cr_cpuid;
47};
48
27 */
28
29#ifndef _MACHINE_SMP_H_
30#define _MACHINE_SMP_H_
31
32#ifdef _KERNEL
33
34#define IPI_AST 0

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

41void ipi_all_but_self(int ipi);
42void ipi_selected(cpumask_t cpus, int ipi);
43
44struct cpuref {
45 uintptr_t cr_hwref;
46 u_int cr_cpuid;
47};
48
49int powerpc_smp_first_cpu(struct cpuref *);
50int powerpc_smp_get_bsp(struct cpuref *);
51int powerpc_smp_next_cpu(struct cpuref *);
52int powerpc_smp_start_cpu(struct pcpu *);
53
54void pmap_cpu_bootstrap(int);
55uint32_t cpudep_ap_bootstrap(void);
56void machdep_ap_bootstrap(void);
57
58#endif /* !LOCORE */
59#endif /* _KERNEL */
60#endif /* !_MACHINE_SMP_H */
49void pmap_cpu_bootstrap(int);
50uint32_t cpudep_ap_bootstrap(void);
51void machdep_ap_bootstrap(void);
52
53#endif /* !LOCORE */
54#endif /* _KERNEL */
55#endif /* !_MACHINE_SMP_H */