Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(195)

Unified Diff: src/trusted/service_runtime/arch/x86_64/nacl_switch_64.S

Issue 10829110: Fix two register leaks in the trusted->untrusted context switch (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Fix comment Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/trusted/service_runtime/arch/x86_64/nacl_switch_64.S
diff --git a/src/trusted/service_runtime/arch/x86_64/nacl_switch_64.S b/src/trusted/service_runtime/arch/x86_64/nacl_switch_64.S
index a46d8dafe8d72d4b396929afd1e48d0f898a6c9e..772fa31a5c269aef845975b5fa5328dfc459846c 100644
--- a/src/trusted/service_runtime/arch/x86_64/nacl_switch_64.S
+++ b/src/trusted/service_runtime/arch/x86_64/nacl_switch_64.S
@@ -96,6 +96,9 @@ MACROENTRY
* are a byte shorter than their 64-bit counterparts
* when the target register is one of the first eight,
* and they implicitly zero the high halves.
+ *
+ * The 'xorl' instruction also resets most flags to known
+ * values.
*/
xorl %edx, %edx
movl %edx, %esi
« no previous file with comments | « src/trusted/service_runtime/arch/x86_32/springboard.S ('k') | src/trusted/service_runtime/arch/x86_64/nacl_syscall_64.S » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698