Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 49 → Rev 50

/SPARTAN/trunk/doc/AUTHORS
1,0 → 0,0
Jakub Jermar
Jakub Vana
/SPARTAN/trunk/arch/ia64/boot/boot.s
30,4 → 30,4
 
.global start
start:
brl 0x0000000000001000
brl 0x0000000000001000
/SPARTAN/trunk/arch/mips/boot/boot.s
33,11 → 33,11
.set nomacro
 
start:
# move 0x80000000 to reg $8
lui $8, 0x8000
# move 0x80000000 to reg $8
lui $8, 0x8000
# prepare stack
lui $29, 0x8100
# prepare stack
lui $29, 0x8100
j $8
nop
j $8
nop
/SPARTAN/trunk/arch/mips/src/asm.s
29,15 → 29,15
.text
 
.macro cp0_read reg
mfc0 $2,\reg
j $31
nop
mfc0 $2,\reg
j $31
nop
.endm
 
.macro cp0_write reg
mtc0 $4,\reg
j $31
nop
mtc0 $4,\reg
j $31
nop
.endm
 
.set noat
/SPARTAN/trunk/arch/mips/src/fake.s
38,5 → 38,5
userspace:
calibrate_delay_loop:
asm_delay_loop:
j $31
nop
j $31
nop
/SPARTAN/trunk/arch/mips/src/start.S
44,48 → 44,48
.org 0x0
kernel_image_start:
tlb_refill_entry:
j tlb_refill_handler
nop
j tlb_refill_handler
nop
 
.org 0x100
cache_error_entry:
j cache_error_handler
nop
j cache_error_handler
nop
.org 0x180
exception_entry:
exception_handler:
sub $29, STACK_SPACE
REGISTERS_STORE $29
sub $29, STACK_SPACE
REGISTERS_STORE $29
jal exception
nop
jal exception
nop
REGISTERS_LOAD $29
add $29, STACK_SPACE
REGISTERS_LOAD $29
add $29, STACK_SPACE
 
eret
eret
 
tlb_refill_handler:
sub $29, STACK_SPACE
REGISTERS_STORE $29
sub $29, STACK_SPACE
REGISTERS_STORE $29
jal tlb_refill
nop
jal tlb_refill
nop
REGISTERS_LOAD $29
add $29, STACK_SPACE
REGISTERS_LOAD $29
add $29, STACK_SPACE
eret
eret
 
cache_error_handler:
sub $29, STACK_SPACE
REGISTERS_STORE $29
sub $29, STACK_SPACE
REGISTERS_STORE $29
 
jal cache_error
nop
jal cache_error
nop
REGISTERS_LOAD $29
add $29, STACK_SPACE
REGISTERS_LOAD $29
add $29, STACK_SPACE
 
eret
eret
/SPARTAN/trunk/arch/ia32/src/context.s
30,8 → 30,11
 
.global context_save
.global context_restore
.global fpu_context_save
.global fpu_context_restore
.global fpu_lazy_context_save
.global fpu_lazy_context_restore
 
 
#
# save context of this CPU
context_save:
76,23 → 79,23
ret
 
 
.global fpu_context_save
fpu_context_save:
ret
.global fpu_context_restore
 
fpu_context_restore:
ret
 
.global fpu_lazy_context_save
fpu_lazy_context_save:
mov 4(%esp),%eax;
pushl %eax
mov 8(%esp),%eax
fxsave (%eax)
xor %eax,%eax;
ret;
.global fpu_lazy_context_restore
popl %eax
ret
 
fpu_lazy_context_restore:
mov 4(%esp),%eax;
pushl %eax
mov 8(%esp),%eax
fxrstor (%eax)
xor %eax,%eax;
ret;
popl %eax
ret