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