Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/amigappc/amigappc malloc(9) -> kmem(9)



details:   https://anonhg.NetBSD.org/src/rev/d2ffeaeb78f2
branches:  trunk
changeset: 1016412:d2ffeaeb78f2
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Fri Nov 20 17:48:25 2020 +0000

description:
malloc(9) -> kmem(9)

diffstat:

 sys/arch/amigappc/amigappc/pic_amiga.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (31 lines):

diff -r 6e97fd9fbcef -r d2ffeaeb78f2 sys/arch/amigappc/amigappc/pic_amiga.c
--- a/sys/arch/amigappc/amigappc/pic_amiga.c    Fri Nov 20 17:38:05 2020 +0000
+++ b/sys/arch/amigappc/amigappc/pic_amiga.c    Fri Nov 20 17:48:25 2020 +0000
@@ -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 @@
        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;



Home | Main Index | Thread Index | Old Index