-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
skl: add patch to pass entry point in %ebx
Done this way because things in SKL will change more drastically later and there is no point in committing this. Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
- Loading branch information
1 parent
50d4267
commit 422c3a0
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
recipes-support/skl/skl/0001-head-pass-entry-point-address-in-ebx-to-payload.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
From 4be25b0b35cf38d0dc3c3c6db674bfc36e6aa82f Mon Sep 17 00:00:00 2001 | ||
From: Sergii Dmytruk <sergii.dmytruk@3mdeb.com> | ||
Date: Wed, 13 Nov 2024 19:30:48 +0200 | ||
Subject: [PATCH] head: pass entry point address in %ebx to payload | ||
|
||
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com> | ||
--- | ||
head.S | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/head.S b/head.S | ||
index 4c57eed..ba14ae4 100644 | ||
--- a/head.S | ||
+++ b/head.S | ||
@@ -246,7 +246,7 @@ GLOBAL(_entry) | ||
*/ | ||
/* Linux expects Zero Page address in %esi, it is already there */ | ||
/* Multiboot2 expects MBI address in %ebx and magic number in %eax */ | ||
- mov %esi, %ebx | ||
+ mov %edi, %ebx | ||
mov $MULTIBOOT2_BOOTLOADER_MAGIC, %eax | ||
/* Simple payload expects argument on stack followed by return address */ | ||
push %esi | ||
-- | ||
2.47.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters