diff --git a/src/init.s b/src/init.s index 4dff02f..3258165 100644 --- a/src/init.s +++ b/src/init.s @@ -1,11 +1,15 @@ // Copyright (c) 2015, edef // 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 diff --git a/src/swap.s b/src/swap.s index e7ae3ac..b775d2b 100644 --- a/src/swap.s +++ b/src/swap.s @@ -1,8 +1,9 @@ // Copyright (c) 2015, edef // 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