summaryrefslogtreecommitdiffstats
path: root/src/kernel/pagemgr.C
diff options
context:
space:
mode:
authorDoug Gilbert <dgilbert@us.ibm.com>2012-05-30 12:11:22 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2012-06-06 16:42:08 -0500
commit27736382210dc00505de777d0f978a0a8cb3e594 (patch)
tree411e3faa39d15664e850c10862e044b62bcbf2c0 /src/kernel/pagemgr.C
parentc1e6a6e6f33be966501aaca868c5f930b5712dca (diff)
downloadtalos-hostboot-27736382210dc00505de777d0f978a0a8cb3e594.tar.gz
talos-hostboot-27736382210dc00505de777d0f978a0a8cb3e594.zip
getCurrentTask() can't be called from user space
RTC: 42647 Change-Id: If420c26e2eee2f6abdb27d59b3cadf57155d39b8 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/1124 Tested-by: Jenkins Server Reviewed-by: ADAM R. MUHLE <armuhle@us.ibm.com> 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 9f2b87b08..cf9287a27 100644
--- a/src/kernel/pagemgr.C
+++ b/src/kernel/pagemgr.C
@@ -119,8 +119,9 @@ void* PageManager::_allocatePage(size_t n)
if (NULL == page)
{
- // TODO: Add abort instead.
- task_t* t = TaskManager::getCurrentTask();
+ // TODO: Add abort instead?
+ register task_t* t;
+ asm volatile("mr %0, 13" : "=r"(t));
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