Commit 3f17a05
committed
head.S: make state on entry to the kernel similar to that used by TXT
Intel TXT provides physical address of kernel entry point in %ebx. This
is due to the fact that %ss is undefined there, so the kernel can't use
the call/pop pair to obtain its load address. Even though it is possible
on AMD with this implementation of SKL, keep things consistent and move
the entry point address to %ebx as well.
%ebp points to base of SLB, the kernel can use it to obtain offset to
SLRT, and through it, bootloader context and payload argument saved
within.
Note that this commit (temporarily) breaks booting to non-Linux
payloads.
Signed-off-by: Krystian Hebel <[email protected]>1 parent 1cc0a75 commit 3f17a05
2 files changed
+23
-49
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
193 | | - | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
194 | 197 | | |
195 | | - | |
196 | | - | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
197 | 203 | | |
198 | | - | |
199 | | - | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
200 | 208 | | |
201 | | - | |
202 | | - | |
| 209 | + | |
203 | 210 | | |
204 | 211 | | |
205 | 212 | | |
| |||
232 | 239 | | |
233 | 240 | | |
234 | 241 | | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | 242 | | |
256 | | - | |
| 243 | + | |
257 | 244 | | |
258 | 245 | | |
259 | 246 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
| 234 | + | |
247 | 235 | | |
248 | 236 | | |
249 | 237 | | |
250 | | - | |
| 238 | + | |
251 | 239 | | |
252 | 240 | | |
253 | 241 | | |
254 | | - | |
| 242 | + | |
255 | 243 | | |
256 | 244 | | |
257 | 245 | | |
| |||
298 | 286 | | |
299 | 287 | | |
300 | 288 | | |
301 | | - | |
302 | | - | |
| 289 | + | |
303 | 290 | | |
304 | 291 | | |
305 | 292 | | |
306 | | - | |
307 | | - | |
308 | | - | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
309 | 296 | | |
310 | 297 | | |
311 | 298 | | |
312 | 299 | | |
313 | 300 | | |
314 | 301 | | |
315 | 302 | | |
316 | | - | |
| 303 | + | |
317 | 304 | | |
0 commit comments