linux-mips
[Top] [All Lists]

Re: Magic numbers about stack layout

To: hartvige@mips.com
Subject: Re: Magic numbers about stack layout
From: Atsushi Nemoto <nemoto@toshiba-tops.co.jp>
Date: Wed, 22 Aug 2001 16:15:29 +0900 (JST)
Cc: linux-mips@oss.sgi.com
In-reply-to: <200108220646.IAA13918@copsun17.mips.com>
Organization: TOSHIBA Personal Computer System Corporation
References: <20010822.144547.30190293.nemoto@toshiba-tops.co.jp> <200108220646.IAA13918@copsun17.mips.com>
Sender: owner-linux-mips@oss.sgi.com
>>>>> On Wed, 22 Aug 2001 08:46:01 +0200 (MET DST), Hartvig Ekner 
>>>>> <hartvige@mips.com> said:
hartvige> what is the purpose of replacing the magic numbers with code
hartvige> analysis?

The magic numbers are affected by frame size of some kernel functions
such as schedule(), sleep_on(), etc.  These values may change for
various reason (code modification, new compiler, more optimize, ...).

hartvige> And what will happen when you run userland with MIPS16 or
hartvige> MIPS16e code?

Nothing.  The targets of this analysis are only kernel functions.

---
Atsushi Nemoto

<Prev in Thread] Current Thread [Next in Thread>