| # x86 bootblock used in migration test |
| # repeatedly increments the first byte of each page in a 100MB |
| # Outputs an initial 'A' on serial followed by repeated 'B's |
| # Copyright (c) 2016 Red Hat, Inc. and/or its affiliates |
| # This work is licensed under the terms of the GNU GPL, version 2 or later. |
| # See the COPYING file in the top-level directory. |
| # Author: dgilbert@redhat.com |
| mov %eax,%cr0 # Protected mode enable |
| # A20 enable - not sure I actually need this |
| # set up DS for the whole of RAM (needed on KVM) |
| # bl keeps a counter so we limit the output speed |
| cmp $(100*1024*1024),%eax |
| # GDT magic from old (GPLv2) Grub startup.S |
| .p2align 2 /* force 4-byte alignment */ |
| * base = 0x00000000, limit = 0xFFFFF (4 KiB Granularity), present |
| * type = 32bit code execute/read, DPL = 0 |
| * base = 0x00000000, limit 0xFFFFF (4 KiB Granularity), present |
| * type = 32 bit data read/write, DPL = 0 |
| /* I'm a bootable disk */ |