mirror of
https://github.com/siemens-mobile-hacks/node-sie-serial.git
synced 2026-11-25 17:17:17 +00:00
check boot mode
This commit is contained in:
parent
c3924fac5d
commit
5e85329f76
1 changed files with 5 additions and 0 deletions
|
|
@ -99,6 +99,11 @@ if (bootMode == 0xFFFFFFFF) {
|
|||
process.exit(1);
|
||||
}
|
||||
|
||||
if (bootMode != 0xFFFF0002) {
|
||||
console.log(sprintf("Invalid boot mode: %08X", bootMode));
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
const oldIrqHandler = (await dwd.readMemory(PRAM_IRQ_HANDLER, 4)).buffer.readUInt32LE(0);
|
||||
console.log(sprintf("Old SWI handler: %08X", oldIrqHandler))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue