> No, the way sysenter works, the table approach just sucks up dcache space
> (the kernel cannot know which sysenter is the one that the user uses
> anyway, so the jump table would have to just add back some index and we'd
> be back exactly where we started)
>
> I'll keep it the way it is now.
I won't argue since honestly, not doing it is much easier for me. But I
want to be sure I'm clear.
What I suggested is to have the first part of the global page be
.p2align 3
jmp sysenter_label
.p2align 3
jmp sysenter_label
...
.p2align
jmp userlevel_gettimeofday
sysenter_label:
the usual sysenter code
userlevel_gettimeofday:
whatever necessary
All this would be in the global page. There is only one sysenter call.
-- --------------. ,-. 444 Castro Street Ulrich Drepper \ ,-----------------' \ Mountain View, CA 94041 USA Red Hat `--' drepper at redhat.com `---------------------------- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/