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
This commit is contained in:
parent
cdc6ad72bb
commit
3e3045f5cf
@ -949,8 +949,9 @@ cbuf_init(void)
|
|||||||
|
|
||||||
// errors are fatal, that's why we don't clean up here
|
// errors are fatal, that's why we don't clean up here
|
||||||
|
|
||||||
sBufferArea = create_area("cbuf region", (void **)&sBuffer, B_ANY_KERNEL_ADDRESS,
|
sBufferArea = create_area("cbuf region", (void **)&sBuffer,
|
||||||
CBUF_REGION_SIZE, B_NO_LOCK, B_KERNEL_READ_AREA | B_KERNEL_WRITE_AREA);
|
B_ANY_KERNEL_ADDRESS, CBUF_REGION_SIZE, B_FULL_LOCK,
|
||||||
|
B_KERNEL_READ_AREA | B_KERNEL_WRITE_AREA);
|
||||||
if (sBufferArea < 0) {
|
if (sBufferArea < 0) {
|
||||||
panic("cbuf_init: error creating cbuf region\n");
|
panic("cbuf_init: error creating cbuf region\n");
|
||||||
return B_NO_MEMORY;
|
return B_NO_MEMORY;
|
||||||
|
Loading…
Reference in New Issue
Block a user