| OLD | NEW |
| 1 // Copyright (c) 2006-2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "linux_shadow_stacks.h" | 5 #include "linux_shadow_stacks.h" |
| 6 | 6 |
| 7 #include <stdio.h> | 7 #include <stdio.h> |
| 8 #include <stdlib.h> | 8 #include <stdlib.h> |
| 9 #include <string.h> | 9 #include <string.h> |
| 10 #include <unistd.h> | 10 #include <unistd.h> |
| 11 | 11 |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 | 119 |
| 120 void *get_shadow_ip_stack(int *index /*OUT*/) { | 120 void *get_shadow_ip_stack(int *index /*OUT*/) { |
| 121 *index = shadow_index; | 121 *index = shadow_index; |
| 122 return shadow_ip_stack; | 122 return shadow_ip_stack; |
| 123 } | 123 } |
| 124 | 124 |
| 125 void *get_shadow_sp_stack(int *index /*OUT*/) { | 125 void *get_shadow_sp_stack(int *index /*OUT*/) { |
| 126 *index = shadow_index; | 126 *index = shadow_index; |
| 127 return shadow_sp_stack; | 127 return shadow_sp_stack; |
| 128 } | 128 } |
| OLD | NEW |