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

Unified Diff: components/nacl/loader/nonsfi/nonsfi_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 side-by-side diff with in-line comments
Download patch
Index: components/nacl/loader/nonsfi/nonsfi_error_code.h
diff --git a/components/nacl/loader/nonsfi/nonsfi_error_code.h b/components/nacl/loader/nonsfi/nonsfi_error_code.h
new file mode 100644
index 0000000000000000000000000000000000000000..2d0edb9cc6e342e1ce0595d7030529a3ee3e34dd
--- /dev/null
+++ b/components/nacl/loader/nonsfi/nonsfi_error_code.h
@@ -0,0 +1,37 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef COMPONENTS_NACL_LOADER_NONSFI_NONSFI_ERROR_CODE_H_
+#define COMPONENTS_NACL_LOADER_NONSFI_NONSFI_ERROR_CODE_H_
+
+namespace nacl {
+namespace nonsfi {
+
+// The values are temporarily copied from
+// native_client/src/trusted/service_runtime/nacl_error_code.h in order to
+// split the dependency to the service_runtime.
+// TODO(hidehiko): Once Bare Metal Mode gets stable enough, we should merge
+// these values to nacl_error_code.
+enum NonSfiErrorCode {
+ LOAD_OK = 0,
+ LOAD_INTERNAL = 4,
+ LOAD_READ_ERROR = 8,
+ LOAD_TOO_MANY_PROG_HDRS = 9,
+ LOAD_BAD_PHENTSIZE = 10,
+ LOAD_BAD_ELF_MAGIC = 11,
+ LOAD_NOT_32_BIT = 12,
+ LOAD_NOT_EXEC = 15,
+ LOAD_BAD_MACHINE = 16,
+ LOAD_BAD_ELF_VERS = 17,
+ LOAD_NO_MEMORY = 20,
+ LOAD_UNLOADABLE = 32,
+ LOAD_BAD_EHSIZE = 60,
+ LOAD_EHDR_OVERFLOW = 61,
+ LOAD_PHDR_OVERFLOW = 62,
+};
+
+} // namespace nonsfi
+} // namespace nacl
+
+#endif // COMPONENTS_NACL_LOADER_NONSFI_NONSFI_ERROR_CODE_H_

Powered by Google App Engine
This is Rietveld 408576698