Browse Source

Normalize this function's definition.

Don Porter 5 years ago
parent
commit
32c276f9ad

+ 1 - 1
Pal/src/host/FreeBSD/db_ipc.c

@@ -57,7 +57,7 @@ struct handle_ops gipc_ops = {
         .close              = &gipc_close,
     };
 
-int _DkCreatePhysicalMemoryChannel (PAL_HANDLE * handle, unsigned long * key)
+int _DkCreatePhysicalMemoryChannel (PAL_HANDLE * handle, uint64_t * key)
 {
     return -PAL_ERROR_NOTIMPLEMENTED;
 }

+ 1 - 1
Pal/src/host/Linux-SGX/db_ipc.c

@@ -52,7 +52,7 @@ struct handle_ops gipc_ops = {
         .close              = &gipc_close,
     };
 
-int _DkCreatePhysicalMemoryChannel (PAL_HANDLE * handle, unsigned long * key)
+int _DkCreatePhysicalMemoryChannel (PAL_HANDLE * handle, uint64_t * key)
 {
     return -PAL_ERROR_NOTIMPLEMENTED;
 }

+ 1 - 1
Pal/src/host/Linux/db_ipc.c

@@ -80,7 +80,7 @@ struct handle_ops gipc_ops = {
         .close              = &gipc_close,
     };
 
-int _DkCreatePhysicalMemoryChannel (PAL_HANDLE * handle, unsigned long * key)
+int _DkCreatePhysicalMemoryChannel (PAL_HANDLE * handle, uint64_t * key)
 {
     unsigned long token = 0;
     int fd = INLINE_SYSCALL(open, 3, GIPC_FILE, O_RDONLY|O_CLOEXEC, 0);

+ 1 - 1
Pal/src/host/Skeleton/db_ipc.c

@@ -51,7 +51,7 @@ struct handle_ops gipc_ops = {
         .close              = &gipc_close,
     };
 
-int _DkCreatePhysicalMemoryChannel (PAL_HANDLE * handle, PAL_NUM * key)
+int _DkCreatePhysicalMemoryChannel (PAL_HANDLE * handle, uint64_t * key)
 {
     return -PAL_ERROR_NOTIMPLEMENTED;
 }

+ 1 - 1
Pal/src/pal_internal.h

@@ -344,7 +344,7 @@ int _DkRandomBitsRead (void * buffer, int size);
 int _DkSegmentRegisterSet (int reg, const void * addr);
 int _DkSegmentRegisterGet (int reg, void ** addr);
 int _DkInstructionCacheFlush (const void * addr, int size);
-int _DkCreatePhysicalMemoryChannel (PAL_HANDLE * handle, unsigned long * key);
+int _DkCreatePhysicalMemoryChannel (PAL_HANDLE * handle, uint64_t * key);
 int _DkPhysicalMemoryCommit (PAL_HANDLE channel, int entries,
                              PAL_PTR * addrs, PAL_NUM * sizes, int flags);
 int _DkPhysicalMemoryMap (PAL_HANDLE channel, int entries,