Deleted Added
full compact
locore32.S (222613) locore32.S (223485)
1/* $FreeBSD: head/sys/powerpc/aim/locore32.S 222613 2011-06-02 14:12:37Z nwhitehorn $ */
1/* $FreeBSD: head/sys/powerpc/aim/locore32.S 223485 2011-06-23 22:21:28Z nwhitehorn $ */
2/* $NetBSD: locore.S,v 1.24 2000/05/31 05:09:17 thorpej Exp $ */
3
4/*-
5 * Copyright (C) 2001 Benno Rice
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions

--- 166 unchanged lines hidden (view full) ---

176 * or the (currently used) C code optimized, so it doesn't use any non-volatile
177 * registers.
178 */
179 .globl setfault
180setfault:
181 mflr 0
182 mfcr 12
183 mfsprg 4,0
2/* $NetBSD: locore.S,v 1.24 2000/05/31 05:09:17 thorpej Exp $ */
3
4/*-
5 * Copyright (C) 2001 Benno Rice
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions

--- 166 unchanged lines hidden (view full) ---

176 * or the (currently used) C code optimized, so it doesn't use any non-volatile
177 * registers.
178 */
179 .globl setfault
180setfault:
181 mflr 0
182 mfcr 12
183 mfsprg 4,0
184 lwz 4,PC_CURTHREAD(4)
185 lwz 4,TD_PCB(4)
184 lwz 4,TD_PCB(2) /* curthread = r2 */
186 stw 3,PCB_ONFAULT(4)
187 stw 0,0(3)
188 stw 1,4(3)
189 stw 2,8(3)
190 stmw 12,12(3)
191 xor 3,3,3
192 blr
193
194#include <powerpc/aim/trap_subr32.S>
185 stw 3,PCB_ONFAULT(4)
186 stw 0,0(3)
187 stw 1,4(3)
188 stw 2,8(3)
189 stmw 12,12(3)
190 xor 3,3,3
191 blr
192
193#include <powerpc/aim/trap_subr32.S>