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

Side by Side Diff: src/trusted/service_runtime/linux/x86/nacl_ldt.c

Issue 788193003: Create a build_config header file. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Created 6 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. 2 * Copyright (c) 2012 The Native Client Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be 3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file. 4 * found in the LICENSE file.
5 */ 5 */
6 6
7 /* 7 /*
8 * NaCl local descriptor table manipulation support. 8 * NaCl local descriptor table manipulation support.
9 */ 9 */
10 10
11 #include <asm/ldt.h> 11 #include <asm/ldt.h>
12 #include <stdio.h> 12 #include <stdio.h>
13
14 #include "native_client/src/include/nacl_defines.h"
15
13 #if NACL_ANDROID 16 #if NACL_ANDROID
14 #include <sys/syscall.h> 17 #include <sys/syscall.h>
15 #endif 18 #endif
16 19
17 #include "native_client/src/shared/platform/nacl_sync.h" 20 #include "native_client/src/shared/platform/nacl_sync.h"
18 #include "native_client/src/shared/platform/nacl_sync_checked.h" 21 #include "native_client/src/shared/platform/nacl_sync_checked.h"
19 #include "native_client/src/trusted/service_runtime/arch/x86/nacl_ldt_x86.h" 22 #include "native_client/src/trusted/service_runtime/arch/x86/nacl_ldt_x86.h"
20 #include "native_client/src/trusted/service_runtime/arch/x86/sel_ldr_x86.h" 23 #include "native_client/src/trusted/service_runtime/arch/x86/sel_ldr_x86.h"
21 24
22 #if NACL_ANDROID 25 #if NACL_ANDROID
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 ud.limit = 0; 297 ud.limit = 0;
295 ud.limit_in_pages = 0; 298 ud.limit_in_pages = 0;
296 ud.read_exec_only = 0; 299 ud.read_exec_only = 0;
297 ud.seg_32bit = 0; 300 ud.seg_32bit = 0;
298 ud.useable = 0; 301 ud.useable = 0;
299 ud.contents = MODIFY_LDT_CONTENTS_DATA; 302 ud.contents = MODIFY_LDT_CONTENTS_DATA;
300 NaClXMutexLock(&nacl_ldt_mutex); 303 NaClXMutexLock(&nacl_ldt_mutex);
301 modify_ldt(1, &ud, sizeof ud); 304 modify_ldt(1, &ud, sizeof ud);
302 NaClXMutexUnlock(&nacl_ldt_mutex); 305 NaClXMutexUnlock(&nacl_ldt_mutex);
303 } 306 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698