Subversion Repositories HelenOS

Rev

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

Rev 3672 Rev 4277
Line 82... Line 82...
82
	srlx %l6, 13, %l5
82
	srlx %l6, 13, %l5
83
	
83
	
84
	! l5 <= physmem_base[(PHYSMEM_ADDR_SIZE - 1):13]
84
	! l5 <= physmem_base[(PHYSMEM_ADDR_SIZE - 1):13]
85
	sllx %l5, 13 + (63 - (PHYSMEM_ADDR_SIZE - 1)), %l5
85
	sllx %l5, 13 + (63 - (PHYSMEM_ADDR_SIZE - 1)), %l5
86
	srlx %l5, 63 - (PHYSMEM_ADDR_SIZE - 1), %l5	
86
	srlx %l5, 63 - (PHYSMEM_ADDR_SIZE - 1), %l5	
87
	
87
 
88
	/*
88
	/*
89
	 * Setup basic runtime environment.
89
	 * Setup basic runtime environment.
90
	 */
90
	 */
91
 
91
 
92
	wrpr %g0, NWINDOWS - 2, %cansave	! set maximum saveable windows
92
	wrpr %g0, NWINDOWS - 2, %cansave	! set maximum saveable windows
Line 331... Line 331...
331
	 */
331
	 */
332
	set waking_up_mid, %g2
332
	set waking_up_mid, %g2
333
2:
333
2:
334
	ldx [%g2], %g3
334
	ldx [%g2], %g3
335
	cmp %g3, %g1
335
	cmp %g3, %g1
336
	bne 2b
336
	bne %xcc, 2b
337
	nop
337
	nop
338
 
338
 
339
	/*
339
	/*
340
	 * Configure stack for the AP.
340
	 * Configure stack for the AP.
341
	 * The AP is expected to use the stack saved
341
	 * The AP is expected to use the stack saved
Line 379... Line 379...
379
.global physmem_base		! copy of the physical memory base address
379
.global physmem_base		! copy of the physical memory base address
380
physmem_base:
380
physmem_base:
381
	.quad 0
381
	.quad 0
382
 
382
 
383
/*
383
/*
384
 * This variable is used by the fast_data_MMU_miss trap handler. In runtime, it
384
 * The fast_data_access_mmu_miss_data_hi label and the end_of_identity and
385
 * is further modified to reflect the starting address of physical memory.
385
 * kernel_8k_tlb_data_template variables are meant to stay together,
-
 
386
 * aligned on 16B boundary.
386
 */
387
 */
-
 
388
.global fast_data_access_mmu_miss_data_hi
-
 
389
.global end_of_identity 
387
.global kernel_8k_tlb_data_template
390
.global kernel_8k_tlb_data_template
-
 
391
 
-
 
392
.align 16
-
 
393
/*
-
 
394
 * This label is used by the fast_data_access_MMU_miss trap handler.
-
 
395
 */
-
 
396
fast_data_access_mmu_miss_data_hi:
-
 
397
/*
-
 
398
 * This variable is used by the fast_data_access_MMU_miss trap handler.
-
 
399
 * In runtime, it is modified to contain the address of the end of physical
-
 
400
 * memory.
-
 
401
 */
-
 
402
end_of_identity:
-
 
403
	.quad -1 
-
 
404
/*
-
 
405
 * This variable is used by the fast_data_access_MMU_miss trap handler.
-
 
406
 * In runtime, it is further modified to reflect the starting address of
-
 
407
 * physical memory.
-
 
408
 */
388
kernel_8k_tlb_data_template:
409
kernel_8k_tlb_data_template:
389
#ifdef CONFIG_VIRT_IDX_DCACHE
410
#ifdef CONFIG_VIRT_IDX_DCACHE
390
	.quad ((1 << TTE_V_SHIFT) | (PAGESIZE_8K << TTE_SIZE_SHIFT) | TTE_CP | \
411
	.quad ((1 << TTE_V_SHIFT) | (PAGESIZE_8K << TTE_SIZE_SHIFT) | TTE_CP | \
391
		 TTE_CV | TTE_P | TTE_W)
412
		 TTE_CV | TTE_P | TTE_W)
392
#else /* CONFIG_VIRT_IDX_DCACHE */
413
#else /* CONFIG_VIRT_IDX_DCACHE */