forked from M-Labs/libfringe
improve the assembly documentation
This commit is contained in:
parent
d25f43d4d5
commit
46b2a4007b
14
src/init.s
14
src/init.s
@ -1,11 +1,15 @@
|
||||
// Copyright (c) 2015, edef <edef@edef.eu>
|
||||
// See LICENSE file that comes with this distribution.
|
||||
|
||||
/// initialise a new context
|
||||
/// arguments: rdi: stack pointer,
|
||||
/// rsi: function pointer,
|
||||
/// rdx, data pointer
|
||||
/// rcx, stack limit
|
||||
//! initialise a new context
|
||||
//! arguments:
|
||||
//! * rdi: stack pointer
|
||||
//! * rsi: function pointer
|
||||
//! * rdx: data pointer
|
||||
//! * rcx: stack limit
|
||||
//!
|
||||
//! return values:
|
||||
//! * rdi: new stack pointer
|
||||
|
||||
// switch to the fresh stack
|
||||
xchg %rsp, %rdi
|
||||
|
@ -1,8 +1,9 @@
|
||||
// Copyright (c) 2015, edef <edef@edef.eu>
|
||||
// See LICENSE file that comes with this distribution.
|
||||
|
||||
/// switch to a new context
|
||||
/// arguments: rdi: stack pointer pointer
|
||||
//! switch to a new context
|
||||
//! arguments:
|
||||
//! * rdi: stack pointer pointer
|
||||
|
||||
// make sure we leave the red zone alone
|
||||
sub $$128, %rsp
|
||||
|
Loading…
Reference in New Issue
Block a user