Deleted Added
full compact
smp.h (93018) smp.h (99862)
1/*
2 * ----------------------------------------------------------------------------
3 * "THE BEER-WARE LICENSE" (Revision 42):
4 * <phk@FreeBSD.org> wrote this file. As long as you retain this notice you
5 * can do whatever you want with this stuff. If we meet some day, and you think
6 * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
7 * ----------------------------------------------------------------------------
8 *
1/*
2 * ----------------------------------------------------------------------------
3 * "THE BEER-WARE LICENSE" (Revision 42):
4 * <phk@FreeBSD.org> wrote this file. As long as you retain this notice you
5 * can do whatever you want with this stuff. If we meet some day, and you think
6 * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
7 * ----------------------------------------------------------------------------
8 *
9 * $FreeBSD: head/sys/amd64/include/smp.h 93018 2002-03-23 15:09:35Z bde $
9 * $FreeBSD: head/sys/amd64/include/smp.h 99862 2002-07-12 07:56:11Z peter $
10 *
11 */
12
13#ifndef _MACHINE_SMP_H_
14#define _MACHINE_SMP_H_
15
16#ifdef _KERNEL
17

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

46#include <machine/frame.h>
47#include <i386/isa/icu.h>
48#include <i386/isa/intr_machdep.h>
49
50/*
51 * Interprocessor interrupts for SMP.
52 */
53#define IPI_INVLTLB XINVLTLB_OFFSET
10 *
11 */
12
13#ifndef _MACHINE_SMP_H_
14#define _MACHINE_SMP_H_
15
16#ifdef _KERNEL
17

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

46#include <machine/frame.h>
47#include <i386/isa/icu.h>
48#include <i386/isa/intr_machdep.h>
49
50/*
51 * Interprocessor interrupts for SMP.
52 */
53#define IPI_INVLTLB XINVLTLB_OFFSET
54#define IPI_INVLPG XINVLPG_OFFSET
55#define IPI_INVLRNG XINVLRNG_OFFSET
54#define IPI_RENDEZVOUS XRENDEZVOUS_OFFSET
55#define IPI_AST XCPUAST_OFFSET
56#define IPI_STOP XCPUSTOP_OFFSET
57#define IPI_HARDCLOCK XHARDCLOCK_OFFSET
58#define IPI_STATCLOCK XSTATCLOCK_OFFSET
59
60/* global data in mpboot.s */
61extern int bootMP_size;

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

102int apic_src_bus_irq(int, int);
103int apic_int_type(int, int);
104int apic_trigger(int, int);
105int apic_polarity(int, int);
106void assign_apic_irq(int apic, int intpin, int irq);
107void revoke_apic_irq(int irq);
108void bsp_apic_configure(void);
109void init_secondary(void);
56#define IPI_RENDEZVOUS XRENDEZVOUS_OFFSET
57#define IPI_AST XCPUAST_OFFSET
58#define IPI_STOP XCPUSTOP_OFFSET
59#define IPI_HARDCLOCK XHARDCLOCK_OFFSET
60#define IPI_STATCLOCK XSTATCLOCK_OFFSET
61
62/* global data in mpboot.s */
63extern int bootMP_size;

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

104int apic_src_bus_irq(int, int);
105int apic_int_type(int, int);
106int apic_trigger(int, int);
107int apic_polarity(int, int);
108void assign_apic_irq(int apic, int intpin, int irq);
109void revoke_apic_irq(int irq);
110void bsp_apic_configure(void);
111void init_secondary(void);
110void smp_invltlb(void);
111void forward_statclock(void);
112void forwarded_statclock(struct trapframe frame);
113void forward_hardclock(void);
114void forwarded_hardclock(struct trapframe frame);
115void ipi_selected(u_int cpus, u_int ipi);
116void ipi_all(u_int ipi);
117void ipi_all_but_self(u_int ipi);
118void ipi_self(u_int ipi);
119#ifdef APIC_INTR_REORDER
120void set_lapic_isrloc(int, int);
121#endif /* APIC_INTR_REORDER */
112void forward_statclock(void);
113void forwarded_statclock(struct trapframe frame);
114void forward_hardclock(void);
115void forwarded_hardclock(struct trapframe frame);
116void ipi_selected(u_int cpus, u_int ipi);
117void ipi_all(u_int ipi);
118void ipi_all_but_self(u_int ipi);
119void ipi_self(u_int ipi);
120#ifdef APIC_INTR_REORDER
121void set_lapic_isrloc(int, int);
122#endif /* APIC_INTR_REORDER */
123void smp_invlpg(vm_offset_t addr);
124void smp_masked_invlpg(u_int mask, vm_offset_t addr);
125void smp_invlpg_range(vm_offset_t startva, vm_offset_t endva);
126void smp_masked_invlpg_range(u_int mask, vm_offset_t startva,
127 vm_offset_t endva);
128void smp_invltlb(void);
129void smp_masked_invltlb(u_int mask);
122
123/* global data in mpapic.c */
124extern volatile lapic_t lapic;
125extern volatile ioapic_t **ioapic;
126
127/* functions in mpapic.c */
128void apic_dump(char*);
129void apic_initialize(void);

--- 20 unchanged lines hidden ---
130
131/* global data in mpapic.c */
132extern volatile lapic_t lapic;
133extern volatile ioapic_t **ioapic;
134
135/* functions in mpapic.c */
136void apic_dump(char*);
137void apic_initialize(void);

--- 20 unchanged lines hidden ---