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