Skip to content

Commit 75c62c4

Browse files
authored
Update ch8 1thread.rst
1 parent 3dc5ce9 commit 75c62c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/chapter8/1thread.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@
327327
#[inline(never)]
328328
unsafe fn switch(old: *mut TaskContext, new: *const TaskContext) {
329329
// a0: old, a1: new
330-
llvm_asm!("
330+
asm!("
331331
//if comment below lines: sd x1..., ld x1..., TASK2 can not finish, and will segment fault
332332
sd x1, 0x00(a0)
333333
sd x2, 0x08(a0)
@@ -388,4 +388,4 @@
388388

389389
.. [#explain_green_thread] https://cfsamson.gitbook.io/green-threads-explained-in-200-lines-of-rust/
390390
391-
.. [#code_green_thread] https://github.com/cfsamson/example-greenthreads
391+
.. [#code_green_thread] https://github.com/cfsamson/example-greenthreads

0 commit comments

Comments
 (0)