Mercurial > pub > dyncall > dyncall
comparison dyncallback/dyncall_callback_sparc32.s @ 190:06ee88ce4962
- doc and comment fixes
author | Tassilo Philipp |
---|---|
date | Tue, 14 Mar 2017 00:07:31 +0100 |
parents | de5ed248757f |
children | 706fb60a1760 |
comparison
equal
deleted
inserted
replaced
189:b827c074b4da | 190:06ee88ce4962 |
---|---|
49 st %i4, [ %fp + 84 ] /* reg arg 4 */ | 49 st %i4, [ %fp + 84 ] /* reg arg 4 */ |
50 st %i5, [ %fp + 88 ] /* reg arg 5 */ | 50 st %i5, [ %fp + 88 ] /* reg arg 5 */ |
51 add %fp, 68, %l0 | 51 add %fp, 68, %l0 |
52 st %l0, [ %sp + 64 ] /* init arg_ptr */ | 52 st %l0, [ %sp + 64 ] /* init arg_ptr */ |
53 | 53 |
54 /* Zero retval store (for data < word size). */ | 54 /* Zero retval store. */ |
55 st %g0, [ %sp + 72 ] | 55 st %g0, [ %sp + 72 ] |
56 st %g0, [ %sp + 76 ] | 56 st %g0, [ %sp + 76 ] |
57 | 57 |
58 /* Prepare callback handler call. */ | 58 /* Prepare callback handler call. */ |
59 mov %g1, %o0 /* Param 0 = DCCallback*, %g1 holds ptr to thunk */ | 59 mov %g1, %o0 /* Param 0 = DCCallback*, %g1 holds ptr to thunk */ |
60 add %sp, 64, %o1 /* Param 1 = DCArgs* (ptr to struct with args ptr */ | 60 add %sp, 64, %o1 /* Param 1 = DCArgs* (ptr to struct with args ptr) */ |
61 add %sp, 72, %o2 /* Param 2 = results ptr to 8b of local stack data */ | 61 add %sp, 72, %o2 /* Param 2 = results ptr to 8b of local stack data */ |
62 ld [ %g1 + 28 ], %o3 /* Param 3 = userdata ptr */ | 62 ld [ %g1 + 28 ], %o3 /* Param 3 = userdata ptr */ |
63 | 63 |
64 ld [ %g1 + 24 ], %l0 | 64 ld [ %g1 + 24 ], %l0 |
65 call %l0 | 65 call %l0 |