2 # Copyright (c) 2018 Red Hat, Inc. and/or its affiliates
5 # Wei Huang <wei@redhat.com>
7 # This work is licensed under the terms of the GNU GPL, version 2 or later.
8 # See the COPYING file in the top-level directory.
10 # Note: Please make sure the compiler compiles the assembly code below with
11 # pc-relative address. Also the branch instructions should use relative
14 #include "../migration-test.h"
21 /* disable MMU to use phys mem address */
27 /* traverse test memory region */
28 mov x0, #ARM_TEST_MEM_START
29 mov x1, #ARM_TEST_MEM_END
31 /* output char 'A' to PL011 */
33 mov x2, #ARM_MACH_VIRT_UART
41 add x4, x4, #TEST_MEM_PAGE_SIZE
45 /* w5 keeps a counter so we can limit the output speed */
53 /* increment the first byte of each page by 1 */
59 /* make sure QEMU user space can see consistent data as MMU is off */
62 add x4, x4, #TEST_MEM_PAGE_SIZE
71 /* output char 'B' to PL011 */