Skip to content

Commit ecd556b

Browse files
Alexander ZilberkantOren Cohen
authored andcommitted
Generate better magic numbers
1 parent 53be3cc commit ecd556b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

components/TARGET_PSA/spm/COMPONENT_SPM_MAILBOX/ipc_defs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
#define IPC_RES_SEM_MAX_COUNT (1UL) // Maximum number of available tokens for an IPC result semaphore
3535
#define IPC_RES_SEM_INITIAL_COUNT (0UL) // Initial number of available tokens for an IPC result semaphore
3636

37-
#define ADDR_TABLE_MAGIC 0xDEADBEEF
37+
#define ADDR_TABLE_MAGIC 0x3d339a77
3838

3939

4040
// NOTE: STRUCT SIZE MUST BE 4 BYTES ALIGNED !!

components/TARGET_PSA/spm/COMPONENT_SPM_MAILBOX/ipc_queue.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@
4444
#define IPC_QUEUE_SLOTS 2
4545
#endif
4646

47-
#define IPC_QUEUE_BASE_MAGIC 0xCAFEBABE
48-
#define IPC_QUEUE_PRODUCER_MAGIC 0xDAC0FFEE
49-
#define IPC_QUEUE_CONSUMER_MAGIC 0xFACEB00C
47+
#define IPC_QUEUE_BASE_MAGIC 0x63284A0C
48+
#define IPC_QUEUE_PRODUCER_MAGIC 0XA248D9FF
49+
#define IPC_QUEUE_CONSUMER_MAGIC 0XA68B6542
5050

5151
#define IPC_QUEUE_WAIT_ON_FULL_MS 500
5252
#define IPC_QUEUE_WAIT_ON_EMPTY_MS 500

0 commit comments

Comments
 (0)