stackchk: Use a const pattern to check

This commit is contained in:
Sebastian Huber
2016-09-08 07:43:02 +02:00
parent bba988d313
commit 8bb9d4100c
2 changed files with 51 additions and 90 deletions
File diff suppressed because it is too large Load Diff
+9 -1
View File
@@ -649,7 +649,15 @@ typedef struct CPU_Interrupt_frame {
* for most architectures.
*/
#define CPU_STACK_CHECK_SIZE (128)
#define CPU_STACK_CHECK_PATTERN_INITIALIZER \
{ 0xFEEDF00D, 0x0BAD0D06, 0xDEADF00D, 0x600D0D06, \
0xFEEDF00D, 0x0BAD0D06, 0xDEADF00D, 0x600D0D06, \
0xFEEDF00D, 0x0BAD0D06, 0xDEADF00D, 0x600D0D06, \
0xFEEDF00D, 0x0BAD0D06, 0xDEADF00D, 0x600D0D06, \
0xFEEDF00D, 0x0BAD0D06, 0xDEADF00D, 0x600D0D06, \
0xFEEDF00D, 0x0BAD0D06, 0xDEADF00D, 0x600D0D06, \
0xFEEDF00D, 0x0BAD0D06, 0xDEADF00D, 0x600D0D06, \
0xFEEDF00D, 0x0BAD0D06, 0xDEADF00D, 0x600D0D06 }
/*
* Amount of extra stack (above minimum stack size) required by