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