equal
deleted
inserted
replaced
1 // Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2003-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of the License "Eclipse Public License v1.0" |
4 // under the terms of the License "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
379 __KHEAP_MARKEND; |
379 __KHEAP_MARKEND; |
380 } |
380 } |
381 |
381 |
382 GLDEF_C TInt E32Main() |
382 GLDEF_C TInt E32Main() |
383 { |
383 { |
|
384 COMPLETE_POST_BOOT_SYSTEM_TASKS(); |
384 TBuf16<512> cmd; |
385 TBuf16<512> cmd; |
385 User::CommandLine(cmd); |
386 User::CommandLine(cmd); |
386 if(cmd.Length() && TChar(cmd[0]).IsDigit()) |
387 if(cmd.Length() && TChar(cmd[0]).IsDigit()) |
387 { |
388 { |
388 TInt function = -1; |
389 TInt function = -1; |
398 } |
399 } |
399 |
400 |
400 MemModelAttributes=UserSvr::HalFunction(EHalGroupKernel, EKernelHalMemModelInfo, NULL, NULL); |
401 MemModelAttributes=UserSvr::HalFunction(EHalGroupKernel, EKernelHalMemModelInfo, NULL, NULL); |
401 TUint mm=MemModelAttributes&EMemModelTypeMask; |
402 TUint mm=MemModelAttributes&EMemModelTypeMask; |
402 PhysicalCommitSupported = mm!=EMemModelTypeDirect && mm!=EMemModelTypeEmul; |
403 PhysicalCommitSupported = mm!=EMemModelTypeDirect && mm!=EMemModelTypeEmul; |
403 |
|
404 // Turn off lazy dll unloading |
|
405 RLoader l; |
|
406 test(l.Connect()==KErrNone); |
|
407 test(l.CancelLazyDllUnload()==KErrNone); |
|
408 l.Close(); |
|
409 |
404 |
410 test.Title(); |
405 test.Title(); |
411 |
406 |
412 #if defined(__FIXED__) || defined(__SECOND_FIXED__) || defined(__MOVING_FIXED__) |
407 #if defined(__FIXED__) || defined(__SECOND_FIXED__) || defined(__MOVING_FIXED__) |
413 if(mm!=EMemModelTypeMoving) |
408 if(mm!=EMemModelTypeMoving) |