Deleted Added
full compact
mips_pic.c (299117) mips_pic.c (300149)
1/*-
2 * Copyright (c) 2015 Alexander Kabaev
3 * Copyright (c) 2006 Oleksandr Tymoshenko
4 * Copyright (c) 2002-2004 Juli Mallett <jmallett@FreeBSD.org>
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 * SUCH DAMAGE.
27 *
28 */
29
30#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2015 Alexander Kabaev
3 * Copyright (c) 2006 Oleksandr Tymoshenko
4 * Copyright (c) 2002-2004 Juli Mallett <jmallett@FreeBSD.org>
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 * SUCH DAMAGE.
27 *
28 */
29
30#include <sys/cdefs.h>
31__FBSDID("$FreeBSD: head/sys/mips/mips/mips_pic.c 299117 2016-05-05 13:31:19Z skra $");
31__FBSDID("$FreeBSD: head/sys/mips/mips/mips_pic.c 300149 2016-05-18 15:05:44Z andrew $");
32
33#include "opt_platform.h"
34#include "opt_hwpmc_hooks.h"
35
36#include <sys/param.h>
37#include <sys/systm.h>
38#include <sys/bus.h>
39#include <sys/kernel.h>

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

218 device_printf(dev, "could not register PIC ISRCs\n");
219 goto cleanup;
220 }
221
222 /*
223 * Now, when everything is initialized, it's right time to
224 * register interrupt controller to interrupt framefork.
225 */
32
33#include "opt_platform.h"
34#include "opt_hwpmc_hooks.h"
35
36#include <sys/param.h>
37#include <sys/systm.h>
38#include <sys/bus.h>
39#include <sys/kernel.h>

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

218 device_printf(dev, "could not register PIC ISRCs\n");
219 goto cleanup;
220 }
221
222 /*
223 * Now, when everything is initialized, it's right time to
224 * register interrupt controller to interrupt framefork.
225 */
226 if (intr_pic_register(dev, xref) != 0) {
226 if (intr_pic_register(dev, xref) == NULL) {
227 device_printf(dev, "could not register PIC\n");
228 goto cleanup;
229 }
230
231 /* Claim our root controller role */
232 if (intr_pic_claim_root(dev, xref, mips_pic_intr, sc, 0) != 0) {
233 device_printf(dev, "could not set PIC as a root\n");
234 intr_pic_deregister(dev, xref);

--- 188 unchanged lines hidden ---
227 device_printf(dev, "could not register PIC\n");
228 goto cleanup;
229 }
230
231 /* Claim our root controller role */
232 if (intr_pic_claim_root(dev, xref, mips_pic_intr, sc, 0) != 0) {
233 device_printf(dev, "could not set PIC as a root\n");
234 intr_pic_deregister(dev, xref);

--- 188 unchanged lines hidden ---