Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Aug 2013 10:03:45 +0000 (UTC)
From:      Andrew Turner <andrew@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r253985 - head/sys/arm/arm
Message-ID:  <201308061003.r76A3jpL044424@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: andrew
Date: Tue Aug  6 10:03:44 2013
New Revision: 253985
URL: http://svnweb.freebsd.org/changeset/base/253985

Log:
  We no longer need to align the stack before calling swi_handler as it is
  already aligned correctly in the PUSHFRAME macro.

Modified:
  head/sys/arm/arm/exception.S

Modified: head/sys/arm/arm/exception.S
==============================================================================
--- head/sys/arm/arm/exception.S	Tue Aug  6 06:24:37 2013	(r253984)
+++ head/sys/arm/arm/exception.S	Tue Aug  6 10:03:44 2013	(r253985)
@@ -83,10 +83,7 @@ ASENTRY_NP(swi_entry)
 	PUSHFRAME
 
 	mov	r0, sp			/* Pass the frame to any function */
-	mov	r6, sp			/* Backup the stack pointer */
-	bic	sp, sp, #7		/* Align the stack pointer */
 	bl	_C_LABEL(swi_handler)	/* It's a SWI ! */
-	mov	sp, r6			/* Restore the stack */
 
 	DO_AST
 	PULLFRAME



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201308061003.r76A3jpL044424>