Annotation of qemu/roms/ipxe/src/tests/gdbstub_test.S, revision 1.1

1.1     ! root        1:        .arch i386
        !             2: 
        !             3:        .section ".data", "aw", @progbits
        !             4: watch_me:
        !             5:        .long 0xfeedbeef
        !             6: 
        !             7:        .section ".text", "ax", @progbits
        !             8:        .code32
        !             9: gdbstub_test:
        !            10:        /* 1. Read registers test */
        !            11:        movl    $0xea010203, %eax
        !            12:        movl    $0xeb040506, %ebx
        !            13:        movl    $0xec070809, %ecx
        !            14:        movl    $0xed0a0b0c, %edx
        !            15:        movl    $0x510d0e0f, %esi
        !            16:        movl    $0xd1102030, %edi
        !            17:        int     $3
        !            18: 
        !            19:        /* 2. Write registers test */
        !            20:        int     $3
        !            21: 
        !            22:        /* 3. Read memory test */
        !            23:        subl    $8, %esp
        !            24:        movl    $0x11223344, 4(%esp)
        !            25:        movw    $0x5566, 2(%esp)
        !            26:        movb    $0x77, (%esp)
        !            27:        int     $3
        !            28: 
        !            29:        /* 4. Write memory test */
        !            30:        int     $3
        !            31:        addl    $8, %esp
        !            32: 
        !            33:        /* 5. Step test */
        !            34:        int     $3
        !            35:        nop
        !            36: 
        !            37:        /* 6. Access watch test */
        !            38:        movl    $0x600d0000, %ecx
        !            39:        movl    watch_me, %eax
        !            40:        movl    $0xbad00000, %ecx
        !            41:        int     $3
        !            42:        movl    $0x600d0001, %ecx
        !            43:        movl    %eax, watch_me
        !            44:        movl    $0xbad00001, %ecx
        !            45:        int     $3
        !            46: 
        !            47:        /* 7. Write watch test */
        !            48:        movl    $0x600d0002, %ecx
        !            49:        movl    %eax, watch_me
        !            50:        movl    $0xbad00002, %ecx
        !            51:        int     $3
        !            52: 
        !            53: 1:
        !            54:        jmp     1b

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.