Re: [PATCH][RFC] jump_labels/x86: Use either 5 byte or 2 byte jumps

From: Steven Rostedt
Date: Fri Oct 07 2011 - 15:33:12 EST


On Fri, 2011-10-07 at 15:21 -0400, Steven Rostedt wrote:

> > > + /*
> > > + * This is specific to x86. The jump_table is stored in three
> > > + * long words. The first is the location of the jmp target we
> > > + * must update.
> > > + */
> > > + cnt = size / sizeof(uint_t);
> > > +
> > > + for (i = 0; i < cnt; i += 3)
> > > + if (0)make_nop((void *)ehdr, *(uint_t *)(data + i * sizeof(uint_t)));

I just compiled and booted the

- if (0)make_nop((void *)ehdr, *(uint_t *)(data + i * sizeof(uint_t)));
+ make_nop((void *)ehdr, *(uint_t *)(data + i * sizeof(uint_t)));

version, and it still works.

Phew!

-- Steve


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/