[lkml]   [2002]   [Dec]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] compatibility syscall layer (lets try again)
    >>>>> On Mon, 9 Dec 2002 08:48:13 -0800 (PST), Linus Torvalds <> said:

    Linus> Architecture maintainers, can you comment on how easy/hard it
    Linus> is to do the same thing on your architectures? I _assume_
    Linus> it's trivial (akin to the three-liner register state change
    Linus> in i386/kernel/signal.c).

    It's not trivial on ia64: we keep the syscall arguments in registers
    (the stacked registers, to be precise), so to modify them, we need to
    (a) flush the stacked registers to memory and (b) find the frame that
    contains the syscall arguments, (c) patch the values in memory, and
    (d) reload the stacked registers. It's doable (like you say, ptrace()
    does it already), but that's about the best I can say about it...

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:31    [W:0.021 / U:36.696 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site