mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-06 02:25:23 +00:00
hypervisor: x86_64: default Regs::rip to reset vector
This matches the reset value of the registers defined by the Intel manuals. It is currently overwritten on all paths initializing Regs, but it will be used in an upcoming commit to simplify the BIOS boot path. BUG=b:237095693 TEST=Boot x86_64 Linux TEST=cargo test -p x86_64 Change-Id: I7a96882fad05440c98bde2fad7ad15c0890f1cfa Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3735639 Reviewed-by: Alexandre Courbot <acourbot@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
This commit is contained in:
parent
814114c64c
commit
6f576dd813
1 changed files with 1 additions and 1 deletions
|
@ -597,7 +597,7 @@ impl Default for Regs {
|
|||
r13: 0,
|
||||
r14: 0,
|
||||
r15: 0,
|
||||
rip: 0,
|
||||
rip: 0xfff0, // Reset vector.
|
||||
rflags: 0x2, // Bit 1 (0x2) is always 1.
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue