From 5bd2bdcaec4d63d30f8bfa26c95e96af4337ba3f Mon Sep 17 00:00:00 2001 From: Stefan Ginsberg Date: Thu, 11 Jun 2009 23:36:51 +0000 Subject: [PATCH] - PnpInit: Allocate IopBusTypeGuidList from nonpaged pool as it contains a fast mutex. - MsqCreateMessageQueue: Allocate the message queue from nonpaged pool as it contains a mutex. svn path=/trunk/; revision=41386 --- reactos/ntoskrnl/io/pnpmgr/pnpmgr.c | 2 +- reactos/subsystems/win32/win32k/ntuser/msgqueue.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c b/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c index 6c8eb35602c..f0f7a17d7c9 100644 --- a/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c +++ b/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c @@ -2852,7 +2852,7 @@ PnpInit(VOID) ExInitializeFastMutex(&IopBusTypeGuidListLock); /* Initialize the Bus Type GUID List */ - IopBusTypeGuidList = ExAllocatePool(PagedPool, sizeof(IO_BUS_TYPE_GUID_LIST)); + IopBusTypeGuidList = ExAllocatePool(NonPagedPool, sizeof(IO_BUS_TYPE_GUID_LIST)); if (!IopBusTypeGuidList) { DPRINT1("ExAllocatePool() failed\n"); KeBugCheckEx(PHASE1_INITIALIZATION_FAILED, STATUS_NO_MEMORY, 0, 0, 0); diff --git a/reactos/subsystems/win32/win32k/ntuser/msgqueue.c b/reactos/subsystems/win32/win32k/ntuser/msgqueue.c index cf13da82482..65d030ec2a6 100644 --- a/reactos/subsystems/win32/win32k/ntuser/msgqueue.c +++ b/reactos/subsystems/win32/win32k/ntuser/msgqueue.c @@ -1561,7 +1561,7 @@ MsqCreateMessageQueue(struct _ETHREAD *Thread) { PUSER_MESSAGE_QUEUE MessageQueue; - MessageQueue = (PUSER_MESSAGE_QUEUE)ExAllocatePoolWithTag(PagedPool, + MessageQueue = (PUSER_MESSAGE_QUEUE)ExAllocatePoolWithTag(NonPagedPool, sizeof(USER_MESSAGE_QUEUE) + sizeof(THRDCARETINFO), TAG_MSGQ);