commit | e25c7c98c513feae3c6d60d008e352293d79a2f9 | [log] [tgz] |
---|---|---|
author | Helge Deller <deller@gmx.de> | Fri Mar 22 12:07:22 2024 +0100 |
committer | Helge Deller <deller@gmx.de> | Wed May 15 15:50:06 2024 +0200 |
tree | cbca8283a0b59c0d3baf1e3abdfb32b686c3dbd9 | |
parent | 8c0e08f088b94d1a5dd09aac90d7347a20cdb11f [diff] |
parisc: Avoid trashing MPE IPL bootloader stack The MPE IPL boot loader calls PDC_MODEL when running in narrow mode. The return buffer pointed to by arg2 holds space for eigth 32-bit integers directly followed by the stack used by MPE. So, when pdc_model() writes 32 64-bit integers to arg2, it unintentionally overwrites MPE's call stack. Fix it by limiting returned bytes depending if PDC_MODEL was called in WIDE or NARROW mode. Signed-off-by: Helge Deller <deller@gmx.de>