arch/*: Update Kconfig symbol usage
- Update all symbols to use IS_ENABLED() - Update non-romcc usage to use 'if' instead of '#if' where it makes sense. Change-Id: I5a84414d2d1631e35ac91efb67a0d4c1f673bf85 Signed-off-by: Martin Roth <martinroth@google.com> Reviewed-on: https://review.coreboot.org/20005 Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
This commit is contained in:
@ -23,7 +23,7 @@
|
||||
_stack:
|
||||
.space CONFIG_MAX_CPUS*CONFIG_STACK_SIZE
|
||||
_estack:
|
||||
#if CONFIG_COOP_MULTITASKING
|
||||
#if IS_ENABLED(CONFIG_COOP_MULTITASKING)
|
||||
.global thread_stacks
|
||||
thread_stacks:
|
||||
.space CONFIG_STACK_SIZE*CONFIG_NUM_THREADS
|
||||
@ -73,7 +73,7 @@ _start:
|
||||
/* set new stack */
|
||||
movl $_estack, %esp
|
||||
|
||||
#if CONFIG_COOP_MULTITASKING
|
||||
#if IS_ENABLED(CONFIG_COOP_MULTITASKING)
|
||||
/* Push the thread pointer. */
|
||||
push $0
|
||||
#endif
|
||||
@ -112,7 +112,7 @@ _start:
|
||||
|
||||
andl $0xFFFFFFF0, %esp
|
||||
|
||||
#if CONFIG_GDB_WAIT
|
||||
#if IS_ENABLED(CONFIG_GDB_WAIT)
|
||||
call gdb_hw_init
|
||||
call gdb_stub_breakpoint
|
||||
#endif
|
||||
@ -294,7 +294,7 @@ int_hand:
|
||||
|
||||
iret
|
||||
|
||||
#if CONFIG_GDB_WAIT
|
||||
#if IS_ENABLED(CONFIG_GDB_WAIT)
|
||||
|
||||
.globl gdb_stub_breakpoint
|
||||
gdb_stub_breakpoint:
|
||||
|
Reference in New Issue
Block a user