Module Name: src Committed By: thorpej Date: Fri Nov 20 17:48:25 UTC 2020
Modified Files: src/sys/arch/amigappc/amigappc: pic_amiga.c Log Message: malloc(9) -> kmem(9) To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/sys/arch/amigappc/amigappc/pic_amiga.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/amigappc/amigappc/pic_amiga.c diff -u src/sys/arch/amigappc/amigappc/pic_amiga.c:1.4 src/sys/arch/amigappc/amigappc/pic_amiga.c:1.5 --- src/sys/arch/amigappc/amigappc/pic_amiga.c:1.4 Sun Nov 10 21:16:22 2019 +++ src/sys/arch/amigappc/amigappc/pic_amiga.c Fri Nov 20 17:48:25 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: pic_amiga.c,v 1.4 2019/11/10 21:16:22 chs Exp $ */ +/* $NetBSD: pic_amiga.c,v 1.5 2020/11/20 17:48:25 thorpej Exp $ */ /*- * Copyright (c) 2008,2009,2010 Frank Wille. @@ -29,10 +29,10 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: pic_amiga.c,v 1.4 2019/11/10 21:16:22 chs Exp $"); +__KERNEL_RCSID(0, "$NetBSD: pic_amiga.c,v 1.5 2020/11/20 17:48:25 thorpej Exp $"); #include <sys/param.h> -#include <sys/malloc.h> +#include <sys/kmem.h> #include <sys/kernel.h> #include <uvm/uvm_extern.h> @@ -65,7 +65,7 @@ setup_amiga_intr(void) struct amiga_ops *amipic; struct pic_ops *pic; - amipic = malloc(sizeof(struct amiga_ops), M_DEVBUF, M_WAITOK); + amipic = kmem_alloc(sizeof(struct amiga_ops), KM_SLEEP); pic = &amipic->pic; pic->pic_numintrs = MAXIPL;