equal
deleted
inserted
replaced
|
1 // Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of the License "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // e32test\misc\t_ramuse.cia |
|
15 // |
|
16 // |
|
17 |
|
18 #include <e32test.h> |
|
19 #include <u32exec.h> |
|
20 |
|
21 #ifdef __EPOC32__ |
|
22 __NAKED__ TUint32 KernelHeapUsed() |
|
23 // |
|
24 // Return the total amount of kernel heap space in use |
|
25 // |
|
26 { |
|
27 #if defined(__CPU_ARM) |
|
28 __SWITCH_TO_ARM; |
|
29 SLOW_EXEC0(EExecCalcKernelHeapUsed); |
|
30 __END_ARM; |
|
31 #elif defined (__CPU_X86) |
|
32 SLOW_EXEC0(EExecCalcKernelHeapUsed); |
|
33 #endif |
|
34 } |
|
35 #endif |
|
36 |