Deleted Added
full compact
locore64.S (209975) locore64.S (218824)
1/* $FreeBSD: head/sys/powerpc/aim/locore64.S 209975 2010-07-13 05:32:19Z nwhitehorn $ */
1/* $FreeBSD: head/sys/powerpc/aim/locore64.S 218824 2011-02-18 21:44:53Z 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

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

169 std 0,32(9) /* ofmsr[4] = sprg3 */
170
171 /* Switch to 64-bit mode */
172 mfmsr 9
173 li 8,1
174 insrdi 9,8,1,0
175 mtmsrd 9
176
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

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

169 std 0,32(9) /* ofmsr[4] = sprg3 */
170
171 /* Switch to 64-bit mode */
172 mfmsr 9
173 li 8,1
174 insrdi 9,8,1,0
175 mtmsrd 9
176
177 bl .OF_initial_setup
177 bl OF_initial_setup
178 nop
179
180 lis 4,end@ha
181 addi 4,4,end@l
182 mr 5,4
183
184 lis 3,kernbase@ha
185 addi 3,3,kernbase@l
186
187 /* Restore the argument pointer and length */
188 mr 6,20
189 mr 7,21
190
178 nop
179
180 lis 4,end@ha
181 addi 4,4,end@l
182 mr 5,4
183
184 lis 3,kernbase@ha
185 addi 3,3,kernbase@l
186
187 /* Restore the argument pointer and length */
188 mr 6,20
189 mr 7,21
190
191 bl .powerpc_init
191 bl powerpc_init
192 nop
193 mr %r1, %r3
194 li %r3, 0
195 std %r3, 0(%r1)
192 nop
193 mr %r1, %r3
194 li %r3, 0
195 std %r3, 0(%r1)
196 bl .mi_startup
196 bl mi_startup
197 nop
197 nop
198 b .OF_exit
198 b OF_exit
199 nop
200
201/*
202 * PPC64 ABI TOC base
203 */
204
205 .align 3
206 .globl tocbase

--- 163 unchanged lines hidden ---
199 nop
200
201/*
202 * PPC64 ABI TOC base
203 */
204
205 .align 3
206 .globl tocbase

--- 163 unchanged lines hidden ---