Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sat, 1 Dec 2001 05:46:33 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sat, 1 Dec 2001 05:46:23 -0500 Received: from colorfullife.com ([216.156.138.34]:775 "EHLO colorfullife.com") by vger.kernel.org with ESMTP id ; Sat, 1 Dec 2001 05:46:06 -0500 Message-ID: <000701c17a55$6ec0ea30$010411ac@local> From: "Manfred Spraul" To: "Frank Cornelis" Cc: Subject: Re: ptrace on i386 Date: Sat, 1 Dec 2001 11:46:26 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org > > 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 - 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/