Home
last modified time | relevance | path

Searched refs:regstub (Results 1 – 2 of 2) sorted by relevance

/external/syslinux/com32/lib/syslinux/
Dshuffle_rm.c91 addr_t regstub, stublen; in syslinux_shuffle_boot_rm() local
106 regstub = 0x800; in syslinux_shuffle_boot_rm()
108 rv = syslinux_memmap_find_type(tmap, SMT_FREE, &regstub, &stublen, 16); in syslinux_shuffle_boot_rm()
110 if (rv || (regstub > 0x100000 - sizeof handoff_code)) { in syslinux_shuffle_boot_rm()
117 regstub = 0x510; /* Try the 0x5xx segment... */ in syslinux_shuffle_boot_rm()
119 rv = syslinux_memmap_find_type(tmap, SMT_FREE, &regstub, &stublen, 16); in syslinux_shuffle_boot_rm()
121 if (!rv && (regstub > 0x100000 - sizeof handoff_code)) in syslinux_shuffle_boot_rm()
143 ST16(p, regstub >> 4); /* Segment */ in syslinux_shuffle_boot_rm()
166 if (syslinux_add_movelist(&fraglist, regstub, (addr_t) handoff_code, in syslinux_shuffle_boot_rm()
170 return syslinux_do_shuffle(fraglist, memmap, regstub, 0, bootflags); in syslinux_shuffle_boot_rm()
Dshuffle_pm.c47 addr_t regstub, stublen; in syslinux_shuffle_boot_pm() local
53 regstub = 0x800; /* Locate anywhere above this point */ in syslinux_shuffle_boot_pm()
55 rv = syslinux_memmap_find_type(tmap, SMT_FREE, &regstub, &stublen, 1); in syslinux_shuffle_boot_pm()
69 *(uint32_t *) (p + 1) = regs->eip - regstub - sizeof handoff_code; in syslinux_shuffle_boot_pm()
72 if (syslinux_add_movelist(&fraglist, regstub, (addr_t) handoff_code, in syslinux_shuffle_boot_pm()
76 return syslinux_do_shuffle(fraglist, memmap, regstub, 1, bootflags); in syslinux_shuffle_boot_pm()