sl@0
|
1 |
/*
|
sl@0
|
2 |
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
3 |
* All rights reserved.
|
sl@0
|
4 |
* This component and the accompanying materials are made available
|
sl@0
|
5 |
* under the terms of the License "Eclipse Public License v1.0"
|
sl@0
|
6 |
* which accompanies this distribution, and is available
|
sl@0
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
8 |
*
|
sl@0
|
9 |
* Initial Contributors:
|
sl@0
|
10 |
* Nokia Corporation - initial contribution.
|
sl@0
|
11 |
*
|
sl@0
|
12 |
* Contributors:
|
sl@0
|
13 |
*
|
sl@0
|
14 |
* Description:
|
sl@0
|
15 |
*
|
sl@0
|
16 |
*/
|
sl@0
|
17 |
|
sl@0
|
18 |
#define FILE_ID 0x594D777D
|
sl@0
|
19 |
#include "bootldr.h"
|
sl@0
|
20 |
|
sl@0
|
21 |
GLDEF_D TInt LoadDrive;
|
sl@0
|
22 |
GLDEF_D TInt LoadFile;
|
sl@0
|
23 |
GLDEF_D TInt LoadSize;
|
sl@0
|
24 |
GLDEF_D TInt ImageSize;
|
sl@0
|
25 |
GLDEF_D TInt ImageReadProgress;
|
sl@0
|
26 |
GLDEF_D TBool ImageHeaderPresent=EFalse;
|
sl@0
|
27 |
GLDEF_D TBool ImageZip=EFalse;
|
sl@0
|
28 |
GLDEF_D TBool LoadToFlash=EFalse;
|
sl@0
|
29 |
GLDEF_D TBool FlashBootLoader=EFalse;
|
sl@0
|
30 |
GLDEF_D TInt FileSize;
|
sl@0
|
31 |
GLDEF_D TLoadDevice LoadDevice;
|
sl@0
|
32 |
GLDEF_D TInputFunc InputFunction;
|
sl@0
|
33 |
GLDEF_D TCloseInputFunc CloseInputFunction;
|
sl@0
|
34 |
GLDEF_D TBuf<256> FileName;
|
sl@0
|
35 |
GLDEF_D TUint32 RamBootPhys;
|
sl@0
|
36 |
GLDEF_D TUint32 * ActualDestinationAddress;
|
sl@0
|
37 |
GLDEF_D TInt SerialDownloadPort;
|
sl@0
|
38 |
GLDEF_D TBps SerialBaud;
|
sl@0
|
39 |
GLDEF_D RFile bootFile;
|
sl@0
|
40 |
GLDEF_D TBool ImageDeflated=EFalse;
|
sl@0
|
41 |
GLDEF_D TBool RomLoaderHeaderExists=ETrue;
|
sl@0
|
42 |
GLDEF_D TBusLocalDrive LocDrv;
|
sl@0
|
43 |
GLDEF_D TBool LocDrvChg;
|
sl@0
|
44 |
GLDEF_D TInt64 LocDrvPos;
|
sl@0
|
45 |
|
sl@0
|
46 |
GLDEF_C void BootFault(TUint aId, TInt aLine, char aFileName[])
|
sl@0
|
47 |
{
|
sl@0
|
48 |
PrintToScreen(_L("BOOTFAULT: 0x%X in file %s @ line %d"), aId, aFileName, aLine);
|
sl@0
|
49 |
User::After(1000); // delay to let the LCD draw the message
|
sl@0
|
50 |
RDebug::Print(_L("BOOTFAULT: 0x%X in file %s @ line %d"), aId, aFileName, aLine);
|
sl@0
|
51 |
User::LeaveIfError(KErrUnknown);
|
sl@0
|
52 |
// Kern::Fault((const char*)buf.Ptr(),aLine);
|
sl@0
|
53 |
}
|
sl@0
|
54 |
|