diff options
author | Daniil Tatianin <d-tatianin@yandex-team.ru> | 2023-09-19 13:23:44 +0300 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2023-10-04 11:47:29 +0200 |
commit | 67aeae794e51b3238ced158218edf443f8607626 (patch) | |
tree | 8a0f79e44178e7a202e786b65afcae1911e67b27 /tests/migration | |
parent | 2ada4b63f1764d13a2b9ca9cbeb5feda46ab6851 (diff) | |
download | qemu-67aeae794e51b3238ced158218edf443f8607626.zip qemu-67aeae794e51b3238ced158218edf443f8607626.tar.gz qemu-67aeae794e51b3238ced158218edf443f8607626.tar.bz2 |
i386/a-b-bootblock: factor test memory addresses out into constants
So that we have less magic numbers to deal with. This also allows us to
reuse these in the following commits.
Reviewed-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Daniil Tatianin <d-tatianin@yandex-team.ru>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Message-ID: <20230919102346.2117963-2-d-tatianin@yandex-team.ru>
Diffstat (limited to 'tests/migration')
-rw-r--r-- | tests/migration/i386/a-b-bootblock.S | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/migration/i386/a-b-bootblock.S b/tests/migration/i386/a-b-bootblock.S index 3d464c7..036216e 100644 --- a/tests/migration/i386/a-b-bootblock.S +++ b/tests/migration/i386/a-b-bootblock.S @@ -34,6 +34,10 @@ start: # at 0x7c00 ? mov $16,%eax mov %eax,%ds +# Start from 1MB +.set TEST_MEM_START, (1024*1024) +.set TEST_MEM_END, (100*1024*1024) + mov $65,%ax mov $0x3f8,%dx outb %al,%dx @@ -41,12 +45,11 @@ start: # at 0x7c00 ? # bl keeps a counter so we limit the output speed mov $0, %bl mainloop: - # Start from 1MB - mov $(1024*1024),%eax + mov $TEST_MEM_START,%eax innerloop: incb (%eax) add $4096,%eax - cmp $(100*1024*1024),%eax + cmp $TEST_MEM_END,%eax jl innerloop inc %bl |