Subversion Repositories HelenOS

Rev

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

Rev 1787 Rev 1789
Line 27... Line 27...
27
#
27
#
28
 
28
 
29
#define INITIAL_STACK 0x0
29
#define INITIAL_STACK 0x0
30
 
30
 
31
#define PSTATE_IE_BIT	2
31
#define PSTATE_IE_BIT	2
-
 
32
#define PSTATE_AM_BIT	8
32
 
33
 
33
.register %g2, #scratch
34
.register %g2, #scratch
34
.register %g3, #scratch
35
.register %g3, #scratch
35
.register %g6, #scratch
36
.register %g6, #scratch
36
.register %g7, #scratch
37
.register %g7, #scratch
Line 53... Line 54...
53
.align 8
54
.align 8
54
1:	
55
1:	
55
	flushw
56
	flushw
56
 
57
 
57
	/*
58
	/*
58
	 * Disable interrupts.
59
	 * Disable interrupts and disable address masking.
59
	 */
60
	 */
60
	rdpr %pstate, %g2
61
	rdpr %pstate, %g2
61
	and %g2, ~PSTATE_IE_BIT, %g2	! mask the Interrupt Enable bit
62
	and %g2, ~(PSTATE_IE_BIT|PSTATE_AM_BIT), %g2
62
	wrpr %g2, 0, %pstate
63
	wrpr %g2, 0, %pstate
63
 
64
 
64
	# TODO: set initial stack
65
	# TODO: set initial stack
65
 
66
 
66
	set ofw_cif, %l0
67
	set ofw_cif, %l0
67
 
68
 
68
	call init		! initialize OpenFirmware
69
	call ofw_init		! initialize OpenFirmware
69
	stx %o4, [%l0]
70
	stx %o4, [%l0]
70
	
71
	
71
	b bootstrap
72
	b bootstrap
72
	nop
73
	nop