Subversion Repositories HelenOS

Rev

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

Rev 1996 Rev 2001
Line 62... Line 62...
62
 */
62
 */
63
 
63
 
64
.global kernel_image_start
64
.global kernel_image_start
65
kernel_image_start:
65
kernel_image_start:
66
	mov BSP_FLAG, %l0
66
	mov BSP_FLAG, %l0
67
	and %o0, %l0, %l7				! l7 <= bootstrap processor?
67
	and %o0, %l0, %l7			! l7 <= bootstrap processor?
68
	andn %o0, %l0, %l6				! l6 <= start of physical memory
68
	andn %o0, %l0, %l6			! l6 <= start of physical memory
69
 
69
 
70
	! Get bits 40:13 of physmem_base.
70
	! Get bits 40:13 of physmem_base.
71
	srlx %l6, 13, %l5
71
	srlx %l6, 13, %l5
72
	sllx %l5, 13 + (63 - 40), %l5
72
	sllx %l5, 13 + (63 - 40), %l5
73
	srlx %l5, 63 - 40, %l5				! l5 <= physmem_base[40:13]
73
	srlx %l5, 63 - 40, %l5			! l5 <= physmem_base[40:13]
74
	
74
	
75
	/*
75
	/*
76
	 * Setup basic runtime environment.
76
	 * Setup basic runtime environment.
77
	 */
77
	 */
78
 
78