Skip to content

Commit 7feba04

Browse files
committed
Update comment.
1 parent 88390e4 commit 7feba04

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

sdk/core/switcher/entry.S

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,9 @@ compartment_switcher_entry:
200200
and gp, gp, ~0xf
201201
// Skip zeroing if high water mark >= stack pointer
202202
bge t2, sp, after_zero
203-
// Use stack high water mark as base address for zeroing
204-
// XXX could be out of bounds / unrepresentable if bad csp?
203+
// Use stack high water mark as base address for zeroing. If this faults
204+
// then it will trigger a force unwind. This can happen only if the caller
205+
// is doing something bad.
205206
csetaddr ct2, csp, gp
206207
#endif
207208
zero_stack t2, s0, gp

0 commit comments

Comments
 (0)