Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement boot with AMD SKINIT #130

Merged
merged 5 commits into from
Nov 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions arch/x86/boot/compressed/head_64.S
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,9 @@ SYM_FUNC_START_LOCAL_NOALIGN(.Lrelocated)
/*
* Jump to the decompressed kernel.
*/
#ifdef CONFIG_SECURE_LAUNCH
movq sl_skl_base(%rip), %rdi
#endif
movq %r15, %rsi
jmp *%rax
SYM_FUNC_END(.Lrelocated)
Expand Down Expand Up @@ -623,6 +626,11 @@ SYM_FUNC_START_LOCAL_NOALIGN(.Lno_longmode)
jmp 1b
SYM_FUNC_END(.Lno_longmode)

#ifdef CONFIG_SECURE_LAUNCH
/* Defined in sl_stub.S */
.globl sl_skl_base
#endif

.globl verify_cpu
#include "../../kernel/verify_cpu.S"

Expand Down
Loading