Deleted Added
full compact
xlp_machdep.c (224110) xlp_machdep.c (224115)
1/*-
2 * Copyright 2003-2011 Netlogic Microsystems (Netlogic). All rights
3 * reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met:
8 *

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

23 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
26 * THE POSSIBILITY OF SUCH DAMAGE.
27 *
28 * NETLOGIC_BSD */
29
30#include <sys/cdefs.h>
1/*-
2 * Copyright 2003-2011 Netlogic Microsystems (Netlogic). All rights
3 * reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met:
8 *

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

23 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
26 * THE POSSIBILITY OF SUCH DAMAGE.
27 *
28 * NETLOGIC_BSD */
29
30#include <sys/cdefs.h>
31__FBSDID("$FreeBSD: head/sys/mips/nlm/xlp_machdep.c 224110 2011-07-16 19:35:44Z jchandra $");
31__FBSDID("$FreeBSD: head/sys/mips/nlm/xlp_machdep.c 224115 2011-07-16 20:31:29Z jchandra $");
32
33#include "opt_ddb.h"
34
35#include <sys/param.h>
36#include <sys/bus.h>
37#include <sys/conf.h>
38#include <sys/rtprio.h>
39#include <sys/systm.h>

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

209 xlp_enable_threads(xlp_mmuval);
210#endif
211 /* setup for the startup core */
212 xlp_setup_mmu();
213 return;
214
215unsupp:
216 printf("ERROR : Unsupported CPU mask [use 1,2 or 4 threads per core].\n"
32
33#include "opt_ddb.h"
34
35#include <sys/param.h>
36#include <sys/bus.h>
37#include <sys/conf.h>
38#include <sys/rtprio.h>
39#include <sys/systm.h>

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

209 xlp_enable_threads(xlp_mmuval);
210#endif
211 /* setup for the startup core */
212 xlp_setup_mmu();
213 return;
214
215unsupp:
216 printf("ERROR : Unsupported CPU mask [use 1,2 or 4 threads per core].\n"
217 "\tcore0 thread mask [%lx], boot cpu mask [%lx]\n"
218 "\tUsing default, 16 TLB entries per CPU, split mode\n",
217 "\tcore0 thread mask [%lx], boot cpu mask [%lx].\n",
219 (u_long)core0_thr_mask, (u_long)cpu_map);
220 panic("Invalid CPU mask - halting.\n");
221 return;
222}
223
224static void
225xlp_set_boot_flags(void)
226{

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

490 /*
491 * XLP specific post initialization
492 * initialize other on chip stuff
493 */
494 nlm_board_info_setup();
495 xlp_pic_init();
496
497 mips_timer_init_params(xlp_cpu_frequency, 0);
218 (u_long)core0_thr_mask, (u_long)cpu_map);
219 panic("Invalid CPU mask - halting.\n");
220 return;
221}
222
223static void
224xlp_set_boot_flags(void)
225{

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

489 /*
490 * XLP specific post initialization
491 * initialize other on chip stuff
492 */
493 nlm_board_info_setup();
494 xlp_pic_init();
495
496 mips_timer_init_params(xlp_cpu_frequency, 0);
498
499 printf("Platform specific startup now completes\n");
500}
501
502void
503platform_cpu_init()
504{
505}
506
507void

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

625{
626
627 return (IRQ_IPI);
628}
629
630void
631platform_ipi_send(int cpuid)
632{
497}
498
499void
500platform_cpu_init()
501{
502}
503
504void

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

622{
623
624 return (IRQ_IPI);
625}
626
627void
628platform_ipi_send(int cpuid)
629{
630
633 nlm_pic_send_ipi(xlp_pic_base, 0, xlp_cpuid_to_hwtid[cpuid],
634 platform_ipi_intrnum(), 0);
635}
636
637void
638platform_ipi_clear(void)
639{
640}

--- 27 unchanged lines hidden ---
631 nlm_pic_send_ipi(xlp_pic_base, 0, xlp_cpuid_to_hwtid[cpuid],
632 platform_ipi_intrnum(), 0);
633}
634
635void
636platform_ipi_clear(void)
637{
638}

--- 27 unchanged lines hidden ---