Lines Matching +full:0 +full:x7c00

17 #define LOW(x) ((x) & 0xff)
20 #define SIGNATURE 0xdead
21 #define SIGNATURE_OFFSET 0x10
22 #define BOOT_SECTOR_ADDRESS 0x7c00
38 [0x00] = 0xb8,
39 [0x01] = 0x00,
40 [0x02] = 0x00,
42 [0x03] = 0x8e,
43 [0x04] = 0xd8,
45 /* 7c05: mov $0xdead,%ax */
46 [0x05] = 0xb8,
47 [0x06] = LOW(SIGNATURE),
48 [0x07] = HIGH(SIGNATURE),
49 /* 7c08: mov %ax,0x7c10 */
50 [0x08] = 0xa3,
51 [0x09] = LOW(SIGNATURE_ADDR),
52 [0x0a] = HIGH(SIGNATURE_ADDR),
55 [0x0b] = 0xfa,
57 [0x0c] = 0xf4,
58 /* 7c0e: jmp 0x7c07=0x7c0f-3 */
59 [0x0d] = 0xeb,
60 [0x0e] = LOW(-3),
61 /* We mov 0xdead here: set value to make debugging easier */
62 [SIGNATURE_OFFSET] = LOW(0xface),
63 [SIGNATURE_OFFSET + 1] = HIGH(0xface),
65 [0x1FE] = 0x55,
66 [0x1FF] = 0xAA,
71 0x00, 0x08, 0x00, 0x00, 0x80, 0x01, 0x00, 0x00, /* Program status word */
72 0x02, 0x00, 0x00, 0x18, 0x60, 0x00, 0x00, 0x50, /* Magic: */
73 0x02, 0x00, 0x00, 0x68, 0x60, 0x00, 0x00, 0x50, /* see linux_s390_magic */
74 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40 /* in the s390-ccw bios */
77 0xa7, 0xf4, 0x00, 0x08, /* j 0x10010 */
78 0x00, 0x00, 0x00, 0x00,
79 'S', '3', '9', '0',
80 'E', 'P', 0x00, 0x01,
81 0xa7, 0x39, HIGH(SIGNATURE_ADDR), LOW(SIGNATURE_ADDR), /* lghi r3,0x7c10 */
82 0xa7, 0x48, LOW(SIGNATURE), HIGH(SIGNATURE), /* lhi r4,0xadde */
83 0x40, 0x40, 0x30, 0x00, /* sth r4,0(r3) */
84 0xa7, 0xf4, 0xff, 0xfa /* j 0x10010 */
96 if (fd < 0) { in boot_sector_init()
102 /* Q35 requires a minimum 0x7e000 bytes disk (bug or feature?) */ in boot_sector_init()
103 len = MAX(0x7e000, sizeof(x86_boot_sector)); in boot_sector_init()
113 len = 0x10000 + sizeof(s390x_code); in boot_sector_init()
116 memcpy(&boot_code[0x10000], s390x_code, sizeof(s390x_code)); in boot_sector_init()
131 return 0; in boot_sector_init()
151 for (i = 0; i < TEST_CYCLES; ++i) { in boot_sector_test()
157 qtest_writeb(qts, SIGNATURE_ADDR, 0x00); in boot_sector_test()