From f057964f988c334d22bcaa02fe436739f27ed575 Mon Sep 17 00:00:00 2001 From: Yoshihiro YUNOMAE Date: Tue, 3 May 2016 16:33:09 +0900 Subject: [PATCH 1/2] Fix typo --- SysCall/syscall-2.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SysCall/syscall-2.md b/SysCall/syscall-2.md index 854b6f6..6eaf336 100644 --- a/SysCall/syscall-2.md +++ b/SysCall/syscall-2.md @@ -344,7 +344,7 @@ After this we can see the call of the `LOCKDEP_SYS_EXIT` macro from the [arch/x8 LOCKDEP_SYS_EXIT ``` -The implementation of this macro depends on the `CONFIG_DEBUG_LOCK_ALLOC` kernel configuration option that allows us to debug locks on exit from a system call. And again, we will not consider it in this chapter, but will return to it in a separate one. In the end of the `entry_SYSCALL_64` function we restore all general purpose registers besides `rxc` and `r11`, because the `rcx` register must contain the return address to the application that called system call and the `r11` register contains the old [flags register](https://en.wikipedia.org/wiki/FLAGS_register). After all general purpose registers are restored, we fill `rcx` with the return address, `r11` register with the flags and `rsp` with the old stack pointer: +The implementation of this macro depends on the `CONFIG_DEBUG_LOCK_ALLOC` kernel configuration option that allows us to debug locks on exit from a system call. And again, we will not consider it in this chapter, but will return to it in a separate one. In the end of the `entry_SYSCALL_64` function we restore all general purpose registers besides `rcx` and `r11`, because the `rcx` register must contain the return address to the application that called system call and the `r11` register contains the old [flags register](https://en.wikipedia.org/wiki/FLAGS_register). After all general purpose registers are restored, we fill `rcx` with the return address, `r11` register with the flags and `rsp` with the old stack pointer: ```assembly RESTORE_C_REGS_EXCEPT_RCX_R11 From 5545d5f6afe1232115e7ee6d3b0a8d60d617cd0a Mon Sep 17 00:00:00 2001 From: Yoshihiro YUNOMAE Date: Tue, 3 May 2016 16:35:13 +0900 Subject: [PATCH 2/2] Add yunomae to contributors --- contributors.md | 1 + 1 file changed, 1 insertion(+) diff --git a/contributors.md b/contributors.md index 3f3284c..3880417 100644 --- a/contributors.md +++ b/contributors.md @@ -85,3 +85,4 @@ Thank you to all contributors: * [Piyush Pangtey](https://github.com/pangteypiyush) * [Alfred Agrell](https://github.com/Alcaro) * [Jakub Wilk](https://github.com/jwilk) +* [Yoshihiro YUNOMAE](https://github.com/yunomae)