equal
deleted
inserted
replaced
25 const TUint KHtCustomRestartMax = 0xff; |
25 const TUint KHtCustomRestartMax = 0xff; |
26 const TUint KHtCustomRestartShift = 8; |
26 const TUint KHtCustomRestartShift = 8; |
27 const TUint KHtCustomRestartMask = KHtCustomRestartMax << KHtCustomRestartShift; |
27 const TUint KHtCustomRestartMask = KHtCustomRestartMax << KHtCustomRestartShift; |
28 |
28 |
29 const TUint KHtRestartStartupModesMax = 0xf; // Variable, platform dependant |
29 const TUint KHtRestartStartupModesMax = 0xf; // Variable, platform dependant |
30 |
|
31 #undef USE_MODE_SHIFT_MASK |
|
32 #ifdef USE_MODE_SHIFT_MASK |
|
33 const TUint KHtRestartStartupModesShift = 16; // Variable, platform dependant |
30 const TUint KHtRestartStartupModesShift = 16; // Variable, platform dependant |
34 const TUint KHtRestartStartupModesMask = KHtRestartStartupModesMax << KHtRestartStartupModesShift; |
31 const TUint KHtRestartStartupModesMask = KHtRestartStartupModesMax << KHtRestartStartupModesShift; |
35 #endif |
|
36 |
32 |
37 void TemplateVariantFault(TInt aLine) |
33 void TemplateVariantFault(TInt aLine) |
38 { |
34 { |
39 Kern::Fault("TemplateVariant",aLine); |
35 Kern::Fault("TemplateVariant",aLine); |
40 } |
36 } |
432 { |
428 { |
433 // |
429 // |
434 // TO DO: (optional) |
430 // TO DO: (optional) |
435 // |
431 // |
436 // Read the restart startup mode, e.g: |
432 // Read the restart startup mode, e.g: |
437 #undef USE_MODE_SHIFT_MASK |
433 // TInt startup = (Kern::SuperPage().iHwStartupReason & KHtRestartStartupModesMask) >> KHtRestartStartupModesShift; |
438 #ifdef USE_MODE_SHIFT_MASK |
434 // kumemput32(a1, &startup, sizeof(TInt)); |
439 TInt startup = (Kern::SuperPage().iHwStartupReason & KHtRestartStartupModesMask) >> KHtRestartStartupModesShift; |
|
440 kumemput32(a1, &startup, sizeof(TInt)); |
|
441 #endif |
|
442 break; |
435 break; |
443 } |
436 } |
444 |
437 |
445 case EVariantHalGetMaximumCustomRestartReasons: |
438 case EVariantHalGetMaximumCustomRestartReasons: |
446 { |
439 { |