src/arch: Fix typo
Change-Id: I24d219b4ce6033f64886e22973ca8716113d319f Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/27919 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin Roth <martinroth@google.com>
This commit is contained in:
parent
64f6b71af5
commit
2f79eb3fd5
|
@ -70,7 +70,7 @@ void arch_prepare_thread(struct thread *t,
|
||||||
void __attribute__((naked))
|
void __attribute__((naked))
|
||||||
switch_to_thread(uintptr_t new_stack, uintptr_t *saved_stack)
|
switch_to_thread(uintptr_t new_stack, uintptr_t *saved_stack)
|
||||||
{
|
{
|
||||||
/* Defintions for those of us not totally familiar with ARM:
|
/* Definitions for those of us not totally familiar with ARM:
|
||||||
* R15 -- PC, R14 -- LR, R13 -- SP
|
* R15 -- PC, R14 -- LR, R13 -- SP
|
||||||
* R0-R3 need not be saved, nor R12.
|
* R0-R3 need not be saved, nor R12.
|
||||||
* on entry, the only saved state is in LR -- the old PC.
|
* on entry, the only saved state is in LR -- the old PC.
|
||||||
|
|
|
@ -57,7 +57,7 @@ struct exception_handler {
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Register a handler provided with the associated vector id. Returns 0 on
|
* Register a handler provided with the associated vector id. Returns 0 on
|
||||||
* sucess, < 0 on error. Note that registration is not thread/interrupt safe.
|
* success, < 0 on error. Note that registration is not thread/interrupt safe.
|
||||||
*/
|
*/
|
||||||
int exception_handler_register(uint64_t vid, struct exception_handler *h);
|
int exception_handler_register(uint64_t vid, struct exception_handler *h);
|
||||||
|
|
||||||
|
|
|
@ -374,7 +374,7 @@ ramstage-libs ?=
|
||||||
|
|
||||||
ifeq ($(CONFIG_RELOCATABLE_RAMSTAGE),y)
|
ifeq ($(CONFIG_RELOCATABLE_RAMSTAGE),y)
|
||||||
|
|
||||||
# The rmodule_link defintion creates an elf file with .rmod extension.
|
# The rmodule_link definition creates an elf file with .rmod extension.
|
||||||
$(objcbfs)/ramstage.elf: $(objcbfs)/ramstage.debug.rmod
|
$(objcbfs)/ramstage.elf: $(objcbfs)/ramstage.debug.rmod
|
||||||
cp $< $@
|
cp $< $@
|
||||||
|
|
||||||
|
|
|
@ -47,7 +47,7 @@ void arch_prepare_thread(struct thread *t,
|
||||||
stack = push_stack(stack, (uintptr_t)arg);
|
stack = push_stack(stack, (uintptr_t)arg);
|
||||||
stack = push_stack(stack, (uintptr_t)0);
|
stack = push_stack(stack, (uintptr_t)0);
|
||||||
stack = push_stack(stack, (uintptr_t)thread_entry);
|
stack = push_stack(stack, (uintptr_t)thread_entry);
|
||||||
/* Make room for the registers. Ignore intial values. */
|
/* Make room for the registers. Ignore initial values. */
|
||||||
stack -= sizeof(struct pushad_regs);
|
stack -= sizeof(struct pushad_regs);
|
||||||
|
|
||||||
t->stack_current = stack;
|
t->stack_current = stack;
|
||||||
|
|
Loading…
Reference in New Issue