Update contrib.
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
18 #define FILE_ID 0x594D777D
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;
46 GLDEF_C void BootFault(TUint aId, TInt aLine, char aFileName[])
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);