1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 08:37:34 +00:00

Kernel: Fix incorrect indentation

Looks like a tab and some other things snuck in. :)
This commit is contained in:
Gunnar Beutner 2021-07-05 16:53:02 +02:00 committed by Gunnar Beutner
parent f998cc156f
commit 8aafbd917a
2 changed files with 38 additions and 33 deletions

View file

@ -64,7 +64,8 @@ static EntropySource s_entropy_source_interrupts { EntropySource::Static::Interr
" cld\n" \
" call enter_trap_no_irq \n" \
" call " #title "_handler\n" \
" jmp common_trap_exit \n"); \
" jmp common_trap_exit \n" \
); \
}
#define EH_ENTRY_NO_CODE(ec, title) \
@ -90,7 +91,8 @@ static EntropySource s_entropy_source_interrupts { EntropySource::Static::Interr
" cld\n" \
" call enter_trap_no_irq \n" \
" call " #title "_handler\n" \
" jmp common_trap_exit \n"); \
" jmp common_trap_exit \n" \
); \
}
#elif ARCH(X86_64)
@ -124,7 +126,8 @@ static EntropySource s_entropy_source_interrupts { EntropySource::Static::Interr
" lea 0x8(%rsp), %rdi \n" \
" call " #title "_handler\n" \
" addq $0x8, %rsp\n" /* undo alignment */ \
" jmp common_trap_exit \n"); \
" jmp common_trap_exit \n" \
); \
}
#define EH_ENTRY_NO_CODE(ec, title) \
@ -156,7 +159,8 @@ static EntropySource s_entropy_source_interrupts { EntropySource::Static::Interr
" call enter_trap_no_irq \n" \
" movq %rsp, %rdi \n" \
" call " #title "_handler\n" \
" jmp common_trap_exit \n"); \
" jmp common_trap_exit \n" \
); \
}
#endif

View file

@ -30,7 +30,8 @@ NAKED void thread_context_first_enter(void)
" call context_first_init \n"
" addl $" __STRINGIFY(ENTER_THREAD_CONTEXT_ARGS_SIZE) ", %esp \n"
" movl %ebx, 0(%esp) \n" // push pointer to TrapFrame
" jmp common_trap_exit \n");
" jmp common_trap_exit \n"
);
// clang-format on
}