From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-in-01.arcor-online.net (mail-in-06.arcor-online.net [151.189.21.46]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mx.arcor.de", Issuer "Thawte Premium Server CA" (verified OK)) by ozlabs.org (Postfix) with ESMTP id 0042067A39 for ; Sat, 4 Mar 2006 06:29:47 +1100 (EST) In-Reply-To: <20060303191633.GA7792@suse.de> References: <20060303135717.GA5707@suse.de> <20060303165253.GA6494@suse.de> <20060303191633.GA7792@suse.de> Mime-Version: 1.0 (Apple Message framework v746.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <3E10742C-61F9-417C-A191-C0C8C46A4529@kernel.crashing.org> From: Segher Boessenkool Subject: Re: [PATCH] force stackpointer alignment in 64bit kernel Date: Fri, 3 Mar 2006 20:29:40 +0100 To: Olaf Hering Cc: linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , > The stackpointer came from 32bit code, which appearently has different > alignment rules than 64bit code. The chain was yaboot -> zImage -> > vmlinux > Force the stackpointer to be 16 byte aligned. The stack pointer is required to be 16-byte aligned when the client program is started, on 32-bit as well. > /* Make sure we are running in 64 bits mode */ > + addi r1,r1,16 > + rlwinm r1,r1,0,0,28 > bl .enable_64b_mode Not addi +16, not -16, just no addi at all... Segher