Deduplicated cache handling. Fixed jump hatch being filled with random stuff

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2009-11-28 23:34:48 +01:00
parent a44c7e23d8
commit 3c68ed3d80
4 changed files with 34 additions and 65 deletions

View file

@ -64,6 +64,9 @@ write_jump (int regn, void **target)
/* j $r. */
*(grub_uint32_t *) *target = (regn<<21) | 0x8;
*target = ((grub_uint32_t *) *target) + 1;
/* nop. */
*(grub_uint32_t *) *target = 0;
*target = ((grub_uint32_t *) *target) + 1;
}
static void