From mboxrd@z Thu Jan 1 00:00:00 1970 From: York Sun Date: Mon, 20 Apr 2015 14:01:20 -0700 Subject: [U-Boot] [PATCH 2/2] powerpc/mpc85xx: Remove some dead code In-Reply-To: <1428456001-1938-2-git-send-email-scottwood@freescale.com> References: <1428456001-1938-1-git-send-email-scottwood@freescale.com> <1428456001-1938-2-git-send-email-scottwood@freescale.com> Message-ID: <55356920.2020702@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 04/07/2015 06:20 PM, Scott Wood wrote: > U-Boot does not have system calls (the services it exposes to > standalone commands use a different mechanism), so the syscall handler > is dead code. It's also broken code, as it assumes it is located at > 0xc00 -- while even before the patch to stop relocating exception > vectors to 0, U-Boot had the syscall at 0x900. > > The critical and machine check return paths are never called -- the > regular exception return path is used instead, which works because > xSRR0/1 have already been saved and can be restored via the regular > SRR0/1 (we don't care too much in U-Boot about taking a critical/mcheck > inside another exception prolog/epilog). > > Also remove a few other small unused functions. > > Signed-off-by: Scott Wood > --- Applied to mpc85xx master, awaiting upstream. York