machdep_intr.c (d60840138f6292c1ceeb177ebe797eca0b2749da) | machdep_intr.c (59c3cb81c1769fdb6c840c971df129b52f4a848d) |
---|---|
1/*- 2 * Copyright (c) 2015-2016 Svatopluk Kraus 3 * Copyright (c) 2015-2016 Michal Meloun 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 35 unchanged lines hidden (view full) --- 44#include <sys/smp.h> 45 46#include <machine/atomic.h> 47#include <machine/bus.h> 48#include <machine/intr.h> 49#include <machine/cpu.h> 50#include <machine/smp.h> 51 | 1/*- 2 * Copyright (c) 2015-2016 Svatopluk Kraus 3 * Copyright (c) 2015-2016 Michal Meloun 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 35 unchanged lines hidden (view full) --- 44#include <sys/smp.h> 45 46#include <machine/atomic.h> 47#include <machine/bus.h> 48#include <machine/intr.h> 49#include <machine/cpu.h> 50#include <machine/smp.h> 51 |
52#ifdef ARM_INTRNG | 52#ifdef INTRNG |
53#include "pic_if.h" 54 55#ifdef SMP 56#define INTR_IPI_NAMELEN (MAXCOMLEN + 1) 57 58struct intr_ipi { 59 intr_ipi_handler_t * ii_handler; 60 void * ii_handler_arg; --- 65 unchanged lines hidden (view full) --- 126void 127arm_irq_memory_barrier(uintptr_t irq) 128{ 129 130 dsb(); 131 cpu_l2cache_drain_writebuf(); 132} 133 | 53#include "pic_if.h" 54 55#ifdef SMP 56#define INTR_IPI_NAMELEN (MAXCOMLEN + 1) 57 58struct intr_ipi { 59 intr_ipi_handler_t * ii_handler; 60 void * ii_handler_arg; --- 65 unchanged lines hidden (view full) --- 126void 127arm_irq_memory_barrier(uintptr_t irq) 128{ 129 130 dsb(); 131 cpu_l2cache_drain_writebuf(); 132} 133 |
134#ifdef ARM_INTRNG | 134#ifdef INTRNG |
135#ifdef SMP 136static inline struct intr_ipi * 137intr_ipi_lookup(u_int ipi) 138{ 139 140 if (ipi >= INTR_IPI_COUNT) 141 panic("%s: no such IPI %u", __func__, ipi); 142 --- 90 unchanged lines hidden --- | 135#ifdef SMP 136static inline struct intr_ipi * 137intr_ipi_lookup(u_int ipi) 138{ 139 140 if (ipi >= INTR_IPI_COUNT) 141 panic("%s: no such IPI %u", __func__, ipi); 142 --- 90 unchanged lines hidden --- |