From 65daf1cb353f4ba5e2f08ccbce6b0d5220b0099a Mon Sep 17 00:00:00 2001 From: Louis Burda Date: Tue, 24 Jan 2023 16:17:45 +0100 Subject: Create flat binaries to support more complex guests --- test/kvm-step_guest.S | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) (limited to 'test/kvm-step_guest.S') diff --git a/test/kvm-step_guest.S b/test/kvm-step_guest.S index 3d1b0e7..dcc8ff3 100644 --- a/test/kvm-step_guest.S +++ b/test/kvm-step_guest.S @@ -2,26 +2,22 @@ #define TARGET_SET 15 -.global guest_start -.global guest_stop - +.text .align(16) .code16gcc -guest_start: - mov $(L1_LINESIZE * (L1_SETS + 11)), %bx - movb (%bx), %bl - hlt +guest: + mov $(L1_LINESIZE * (L1_SETS + 11)), %bx + movb (%bx), %bl + hlt - mov $(L1_LINESIZE * (L1_SETS + 13)), %bx - movb (%bx), %bl - hlt + mov $(L1_LINESIZE * (L1_SETS + 13)), %bx + movb (%bx), %bl + hlt - mov $(L1_LINESIZE * (L1_SETS + 15)), %bx - movb (%bx), %bl - hlt + mov $(L1_LINESIZE * (L1_SETS + 15)), %bx + movb (%bx), %bl + hlt - mov $0x00, %ax - jmp *%ax -guest_stop: + jmp guest -- cgit v1.2.3-71-gd317