From c7ddb5367cad4bbed62aa25ebfc23b52a3d43473 Mon Sep 17 00:00:00 2001 From: black5box Date: Tue, 18 Nov 2025 18:05:53 +0800 Subject: [PATCH] chore: minor improvement for docs Signed-off-by: black5box --- crypto/perlasm/readme | 2 +- include/ring-core/asm_base.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crypto/perlasm/readme b/crypto/perlasm/readme index 3f159b30bb..78d7d0c89d 100644 --- a/crypto/perlasm/readme +++ b/crypto/perlasm/readme @@ -35,7 +35,7 @@ Functions of interest are: &function_begin_B(name,extra) Same as normal function_begin but no pushing. &function_end(name) Call at end of function. &function_end_A(name) Standard pop and ret, for use inside functions -&function_end_B(name) Call at end but with poping or 'ret'. +&function_end_B(name) Call at end but with popping or 'ret'. &swtmp(num) Address on stack temp word. &wparam(num) Parameter number num, that was push in C convention. This all works over pushes diff --git a/include/ring-core/asm_base.h b/include/ring-core/asm_base.h index ef8332680f..93dc106dba 100644 --- a/include/ring-core/asm_base.h +++ b/include/ring-core/asm_base.h @@ -54,7 +54,7 @@ // https://lpc.events/event/7/contributions/729/attachments/496/903/CET-LPC-2020.pdf // // cet.h defines _CET_ENDBR which is used to mark function entry points for IBT. -// and adds the assembly marker. The value of _CET_ENDBR is made dependant on if +// and adds the assembly marker. The value of _CET_ENDBR is made dependent on if // '-fcf-protection' is passed to the compiler. _CET_ENDBR is only required when // the function is the target of an indirect jump, but BoringSSL chooses to mark // all assembly entry points because it is easier, and allows BoringSSL's ABI