Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/macppc/macppc g/c some leftovers from when we had s...
details: https://anonhg.NetBSD.org/src/rev/81f1eba11315
branches: trunk
changeset: 816064:81f1eba11315
user: macallan <macallan%NetBSD.org@localhost>
date: Wed Jun 15 14:32:03 2016 +0000
description:
g/c some leftovers from when we had static assignments of edge or level
triggers
diffstat:
sys/arch/macppc/macppc/pic_ohare.c | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diffs (42 lines):
diff -r 0b834bff7c4d -r 81f1eba11315 sys/arch/macppc/macppc/pic_ohare.c
--- a/sys/arch/macppc/macppc/pic_ohare.c Wed Jun 15 14:11:15 2016 +0000
+++ b/sys/arch/macppc/macppc/pic_ohare.c Wed Jun 15 14:32:03 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pic_ohare.c,v 1.12 2013/04/21 15:42:11 kiyohara Exp $ */
+/* $NetBSD: pic_ohare.c,v 1.13 2016/06/15 14:32:03 macallan Exp $ */
/*-
* Copyright (c) 2007 Michael Lorenz
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pic_ohare.c,v 1.12 2013/04/21 15:42:11 kiyohara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pic_ohare.c,v 1.13 2016/06/15 14:32:03 macallan Exp $");
#include "opt_interrupt.h"
@@ -68,8 +68,6 @@
#define INT_ENABLE_REG ((uint32_t)pic->pic_cookie + 0x24)
#define INT_CLEAR_REG ((uint32_t)pic->pic_cookie + 0x28)
#define INT_LEVEL_REG ((uint32_t)pic->pic_cookie + 0x2c)
-#define INT_LEVEL_MASK_OHARE 0x1ff00000
-#define INT_LEVEL_MASK_GC 0x3ff00000
int init_ohare(void)
{
@@ -135,12 +133,12 @@
if (is_gc) {
strcpy(pic->pic_name, "gc");
- ohare->level_mask = 0;
} else {
strcpy(pic->pic_name, "ohare");
- ohare->level_mask = 0;
}
+ ohare->level_mask = 0;
+
for (i = 0; i < OHARE_NIRQ; i++)
ohare->priority_masks[i] = 0;
for (i = 0; i < NIPL; i++)
Home |
Main Index |
Thread Index |
Old Index