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

Side by Side Diff: components/nacl/loader/bare_metal/bare_metal_error_code.h

Issue 100373005: Initial implementation of Bare Metal Mode for NaCl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
(Empty)
1 /*
2 * Copyright 2013 The Chromium Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file.
5 */
6
7 #ifndef COMPONENTS_NACL_LOADER_BARE_METAL_BARE_METAL_ERROR_CODE_H_
8 #define COMPONENTS_NACL_LOADER_BARE_METAL_BARE_METAL_ERROR_CODE_H_
9
10 #include "native_client/src/include/nacl_base.h"
11
12 EXTERN_C_BEGIN
13
14 /*
15 * The values are temporarily copied from
16 * native_client/src/trusted/service_runtime/nacl_error_code.h in order to
17 * split the dependency to the service_runtime.
18 * TODO(hidehiko): Once Bare Metal Mode gets stable enough, we should merge
19 * these values to nacl_error_code.
20 */
21 typedef enum NaClBareMetalErrorCode {
22 BARE_METAL_LOAD_OK = 0,
23 BARE_METAL_LOAD_INTERNAL = 4,
24 BARE_METAL_LOAD_READ_ERROR = 8,
25 BARE_METAL_LOAD_TOO_MANY_PROG_HDRS = 9,
26 BARE_METAL_LOAD_BAD_PHENTSIZE = 10,
27 BARE_METAL_LOAD_BAD_ELF_MAGIC = 11,
28 BARE_METAL_LOAD_NOT_32_BIT = 12,
29 BARE_METAL_LOAD_NOT_EXEC = 15,
30 BARE_METAL_LOAD_BAD_MACHINE = 16,
31 BARE_METAL_LOAD_BAD_ELF_VERS = 17,
32 BARE_METAL_LOAD_NO_MEMORY = 20,
33 BARE_METAL_LOAD_UNLOADABLE = 32,
34 BARE_METAL_LOAD_BAD_EHSIZE = 60,
35 BARE_METAL_LOAD_EHDR_OVERFLOW = 61,
36 BARE_METAL_LOAD_PHDR_OVERFLOW = 62,
37 } NaClBareMetalErrorCode;
38
39 EXTERN_C_END
40
41 #endif /* COMPONENTS_NACL_LOADER_BARE_METAL_BARE_METAL_ERROR_CODE_H_ */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698