Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Figure 12.17 typo #19

Open
zhuozhiyongde opened this issue Dec 17, 2023 · 3 comments
Open

Figure 12.17 typo #19

zhuozhiyongde opened this issue Dec 17, 2023 · 3 comments

Comments

@zhuozhiyongde
Copy link

https://hansimov.gitbook.io/csapp/part3/ch12-concurrent-programming/12.5-synchronizing-thread-with-semaphores

配图有误(原书笔误)

Ref: https://stackoverflow.com/questions/48304514/what-does-this-x86-64-addq-instruction-mean-which-only-have-one-operand-from#comment83594042_48304514

Cleanshot-2023-12-17-at-15 09 14@2x

@dst111dst
Copy link

dst111dst commented Dec 17, 2023 via email

@zhuozhiyongde
Copy link
Author

根据官方改错 似乎应该是改后面两句

https://csapp.cs.cmu.edu/3e/errata.html

p. 997, The text describing Figure 12.17 is correct, but the Figure itself has two typos:
The Ui instruction should be addq $1, %rdx.
The Si instruction should be movq %rdx, cnt(%rip).
Posted 02/22/2018. Dr. Joann J Ordille

@Hansimov Hansimov pinned this issue Dec 17, 2023
@Hansimov
Copy link
Owner

@zhuozhiyongde 多谢补充和考证,有心了!我把这个 issue pin 起来。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants