Deleted Added
full compact
mp_machdep.c (205064) mp_machdep.c (206717)
1/*-
2 * Copyright (c) 2009 Neelkanth Natu
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) 2009 Neelkanth Natu
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/mips/mips/mp_machdep.c 205064 2010-03-12 03:49:17Z neel $");
28__FBSDID("$FreeBSD: head/sys/mips/mips/mp_machdep.c 206717 2010-04-17 01:17:31Z jmallett $");
29
30#include <sys/param.h>
31#include <sys/systm.h>
32#include <sys/ktr.h>
33#include <sys/proc.h>
34#include <sys/lock.h>
35#include <sys/mutex.h>
36#include <sys/kernel.h>

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

291 ipi_int_mask = hard_int_mask(platform_ipi_intrnum());
292 set_intr_mask(ALL_INT_MASK & ~(ipi_int_mask | clock_int_mask));
293
294 /*
295 * Bootstrap the compare register.
296 */
297 mips_wr_compare(mips_rd_count() + counter_freq / hz);
298
29
30#include <sys/param.h>
31#include <sys/systm.h>
32#include <sys/ktr.h>
33#include <sys/proc.h>
34#include <sys/lock.h>
35#include <sys/mutex.h>
36#include <sys/kernel.h>

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

291 ipi_int_mask = hard_int_mask(platform_ipi_intrnum());
292 set_intr_mask(ALL_INT_MASK & ~(ipi_int_mask | clock_int_mask));
293
294 /*
295 * Bootstrap the compare register.
296 */
297 mips_wr_compare(mips_rd_count() + counter_freq / hz);
298
299 enableintr();
299 intr_enable();
300
301 /* enter the scheduler */
302 sched_throw(NULL);
303
304 panic("scheduler returned us to %s", __func__);
305 /* NOTREACHED */
306}
307

--- 22 unchanged lines hidden ---
300
301 /* enter the scheduler */
302 sched_throw(NULL);
303
304 panic("scheduler returned us to %s", __func__);
305 /* NOTREACHED */
306}
307

--- 22 unchanged lines hidden ---