From 3e3045f5cf9bbe2a4f33a8a99d50b2107ee62578 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Thu, 24 Jul 2008 23:06:58 +0000 Subject: [PATCH] Create the cbuf area full locked for the time being. We can't create it swappable, since that happens before we can initialize swap support (which requires the later initialized VFS). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26623 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/util/cbuf.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/system/kernel/util/cbuf.c b/src/system/kernel/util/cbuf.c index 25c31ff84d..636da5b08c 100644 --- a/src/system/kernel/util/cbuf.c +++ b/src/system/kernel/util/cbuf.c @@ -949,8 +949,9 @@ cbuf_init(void) // errors are fatal, that's why we don't clean up here - sBufferArea = create_area("cbuf region", (void **)&sBuffer, B_ANY_KERNEL_ADDRESS, - CBUF_REGION_SIZE, B_NO_LOCK, B_KERNEL_READ_AREA | B_KERNEL_WRITE_AREA); + sBufferArea = create_area("cbuf region", (void **)&sBuffer, + B_ANY_KERNEL_ADDRESS, CBUF_REGION_SIZE, B_FULL_LOCK, + B_KERNEL_READ_AREA | B_KERNEL_WRITE_AREA); if (sBufferArea < 0) { panic("cbuf_init: error creating cbuf region\n"); return B_NO_MEMORY;