Deleted Added
sdiff udiff text old ( 278495 ) new ( 279750 )
full compact
1/* $FreeBSD: head/sys/powerpc/aim/locore32.S 278495 2015-02-10 06:35:16Z rpaulo $ */
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

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

103
104/*
105 * Startup entry. Note, this must be the first thing in the text
106 * segment!
107 */
108 .text
109 .globl __start
110__start:
111 li 8,0
112 li 9,0x100
113 mtctr 9
1141:
115 dcbf 0,8
116 icbi 0,8
117 addi 8,8,0x20
118 bdnz 1b
119 sync
120 isync
121
122 /* Zero bss, in case we were started by something unhelpful */
123 li 0,0
124 lis 8,_edata@ha
125 addi 8,8,_edata@l
126 lis 9,_end@ha
127 addi 9,9,_end@l
1282: stw 0,0(8)
129 addi 8,8,4
130 cmplw 8,9
131 blt 2b
132
133 lis 1,(tmpstk+TMPSTKSZ-16)@ha
134 addi 1,1,(tmpstk+TMPSTKSZ-16)@l
135
136 bl powerpc_init
137 mr %r1, %r3
138 li %r3, 0
139 stw %r3, 0(%r1)
140 bl mi_startup
141 b OF_exit
142
143/*
144 * int setfault()
145 *
146 * Similar to setjmp to setup for handling faults on accesses to user memory.
147 * Any routine using this may only call bcopy, either the form below,
148 * or the (currently used) C code optimized, so it doesn't use any non-volatile

--- 17 unchanged lines hidden ---