Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 79 → Rev 81

/SPARTAN/trunk/arch/ia64/include/context.h
31,6 → 31,8
 
#include <arch/types.h>
 
#define SP_DELTA 16
 
struct context {
__u64 r1;
__u64 r2;
/SPARTAN/trunk/arch/ia64/src/asm.S
38,3 → 38,7
sub r33 = r32, r33
br _memcopy
 
.global memcopy
memcopy:
br _memcopy
/SPARTAN/trunk/arch/ia64/src/start.S
34,11 → 34,18
 
stack0:
kernel_image_start:
.auto
# initialize PSR
mov psr.l = r0
# initialize register stack
alloc r1 = ar.pfs, 0, 0, 0, 0 ;;
mov ar.rsc = r0
loadrs
 
.explicit
# initialize memory stack to some sane value
movl r12=stack0
movl r12 = stack0 ;;
add r12 = - 16, r12 /* allocate a scratch area on the stack */
 
# initialize gp (Global Pointer) register
movl r1=k_text_start