OSDN Git Service

nanohub HAL: define magic value for nanoapp
authorAlexey Polyudov <apolyudov@google.com>
Thu, 28 Apr 2016 23:07:30 +0000 (16:07 -0700)
committerAlexey Polyudov <apolyudov@google.com>
Thu, 28 Apr 2016 23:09:54 +0000 (16:09 -0700)
Bug: 28265099
Change-Id: Ifd8082aa7a72af9a02e9ad6bc66100e465f46ec0
Signed-off-by: Alexey Polyudov <apolyudov@google.com>
include/hardware/context_hub.h

index 4b47b64..e4d50ef 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 {