]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/jailhouse.git/commit
inmates: arm: fix erroneous interrupt stack address
authorRalf Ramsauer <ralf.ramsauer@oth-regensburg.de>
Mon, 29 Jan 2018 14:48:51 +0000 (15:48 +0100)
committerJan Kiszka <jan.kiszka@siemens.com>
Mon, 29 Jan 2018 15:05:04 +0000 (16:05 +0100)
commit366ed4060b8b7ec925ee69e4648c9cf3d727992f
tree94710d6c6c144cb77412808a2feaaee26b17702e
parent2b0deb65f5f3153d7c7f5dd4899d41b366d2b303
inmates: arm: fix erroneous interrupt stack address

The stack pointer must point to the top of the stack. Until now, it
erroneously pointed to the bottom of the stack.

Luckily this didn't lead to any problems so far, as the region before
the stack bottom was padded with zeroes.

Let's change the type of the irq_stack from u32 to u8. This allows us to
use simple stack top calculation with sizeof(), and without a nasty
ARRAY_SIZE workaround (which we would need for u32, and which we don't
for inmates).

Fixes: 9ee8e141893896 ("arm: basic inmates demos")
Signed-off-by: Ralf Ramsauer <ralf.ramsauer@oth-regensburg.de>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
inmates/lib/arm/include/arch/gic.h