Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/sys/arch/amiga/amiga/machdep.c,v rcsdiff: /ftp/cvs/cvsroot/src/sys/arch/amiga/amiga/machdep.c,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.199 retrieving revision 1.200 diff -u -p -r1.199 -r1.200 --- src/sys/arch/amiga/amiga/machdep.c 2006/10/23 15:15:52 1.199 +++ src/sys/arch/amiga/amiga/machdep.c 2006/12/21 15:55:21 1.200 @@ -1,4 +1,4 @@ -/* $NetBSD: machdep.c,v 1.199 2006/10/23 15:15:52 yamt Exp $ */ +/* $NetBSD: machdep.c,v 1.200 2006/12/21 15:55:21 yamt Exp $ */ /* * Copyright (c) 1982, 1986, 1990 The Regents of the University of California. @@ -85,7 +85,7 @@ #include "opt_panicbutton.h" #include -__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.199 2006/10/23 15:15:52 yamt Exp $"); +__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.200 2006/12/21 15:55:21 yamt Exp $"); #include #include @@ -168,11 +168,6 @@ void fdintr(int); volatile unsigned int interrupt_depth = 0; -/* - * patched by some devices at attach time (currently, only the coms) - */ -u_int16_t amiga_serialspl = PSL_S|PSL_IPL4; - struct vm_map *exec_map = NULL; struct vm_map *mb_map = NULL; struct vm_map *phys_map = NULL; @@ -1621,3 +1616,23 @@ int _spllkm7() { #endif #endif + +int ipl2spl_table[_NIPL] = { + [IPL_NONE] = PSL_IPL0|PSL_S, + [IPL_SOFTCLOCK] = PSL_IPL1|PSL_S, + [IPL_BIO] = PSL_IPL3|PSL_S, + [IPL_NET] = PSL_IPL3|PSL_S, + [IPL_TTY] = PSL_IPL4|PSL_S, + [IPL_SERIAL] = PSL_IPL5|PSL_S, + [IPL_VM] = PSL_IPL4|PSL_S, + [IPL_SERIAL] = PSL_IPL4|PSL_S, /* patched by some devices at attach + time (currently, only the coms) */ + [IPL_AUDIO] = PSL_IPL6|PSL_S, +#if defined(LEV6_DEFER) + [IPL_CLOCK] = PSL_IPL4|PSL_S, + [IPL_HIGH] = PSL_IPL4|PSL_S, +#else /* defined(LEV6_DEFER) */ + [IPL_CLOCK] = PSL_IPL6|PSL_S, + [IPL_HIGH] = PSL_IPL7|PSL_S, +#endif /* defined(LEV6_DEFER) */ +};