cmake: Deprecate the 2 symbols _SYSCALL_{LIMIT,BAD}

There exist two symbols that became equivalent when PR #9383 was
merged; _SYSCALL_LIMIT and K_SYSCALL_LIMIT. This patch deprecates the
redundant _SYSCALL_LIMIT symbol.

_SYSCALL_LIMIT was initally introduced because before PR #9383 was
merged K_SYSCALL_LIMIT was an enum, which couldn't be included into
assembly files. PR #9383 converted it into a define, which can be
included into assembly files, making _SYSCALL_LIMIT redundant.

Likewise for _SYSCALL_BAD.

Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no>
This commit is contained in:
Sebastian Bøe 2018-08-10 15:43:31 +02:00 committed by Anas Nashif
commit 1186f5bb29
6 changed files with 13 additions and 14 deletions

View file

@ -16,6 +16,7 @@
#include <offsets_short.h>
#include <toolchain.h>
#include <arch/cpu.h>
#include <syscall.h>
_ASM_FILE_PROLOGUE
@ -387,13 +388,13 @@ _do_syscall:
str r1, [r0, #24] /* overwrite the LR to point to _arm_do_syscall */
/* validate syscall limit, only set priv mode if valid */
ldr ip, =_SYSCALL_LIMIT
ldr ip, =K_SYSCALL_LIMIT
cmp r6, ip
blt valid_syscall_id
/* bad syscall id. Set arg0 to bad id and set call_id to SYSCALL_BAD */
str r6, [r0, #0]
ldr r6, =_SYSCALL_BAD
ldr r6, =K_SYSCALL_BAD
valid_syscall_id:
/* set mode to privileged, r2 still contains value from CONTROL */