Subversion Repositories HelenOS-historic

Rev

Rev 1773 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1773 Rev 1783
Line 26... Line 26...
26
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
#
27
#
28
 
28
 
29
#define INITIAL_STACK 0x0
29
#define INITIAL_STACK 0x0
30
 
30
 
-
 
31
#define PSTATE_IE_BIT	2
-
 
32
 
31
.register %g2, #scratch
33
.register %g2, #scratch
32
.register %g3, #scratch
34
.register %g3, #scratch
33
.register %g6, #scratch
35
.register %g6, #scratch
34
.register %g7, #scratch
36
.register %g7, #scratch
35
 
37
 
Line 50... Line 52...
50
 
52
 
51
.align 8
53
.align 8
52
1:	
54
1:	
53
	flushw
55
	flushw
54
 
56
 
-
 
57
	/*
-
 
58
	 * Disable interrupts.
-
 
59
	 */
-
 
60
	rdpr %pstate, %g2
-
 
61
	and %g2, ~PSTATE_IE_BIT, %g2	! mask the Interrupt Enable bit
-
 
62
	wrpr %g2, 0, %pstate
-
 
63
 
55
	# TODO: set initial stack
64
	# TODO: set initial stack
56
 
65
 
57
	set ofw, %l0
66
	set ofw_cif, %l0
58
 
67
 
59
	call init		! initialize OpenFirmware
68
	call init		! initialize OpenFirmware
60
	stx %o4, [%l0]
69
	stx %o4, [%l0]
61
	
70
	
62
	b bootstrap
71
	b bootstrap