From ecd556b35435f2f70e96f2580ad8b73d00423e1f Mon Sep 17 00:00:00 2001 From: Alexander Zilberkant Date: Sun, 25 Nov 2018 10:26:41 +0200 Subject: [PATCH] Generate better magic numbers --- components/TARGET_PSA/spm/COMPONENT_SPM_MAILBOX/ipc_defs.h | 2 +- components/TARGET_PSA/spm/COMPONENT_SPM_MAILBOX/ipc_queue.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/components/TARGET_PSA/spm/COMPONENT_SPM_MAILBOX/ipc_defs.h b/components/TARGET_PSA/spm/COMPONENT_SPM_MAILBOX/ipc_defs.h index fa6c04eafb..02ef35f0b3 100644 --- a/components/TARGET_PSA/spm/COMPONENT_SPM_MAILBOX/ipc_defs.h +++ b/components/TARGET_PSA/spm/COMPONENT_SPM_MAILBOX/ipc_defs.h @@ -34,7 +34,7 @@ #define IPC_RES_SEM_MAX_COUNT (1UL) // Maximum number of available tokens for an IPC result semaphore #define IPC_RES_SEM_INITIAL_COUNT (0UL) // Initial number of available tokens for an IPC result semaphore -#define ADDR_TABLE_MAGIC 0xDEADBEEF +#define ADDR_TABLE_MAGIC 0x3d339a77 // NOTE: STRUCT SIZE MUST BE 4 BYTES ALIGNED !! diff --git a/components/TARGET_PSA/spm/COMPONENT_SPM_MAILBOX/ipc_queue.h b/components/TARGET_PSA/spm/COMPONENT_SPM_MAILBOX/ipc_queue.h index fd9130b4ea..2f005a7de2 100644 --- a/components/TARGET_PSA/spm/COMPONENT_SPM_MAILBOX/ipc_queue.h +++ b/components/TARGET_PSA/spm/COMPONENT_SPM_MAILBOX/ipc_queue.h @@ -44,9 +44,9 @@ #define IPC_QUEUE_SLOTS 2 #endif -#define IPC_QUEUE_BASE_MAGIC 0xCAFEBABE -#define IPC_QUEUE_PRODUCER_MAGIC 0xDAC0FFEE -#define IPC_QUEUE_CONSUMER_MAGIC 0xFACEB00C +#define IPC_QUEUE_BASE_MAGIC 0x63284A0C +#define IPC_QUEUE_PRODUCER_MAGIC 0XA248D9FF +#define IPC_QUEUE_CONSUMER_MAGIC 0XA68B6542 #define IPC_QUEUE_WAIT_ON_FULL_MS 500 #define IPC_QUEUE_WAIT_ON_EMPTY_MS 500