All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Manfred Spraul" <manfred@colorfullife.com>
To: "Frank Cornelis" <Frank.Cornelis@rug.ac.be>
Cc: <linux-kernel@vger.kernel.org>
Subject: Re: ptrace on i386
Date: Sat, 1 Dec 2001 11:46:26 +0100	[thread overview]
Message-ID: <000701c17a55$6ec0ea30$010411ac@local> (raw)

>
> In linux/arch/i386/kernel/ptrace.c next code is being used in the xxxreg
> functions:
> 	if (regno > GS*4)
> 		regno -= 2*4;
> Why this discontinuity? 

Backward compatibility. The syscall entry point changed between 2.0 and 2.2, but
that change must remain invisible to user space apps. the "-= 2*4" converts old offsets
to new offsets (or the other way around)

--
    Manfred


             reply	other threads:[~2001-12-01 10:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-12-01 10:46 Manfred Spraul [this message]
  -- strict thread matches above, loose matches on Subject: below --
2001-12-01 10:17 ptrace on i386 Frank Cornelis
2001-12-01 13:56 ` Brian Gerst

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='000701c17a55$6ec0ea30$010411ac@local' \
    --to=manfred@colorfullife.com \
    --cc=Frank.Cornelis@rug.ac.be \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.