[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 06/11] i386/a-b-bootblock: factor test memory addresses out into c
From: |
Juan Quintela |
Subject: |
[PULL 06/11] i386/a-b-bootblock: factor test memory addresses out into constants |
Date: |
Wed, 4 Oct 2023 14:40:33 +0200 |
From: Daniil Tatianin <d-tatianin@yandex-team.ru>
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>
---
tests/migration/i386/a-b-bootblock.S | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/tests/migration/i386/a-b-bootblock.S
b/tests/migration/i386/a-b-bootblock.S
index 3d464c7568..036216e4a7 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
--
2.41.0
- [PULL 00/11] Migration 20231004 patches, Juan Quintela, 2023/10/04
- [PULL 05/11] migration/rdma: zore out head.repeat to make the error more clear, Juan Quintela, 2023/10/04
- [PULL 04/11] migration: Add co-maintainers for migration, Juan Quintela, 2023/10/04
- [PULL 02/11] migration: Update error description outside migration.c, Juan Quintela, 2023/10/04
- [PULL 01/11] migration/vmstate: Introduce vmstate_save_state_with_err, Juan Quintela, 2023/10/04
- [PULL 11/11] migration: Unify and trace vmstate field_exists() checks, Juan Quintela, 2023/10/04
- [PULL 03/11] MAINTAINERS: Add entry for rdma migration, Juan Quintela, 2023/10/04
- [PULL 06/11] i386/a-b-bootblock: factor test memory addresses out into constants,
Juan Quintela <=
- [PULL 08/11] s390x/a-b-bios: zero the first byte of each page on start, Juan Quintela, 2023/10/04
- [PULL 09/11] migration: file URI, Juan Quintela, 2023/10/04
[PULL 07/11] i386/a-b-bootblock: zero the first byte of each page on start, Juan Quintela, 2023/10/04
[PULL 10/11] migration: file URI offset, Juan Quintela, 2023/10/04
Re: [PULL 00/11] Migration 20231004 patches, Stefan Hajnoczi, 2023/10/05