Subversion Repositories HelenOS-historic

Rev

Rev 1131 | Rev 1157 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1131 Rev 1146
Line 110... Line 110...
110
	
110
	
111
	# r3 = bootinfo (pa)
111
	# r3 = bootinfo (pa)
112
	# r4 = bootinfo_size
112
	# r4 = bootinfo_size
113
	# r5 = trans (pa)
113
	# r5 = trans (pa)
114
	# r6 = kernel size
114
	# r6 = kernel size
-
 
115
	# r7 = framebuffer (pa)
115
	# r7 = real_mode (pa)
116
	# r8 = real_mode (pa)
116
	
117
	
117
	mtspr srr0, r7
118
	mtspr srr0, r8
118
	
119
	
119
	# jumps to real_mode
120
	# jumps to real_mode
120
	
121
	
121
	mfmsr r31
122
	mfmsr r31
122
	lis r30, ~0@h
123
	lis r30, ~0@h
Line 133... Line 134...
133
	
134
	
134
	# copy kernel to proper location
135
	# copy kernel to proper location
135
	#
136
	#
136
	# r5 = trans (pa)
137
	# r5 = trans (pa)
137
	# r6 = kernel size
138
	# r6 = kernel size
-
 
139
	# r7 = framebuffer (pa)
138
	
140
	
139
	li r31, PAGE_SIZE >> 2
141
	li r31, PAGE_SIZE >> 2
140
	li r30, 0
142
	li r30, 0
141
	
143
	
142
	page_copy:
144
	page_copy:
Line 227... Line 229...
227
	# FIXME: temporal framebuffer mapping
229
	# FIXME: temporal framebuffer mapping
228
	
230
	
229
	lis r31, 0xf000
231
	lis r31, 0xf000
230
	ori r31, r31, 0x0ffe
232
	ori r31, r31, 0x0ffe
231
	
233
	
232
	lis r30, 0x8400
234
	mr r30, r7
233
	ori r30, r30, 0x0002
235
	ori r30, r30, 0x0002
234
	
236
	
235
	mtspr dbat1u, r31
237
	mtspr dbat1u, r31
236
	mtspr dbat1l, r30
238
	mtspr dbat1l, r30
237
	
239
	
Line 248... Line 250...
248
	
250
	
249
	mfmsr r31
251
	mfmsr r31
250
	ori r31, r31, (msr_ir | msr_dr)@l
252
	ori r31, r31, (msr_ir | msr_dr)@l
251
	mtspr srr1, r31
253
	mtspr srr1, r31
252
	
254
	
-
 
255
	sync
-
 
256
	isync
253
	rfi
257
	rfi
254
 
258
 
255
.align PAGE_WIDTH
259
.align PAGE_WIDTH
256
.global trans
260
.global trans
257
trans:
261
trans: