From cfff6897b2e159820b8347eab23eee52a2cb1e62 Mon Sep 17 00:00:00 2001 From: weissms Date: Wed, 2 Nov 2011 17:59:13 +0000 Subject: [PATCH] Build fix, krnAllocMem macro has been removed. git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@42206 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- arch/i386-all/kernel/createcontext.c | 2 +- arch/x86_64-all/kernel/createcontext.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/i386-all/kernel/createcontext.c b/arch/i386-all/kernel/createcontext.c index 378254be06..4146ab1c21 100644 --- a/arch/i386-all/kernel/createcontext.c +++ b/arch/i386-all/kernel/createcontext.c @@ -22,7 +22,7 @@ AROS_LH0(void *, KrnCreateContext, * On native ports AROSCPUContext can be simply #define'd to ExceptionContext, * so we refer struct AROSCPUContext only for size calculation. */ - ctx = krnAllocMem(KernelBase->kb_ContextSize, 0); + ctx = AllocMem(KernelBase->kb_ContextSize, MEMF_PUBLIC|MEMF_CLEAR); if (ctx) { IPTR fpdata = (IPTR)ctx + sizeof(struct AROSCPUContext); diff --git a/arch/x86_64-all/kernel/createcontext.c b/arch/x86_64-all/kernel/createcontext.c index cf10291388..1efe3d4431 100644 --- a/arch/x86_64-all/kernel/createcontext.c +++ b/arch/x86_64-all/kernel/createcontext.c @@ -25,7 +25,7 @@ AROS_LH0(void *, KrnCreateContext, * On native ports AROSCPUContext can be simply #define'd to ExceptionContext, * so we refer to struct AROSCPUContext only for size calculation. */ - ctx = krnAllocMem(KernelBase->kb_ContextSize, 0); + ctx = AllocMem(KernelBase->kb_ContextSize, MEMF_PUBLIC|MEMF_CLEAR); if (ctx) { UBYTE current_xmm[512+15]; -- 2.11.4.GIT