OSDN Git Service

Merge "nanohub HAL: define magic value for nanoapp" into nyc-dev
authorAlexey Polyudov <apolyudov@google.com>
Mon, 2 May 2016 20:49:58 +0000 (20:49 +0000)
committerAndroid (Google) Code Review <android-gerrit@google.com>
Mon, 2 May 2016 20:49:58 +0000 (20:49 +0000)
include/hardware/context_hub.h

index a4ae0c2..99756cb 100644 (file)
@@ -121,6 +121,7 @@ struct mem_range_t {
 
 #define NANOAPP_SIGNED_FLAG    0x1
 #define NANOAPP_ENCRYPTED_FLAG 0x2
+#define NANOAPP_MAGIC (((uint32_t)'N' <<  0) | ((uint32_t)'A' <<  8) | ((uint32_t)'N' << 16) | ((uint32_t)'O' << 24))
 
 // The binary format below is in little endian format
 struct nano_app_binary_t {