summaryrefslogtreecommitdiffstats
path: root/src/kernel/pagemgr.C
diff options
context:
space:
mode:
authorDoug Gilbert <dgilbert@us.ibm.com>2012-04-11 11:10:59 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2012-04-24 10:00:24 -0500
commit5631ede5d2e63fa8585505eb29c6d86f420c9344 (patch)
tree6771affa3d0233f7ef07f2d1273e8d32863416b0 /src/kernel/pagemgr.C
parentf2dd13f86d803e241b835c5ca2a2a14d583ba01e (diff)
downloadtalos-hostboot-5631ede5d2e63fa8585505eb29c6d86f420c9344.tar.gz
talos-hostboot-5631ede5d2e63fa8585505eb29c6d86f420c9344.zip
Mailbox service provider - addtional error handling
RTC: 39989 Change-Id: Ib8bf236f387b7eddff53074adc80b9cb12d04360 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/884 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/kernel/pagemgr.C')
-rw-r--r--src/kernel/pagemgr.C5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/kernel/pagemgr.C b/src/kernel/pagemgr.C
index 83e99b9b3..9f2b87b08 100644
--- a/src/kernel/pagemgr.C
+++ b/src/kernel/pagemgr.C
@@ -111,7 +111,7 @@ void* PageManager::_allocatePage(size_t n)
int retries = 0;
page_t* page = (page_t*)NULL;
- while ((page == NULL) && (retries < 3))
+ while ((page == NULL) && (retries < 6))
{
page = pop_bucket(which_bucket);
retries++;
@@ -121,7 +121,8 @@ void* PageManager::_allocatePage(size_t n)
{
// TODO: Add abort instead.
task_t* t = TaskManager::getCurrentTask();
- printk("Insufficient memory for alloc of size %zd on tid=%d!\n", n, t->tid);
+ printk("Insufficient memory for alloc of size %zd page on tid=%d!\n", n, t->tid);
+ printk("Pages available=%ld\n",iv_pagesAvail);
while(1);
}
OpenPOWER on IntegriCloud