From mint-bounce@lists.fishpool.fi  Thu Aug 11 13:24:27 2005
X-Original-To: fnaumann@mail.boerde.de
Delivered-To: fnaumann@mail.boerde.de
Date: Thu, 11 Aug 2005 13:22:29 +0200
From: mikro <mikro@hysteria.sk>
To: "Konrad M. Kokoszkiewicz" <draco@obta.uw.edu.pl>
Cc: Andreas Schwab <schwab@suse.de>, Mint list <mint@fishpool.com>
Subject: Re: [MiNT] what's wrong with this code?
Message-ID: <20050811112229.GA17261@hysteria.sk>
References: <20050810084953.GA29857@hysteria.sk> <42F9C8C7.6040602@klockars.net> <20050810100104.GB29857@hysteria.sk> <jepssm2e2l.fsf@sykes.suse.de> <20050811064139.GA16995@hysteria.sk> <je3bpgzqmy.fsf@sykes.suse.de> <20050811110354.GA8923@hysteria.sk> <2
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20050811131048.P91109@antyk.obta.uw.edu.pl>
User-Agent: Mutt/1.4.2.1i
X-ecartis-version: Ecartis v1.0.0
Sender: mint-bounce@lists.fishpool.fi
Errors-To: mint-bounce@lists.fishpool.fi
X-original-sender: mikro@hysteria.sk
Precedence: bulk
List-help: <mailto:ecartis@lists.fishpool.fi?Subject=help>
List-unsubscribe: <mailto:mint-request@lists.fishpool.fi?Subject=unsubscribe>
List-Id: <mint.lists.fishpool.fi>
X-List-ID: <mint.lists.fishpool.fi>
X-Virus-Scanned: by amavisd-new at relay.boerde.de
X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on relay.boerde.de
X-Spam-Status: No, hits=-1.0 tagged_above=-50.5 required=7.0 tests=AWL,
 BAYES_00
X-Spam-Level: 


> Not really. I don't know if you use traps in the code (didn't pay
> attention to the thread),
look at the first message - I posted complete source code

> but if you do it anywhere, and your user code
> clobbers the stack pointer, and fails to restore it before you do a trap,
> you'll get bus errors, because MiNT needs to copy trap arguments from the
> user stack (where they are) to the supervisor stack (where they should
> be). So the user sp has to point to the memory area the program owns.
> 
of course. I switch to user mode. save a7. do the things with a7. restore
a7. call trap. nothing else. I did a several experiments but with no
success. That's the reason I ask here, it's really strange.

-- 

---------------------------------------------------------------------------
MiKRO         Atari XE/XL/Mega STE/Falcon060         http://mikro.atari.org
---------------------------------------------------------------------------


