Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/mips/sibyte/dev malloc(9) -> kmem(9)



details:   https://anonhg.NetBSD.org/src/rev/b55467008fd1
branches:  trunk
changeset: 949194:b55467008fd1
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Mon Jan 04 18:19:53 2021 +0000

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

diffstat:

 sys/arch/mips/sibyte/dev/sbjcn.c |  8 ++++----
 sys/arch/mips/sibyte/dev/sbscn.c |  8 ++++----
 2 files changed, 8 insertions(+), 8 deletions(-)

diffs (72 lines):

diff -r 12c1823ca6ef -r b55467008fd1 sys/arch/mips/sibyte/dev/sbjcn.c
--- a/sys/arch/mips/sibyte/dev/sbjcn.c  Mon Jan 04 18:09:01 2021 +0000
+++ b/sys/arch/mips/sibyte/dev/sbjcn.c  Mon Jan 04 18:19:53 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sbjcn.c,v 1.31 2019/11/10 21:16:30 chs Exp $ */
+/* $NetBSD: sbjcn.c,v 1.32 2021/01/04 18:19:53 thorpej Exp $ */
 
 /*
  * Copyright 2000, 2001
@@ -103,7 +103,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sbjcn.c,v 1.31 2019/11/10 21:16:30 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sbjcn.c,v 1.32 2021/01/04 18:19:53 thorpej Exp $");
 
 #define        SBJCN_DEBUG
 
@@ -123,7 +123,7 @@
 #include <sys/syslog.h>
 #include <sys/types.h>
 #include <sys/device.h>
-#include <sys/malloc.h>
+#include <sys/kmem.h>
 #include <sys/vnode.h>
 #include <sys/kauth.h>
 
@@ -322,7 +322,7 @@
        tp->t_hwiflow = sbjcn_hwiflow;
 
        ch->ch_tty = tp;
-       ch->ch_rbuf = malloc(sbjcn_rbuf_size << 1, M_DEVBUF, M_WAITOK);
+       ch->ch_rbuf = kmem_alloc(sbjcn_rbuf_size << 1, KM_SLEEP);
        ch->ch_ebuf = ch->ch_rbuf + (sbjcn_rbuf_size << 1);
 
        tty_attach(tp);
diff -r 12c1823ca6ef -r b55467008fd1 sys/arch/mips/sibyte/dev/sbscn.c
--- a/sys/arch/mips/sibyte/dev/sbscn.c  Mon Jan 04 18:09:01 2021 +0000
+++ b/sys/arch/mips/sibyte/dev/sbscn.c  Mon Jan 04 18:19:53 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sbscn.c,v 1.44 2019/11/10 21:16:30 chs Exp $ */
+/* $NetBSD: sbscn.c,v 1.45 2021/01/04 18:19:53 thorpej Exp $ */
 
 /*
  * Copyright 2000, 2001
@@ -109,7 +109,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sbscn.c,v 1.44 2019/11/10 21:16:30 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sbscn.c,v 1.45 2021/01/04 18:19:53 thorpej Exp $");
 
 #define        SBSCN_DEBUG
 
@@ -133,7 +133,7 @@
 #include <sys/syslog.h>
 #include <sys/types.h>
 #include <sys/device.h>
-#include <sys/malloc.h>
+#include <sys/kmem.h>
 #include <sys/vnode.h>
 #include <sys/kauth.h>
 #include <sys/intr.h>
@@ -352,7 +352,7 @@
        tp->t_hwiflow = sbscn_hwiflow;
 
        ch->ch_tty = tp;
-       ch->ch_rbuf = malloc(sbscn_rbuf_size << 1, M_DEVBUF, M_WAITOK);
+       ch->ch_rbuf = kmem_alloc(sbscn_rbuf_size << 1, KM_SLEEP);
        ch->ch_ebuf = ch->ch_rbuf + (sbscn_rbuf_size << 1);
 
        tty_attach(tp);



Home | Main Index | Thread Index | Old Index