blob: 3134b0e0b8b805347566464677a4aaf41f700fc2 [file] [log] [blame]
Ian Elliott2d4ab1e2015-01-13 17:52:38 -07001/*
Courtney Goeltzenleuchterd8e229c2015-04-08 15:36:08 -06002 * Vulkan
Ian Elliott2d4ab1e2015-01-13 17:52:38 -07003 *
4 * Copyright (C) 2015 LunarG, Inc.
5 * Copyright 2014 Valve Software
6 * All Rights Reserved.
7 *
8 * Permission is hereby granted, free of charge, to any person obtaining a
9 * copy of this software and associated documentation files (the "Software"),
10 * to deal in the Software without restriction, including without limitation
11 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
12 * and/or sell copies of the Software, and to permit persons to whom the
13 * Software is furnished to do so, subject to the following conditions:
14 *
15 * The above copyright notice and this permission notice shall be included
16 * in all copies or substantial portions of the Software.
17 *
18 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
21 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
23 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
24 * DEALINGS IN THE SOFTWARE.
25 *
26 * Authors:
Jon Ashburn2077e382015-06-29 11:25:34 -060027 * Jon Ashburn <jon@luanrg.com>
Ian Elliott2d4ab1e2015-01-13 17:52:38 -070028 * Ian Elliott <ian@lunarg.com>
29 */
30
31#ifndef LOADER_PLATFORM_H
32#define LOADER_PLATFORM_H
33
Cody Northrop33fa0412015-07-08 16:48:37 -060034#include "vk_platform.h"
35
Ian Elliott2d4ab1e2015-01-13 17:52:38 -070036#if defined(__linux__)
37/* Linux-specific common code: */
38
39// Headers:
40//#define _GNU_SOURCE 1
41// TBD: Are the contents of the following file used?
42#include <unistd.h>
43// Note: The following file is for dynamic loading:
44#include <dlfcn.h>
45#include <pthread.h>
46#include <assert.h>
Jon Ashburn2077e382015-06-29 11:25:34 -060047#include <stdbool.h>
Jon Ashburn15315172015-07-07 15:06:25 -060048#include <libgen.h>
Ian Elliott2d4ab1e2015-01-13 17:52:38 -070049
Courtney Goeltzenleuchterd8e229c2015-04-08 15:36:08 -060050// VK Library Filenames, Paths, etc.:
Ian Elliott457810e2015-02-04 11:22:39 -070051#define PATH_SEPERATOR ':'
Jon Ashburn2077e382015-06-29 11:25:34 -060052#define DIRECTORY_SYMBOL '/'
53
James Jonesc28b0a12015-07-23 17:39:37 -070054#define VULKAN_ICDCONF_DIR "/" "vulkan" "/" "icd.d"
55#define VULKAN_ICD_DIR "/" "vulkan" "/" "icd"
James Jones34c500b2015-07-24 11:35:16 -070056#define VULKAN_ELAYERCONF_DIR "/" "vulkan" "/" "explicit_layer.d"
James Jonesc28b0a12015-07-23 17:39:37 -070057#define VULKAN_ILAYERCONF_DIR "/" "vulkan" "/" "implicit_layer.d"
58#define VULKAN_LAYER_DIR "/" "vulkan" "/" "layer"
59
60#if defined(LOCALPREFIX)
61#define LOCAL_DRIVERS_INFO \
62 LOCALPREFIX "/" SYSCONFDIR VULKAN_ICDCONF_DIR ":" \
63 LOCALPREFIX "/" DATADIR VULKAN_ICDCONF_DIR ":"
64#define LOCAL_DRIVERS_PATH \
65 LOCALPREFIX "/" LIBDIR VULKAN_ICD_DIR ":"
66#define LOCAL_LAYERS_INFO \
67 LOCALPREFIX "/" SYSCONFDIR VULKAN_ELAYERCONF_DIR ":" \
68 LOCALPREFIX "/" SYSCONFDIR VULKAN_ILAYERCONF_DIR ":" \
69 LOCALPREFIX "/" DATADIR VULKAN_ELAYERCONF_DIR ":" \
70 LOCALPREFIX "/" DATADIR VULKAN_ILAYERCONF_DIR ":"
71#define LOCAL_LAYERS_PATH \
72 LOCALPREFIX "/" LIBDIR VULKAN_LAYER_DIR ":"
73#else
74#define LOCAL_DRIVERS_INFO
75#define LOCAL_DRIVERS_PATH
76#define LOCAL_LAYERS_INFO
77#define LOCAL_LAYERS_PATH
78#endif
79
Adam Jackson3869f412015-07-23 16:29:26 -040080#define DEFAULT_VK_DRIVERS_INFO \
James Jonesc28b0a12015-07-23 17:39:37 -070081 LOCAL_DRIVERS_INFO \
James Jones09a436f2015-07-24 09:47:37 -070082 "/" SYSCONFDIR VULKAN_ICDCONF_DIR ":" \
James Jonesc28b0a12015-07-23 17:39:37 -070083 "/usr/" DATADIR VULKAN_ICDCONF_DIR
Adam Jackson3869f412015-07-23 16:29:26 -040084#define DEFAULT_VK_DRIVERS_PATH \
James Jonesc28b0a12015-07-23 17:39:37 -070085 LOCAL_DRIVERS_PATH \
86 "/usr/" LIBDIR VULKAN_ICD_DIR
Adam Jackson3869f412015-07-23 16:29:26 -040087#define DEFAULT_VK_LAYERS_INFO \
James Jonesc28b0a12015-07-23 17:39:37 -070088 LOCAL_LAYERS_INFO \
James Jones09a436f2015-07-24 09:47:37 -070089 "/" SYSCONFDIR VULKAN_ELAYERCONF_DIR ":" \
90 "/" SYSCONFDIR VULKAN_ILAYERCONF_DIR ":" \
James Jonesc28b0a12015-07-23 17:39:37 -070091 "/usr/" DATADIR VULKAN_ELAYERCONF_DIR ":" \
92 "/usr/" DATADIR VULKAN_ILAYERCONF_DIR
Adam Jackson3869f412015-07-23 16:29:26 -040093#define DEFAULT_VK_LAYERS_PATH \
James Jonesc28b0a12015-07-23 17:39:37 -070094 LOCAL_LAYERS_PATH \
95 "/usr/" LIBDIR VULKAN_LAYER_DIR
Jon Ashburn2d0c4bb2015-07-06 15:40:35 -060096#define LAYERS_PATH_ENV "VK_LAYER_DIRS"
Ian Elliott457810e2015-02-04 11:22:39 -070097
Ian Elliotte5369462015-02-12 16:44:56 -070098// C99:
Tobin Ehlisb0497852015-02-11 14:24:02 -070099#define PRINTF_SIZE_T_SPECIFIER "%zu"
100
Jon Ashburn2077e382015-06-29 11:25:34 -0600101// File IO
102static inline bool loader_platform_file_exists(const char *path)
103{
104 if (access(path, F_OK))
105 return false;
106 else
107 return true;
108}
109
Jon Ashburn15315172015-07-07 15:06:25 -0600110static inline bool loader_platform_is_path_absolute(const char *path)
111{
112 if (path[0] == '/')
113 return true;
114 else
115 return false;
116}
117
118static inline char *loader_platform_dirname(char *path)
119{
120 return dirname(path);
121}
122
Jon Ashburn2077e382015-06-29 11:25:34 -0600123// Dynamic Loading of libraries:
Ian Elliott2d4ab1e2015-01-13 17:52:38 -0700124typedef void * loader_platform_dl_handle;
125static inline loader_platform_dl_handle loader_platform_open_library(const char* libPath)
126{
Chia-I Wu6a218342015-02-18 14:39:54 -0700127 return dlopen(libPath, RTLD_LAZY | RTLD_LOCAL);
Ian Elliott2d4ab1e2015-01-13 17:52:38 -0700128}
129static inline char * loader_platform_open_library_error(const char* libPath)
130{
131 return dlerror();
132}
133static inline void loader_platform_close_library(loader_platform_dl_handle library)
134{
135 dlclose(library);
136}
137static inline void * loader_platform_get_proc_address(loader_platform_dl_handle library,
138 const char *name)
139{
140 assert(library);
141 assert(name);
142 return dlsym(library, name);
143}
144static inline char * loader_platform_get_proc_address_error(const char *name)
145{
146 return dlerror();
147}
148
149// Threads:
150typedef pthread_t loader_platform_thread;
151#define LOADER_PLATFORM_THREAD_ONCE_DECLARATION(var) \
152 pthread_once_t var = PTHREAD_ONCE_INIT;
Jon Ashburn27cd5842015-05-12 17:26:48 -0600153#define LOADER_PLATFORM_THREAD_ONCE_DEFINITION(var) \
154 pthread_once_t var;
Ian Elliott2d4ab1e2015-01-13 17:52:38 -0700155static inline void loader_platform_thread_once(void *ctl, void (* func) (void))
156{
157 assert(func != NULL);
158 assert(ctl != NULL);
159 pthread_once((pthread_once_t *) ctl, func);
160}
161
162// Thread IDs:
163typedef pthread_t loader_platform_thread_id;
164static inline loader_platform_thread_id loader_platform_get_thread_id()
165{
166 return pthread_self();
167}
168
169// Thread mutex:
170typedef pthread_mutex_t loader_platform_thread_mutex;
171static inline void loader_platform_thread_create_mutex(loader_platform_thread_mutex* pMutex)
172{
173 pthread_mutex_init(pMutex, NULL);
174}
175static inline void loader_platform_thread_lock_mutex(loader_platform_thread_mutex* pMutex)
176{
177 pthread_mutex_lock(pMutex);
178}
179static inline void loader_platform_thread_unlock_mutex(loader_platform_thread_mutex* pMutex)
180{
181 pthread_mutex_unlock(pMutex);
182}
183static inline void loader_platform_thread_delete_mutex(loader_platform_thread_mutex* pMutex)
184{
185 pthread_mutex_destroy(pMutex);
186}
Mike Stroyaned238bb2015-05-15 08:50:57 -0600187typedef pthread_cond_t loader_platform_thread_cond;
188static inline void loader_platform_thread_init_cond(loader_platform_thread_cond* pCond)
189{
190 pthread_cond_init(pCond, NULL);
191}
192static inline void loader_platform_thread_cond_wait(loader_platform_thread_cond* pCond, loader_platform_thread_mutex* pMutex)
193{
194 pthread_cond_wait(pCond, pMutex);
195}
196static inline void loader_platform_thread_cond_broadcast(loader_platform_thread_cond* pCond)
197{
198 pthread_cond_broadcast(pCond);
199}
Ian Elliott2d4ab1e2015-01-13 17:52:38 -0700200
Courtney Goeltzenleuchter7f5aafc2015-07-05 11:28:29 -0600201#define loader_stack_alloc(size) alloca(size)
202static inline void *loader_aligned_alloc(size_t alignment, size_t size) { return aligned_alloc(alignment, size); }
Ian Elliott2d4ab1e2015-01-13 17:52:38 -0700203
204#elif defined(_WIN32) // defined(__linux__)
205/* Windows-specific common code: */
206
207// Headers:
Piers Daniell188f8202015-02-24 13:58:47 -0700208#include <WinSock2.h>
Ian Elliott2d4ab1e2015-01-13 17:52:38 -0700209#include <windows.h>
210#include <assert.h>
Tony Barbour1d825c72015-06-18 16:29:32 -0600211#include <stdio.h>
Jon Ashburnffad94d2015-06-30 14:46:22 -0700212#include <io.h>
213#include <stdbool.h>
Cody Northrop33fa0412015-07-08 16:48:37 -0600214#include <shlwapi.h>
Ian Elliott2d4ab1e2015-01-13 17:52:38 -0700215#ifdef __cplusplus
216#include <iostream>
217#include <string>
218using namespace std;
219#endif // __cplusplus
220
Courtney Goeltzenleuchterd8e229c2015-04-08 15:36:08 -0600221// VK Library Filenames, Paths, etc.:
Ian Elliott457810e2015-02-04 11:22:39 -0700222#define PATH_SEPERATOR ';'
Jon Ashburn2077e382015-06-29 11:25:34 -0600223#define DIRECTORY_SYMBOL '\\'
Jon Ashburnffad94d2015-06-30 14:46:22 -0700224#define DEFAULT_VK_REGISTRY_HIVE HKEY_LOCAL_MACHINE
225#define DEFAULT_VK_DRIVERS_INFO "SOFTWARE\\Khronos\\Vulkan\\Drivers"
Jon Ashburn2077e382015-06-29 11:25:34 -0600226// TODO: Are these the correct paths
scygan713b1b02015-06-01 19:47:08 +0200227#define DEFAULT_VK_DRIVERS_PATH "C:\\Windows\\System32;C:\\Windows\\SysWow64"
Jon Ashburn2d0c4bb2015-07-06 15:40:35 -0600228#define DEFAULT_VK_LAYERS_INFO "SOFTWARE\\Khronos\\Vulkan\\ExplicitLayers;SOFTWARE\\Khronos\\Vulkan\\ImplicitLayers"
Jon Ashburn15315172015-07-07 15:06:25 -0600229#define DEFAULT_VK_LAYERS_PATH "C:\\Windows\\System32;C:\\Windows\\SysWow64"
Jon Ashburnbb234562015-07-23 18:58:21 -0600230#define LAYERS_PATH_ENV "VK_LAYER_FOLDERS"
Ian Elliott457810e2015-02-04 11:22:39 -0700231
Ian Elliott2d4ab1e2015-01-13 17:52:38 -0700232// C99:
233// Microsoft didn't implement C99 in Visual Studio; but started adding it with
234// VS2013. However, VS2013 still didn't have snprintf(). The following is a
Ian Elliott19628802015-02-04 12:06:46 -0700235// work-around (Note: The _CRT_SECURE_NO_WARNINGS macro must be set in the
236// "CMakeLists.txt" file).
Ian Elliott2d4ab1e2015-01-13 17:52:38 -0700237#define snprintf _snprintf
Jon Ashburn15315172015-07-07 15:06:25 -0600238#define strdup _strdup
Tobin Ehlisb0497852015-02-11 14:24:02 -0700239#define PRINTF_SIZE_T_SPECIFIER "%Iu"
David Pinedoa01c13a2015-07-02 09:04:37 -0600240
David Pinedoa01c13a2015-07-02 09:04:37 -0600241
Jon Ashburn2077e382015-06-29 11:25:34 -0600242// File IO
Jon Ashburnffad94d2015-06-30 14:46:22 -0700243static bool loader_platform_file_exists(const char *path)
Jon Ashburn2077e382015-06-29 11:25:34 -0600244{
Jon Ashburnffad94d2015-06-30 14:46:22 -0700245 if ((_access(path, 0)) == -1)
Jon Ashburn2077e382015-06-29 11:25:34 -0600246 return false;
247 else
248 return true;
249}
250
Cody Northrop33fa0412015-07-08 16:48:37 -0600251static bool loader_platform_is_path_absolute(const char *path)
Jon Ashburn15315172015-07-07 15:06:25 -0600252{
253 return !PathIsRelative(path);
254}
255
256// WIN32 runtime doesn't have dirname().
257static inline char *loader_platform_dirname(char *path)
258{
259 char *current, *next;
260
261 // TODO/TBD: Do we need to deal with the Windows's ":" character?
262
263 for (current = path; *current != '\0'; current = next) {
264 next = strchr(current, DIRECTORY_SYMBOL);
265 if (next == NULL) {
266 if (current != path)
267 *(current - 1) = '\0';
268 return path;
269 } else {
270 // Point one character past the DIRECTORY_SYMBOL:
271 next++;
272 }
273 }
274 return path;
275}
276
277// WIN32 runtime doesn't have basename().
278// Microsoft also doesn't have basename(). Paths are different on Windows, and
279// so this is just a temporary solution in order to get us compiling, so that we
280// can test some scenarios, and develop the correct solution for Windows.
281 // TODO: Develop a better, permanent solution for Windows, to replace this
282 // temporary code:
283static char *loader_platform_basename(char *pathname)
284{
285 char *current, *next;
286
287// TODO/TBD: Do we need to deal with the Windows's ":" character?
288
289 for (current = pathname; *current != '\0'; current = next) {
290 next = strchr(current, DIRECTORY_SYMBOL);
291 if (next == NULL) {
292 // No more DIRECTORY_SYMBOL's so return p:
293 return current;
294 } else {
295 // Point one character past the DIRECTORY_SYMBOL:
296 next++;
297 }
298 }
299 // We shouldn't get to here, but this makes the compiler happy:
300 return current;
301}
302
Ian Elliott2d4ab1e2015-01-13 17:52:38 -0700303// Dynamic Loading:
304typedef HMODULE loader_platform_dl_handle;
305static loader_platform_dl_handle loader_platform_open_library(const char* libPath)
306{
307 return LoadLibrary(libPath);
308}
309static char * loader_platform_open_library_error(const char* libPath)
310{
311 static char errorMsg[120];
312 snprintf(errorMsg, 119, "Failed to open dynamic library \"%s\"", libPath);
313 return errorMsg;
314}
315static void loader_platform_close_library(loader_platform_dl_handle library)
316{
317 FreeLibrary(library);
318}
319static void * loader_platform_get_proc_address(loader_platform_dl_handle library,
320 const char *name)
321{
322 assert(library);
323 assert(name);
324 return GetProcAddress(library, name);
325}
326static char * loader_platform_get_proc_address_error(const char *name)
327{
328 static char errorMsg[120];
329 snprintf(errorMsg, 119, "Failed to find function \"%s\" in dynamic library", name);
330 return errorMsg;
331}
332
333// Threads:
334typedef HANDLE loader_platform_thread;
335#define LOADER_PLATFORM_THREAD_ONCE_DECLARATION(var) \
336 INIT_ONCE var = INIT_ONCE_STATIC_INIT;
Jon Ashburn27cd5842015-05-12 17:26:48 -0600337#define LOADER_PLATFORM_THREAD_ONCE_DEFINITION(var) \
338 INIT_ONCE var;
Piers Daniell4da523a2015-02-23 16:23:13 -0700339static BOOL CALLBACK InitFuncWrapper(PINIT_ONCE InitOnce, PVOID Parameter, PVOID *Context)
340{
341 void (*func)(void) = (void (*)(void))Parameter;
342 func();
343 return TRUE;
344}
345
Ian Elliott2d4ab1e2015-01-13 17:52:38 -0700346static void loader_platform_thread_once(void *ctl, void (* func) (void))
347{
348 assert(func != NULL);
349 assert(ctl != NULL);
Piers Daniell4da523a2015-02-23 16:23:13 -0700350 InitOnceExecuteOnce((PINIT_ONCE) ctl, InitFuncWrapper, func, NULL);
Ian Elliott2d4ab1e2015-01-13 17:52:38 -0700351}
352
353// Thread IDs:
354typedef DWORD loader_platform_thread_id;
355static loader_platform_thread_id loader_platform_get_thread_id()
356{
357 return GetCurrentThreadId();
358}
359
360// Thread mutex:
361typedef CRITICAL_SECTION loader_platform_thread_mutex;
362static void loader_platform_thread_create_mutex(loader_platform_thread_mutex* pMutex)
363{
364 InitializeCriticalSection(pMutex);
365}
366static void loader_platform_thread_lock_mutex(loader_platform_thread_mutex* pMutex)
367{
368 EnterCriticalSection(pMutex);
369}
370static void loader_platform_thread_unlock_mutex(loader_platform_thread_mutex* pMutex)
371{
372 LeaveCriticalSection(pMutex);
373}
374static void loader_platform_thread_delete_mutex(loader_platform_thread_mutex* pMutex)
375{
376 DeleteCriticalSection(pMutex);
377}
Mike Stroyanc3d98332015-05-15 17:34:51 -0600378typedef CONDITION_VARIABLE loader_platform_thread_cond;
379static void loader_platform_thread_init_cond(loader_platform_thread_cond* pCond)
380{
381 InitializeConditionVariable(pCond);
382}
383static void loader_platform_thread_cond_wait(loader_platform_thread_cond* pCond, loader_platform_thread_mutex* pMutex)
384{
385 SleepConditionVariableCS(pCond, pMutex, INFINITE);
386}
387static void loader_platform_thread_cond_broadcast(loader_platform_thread_cond* pCond)
388{
389 WakeAllConditionVariable(pCond);
390}
Ian Elliott2d4ab1e2015-01-13 17:52:38 -0700391
Ian Elliott5aa4ea22015-03-31 15:32:41 -0600392// Windows Registry:
393char *loader_get_registry_string(const HKEY hive,
394 const LPCTSTR sub_key,
395 const char *value);
396
Ian Elliott2d4ab1e2015-01-13 17:52:38 -0700397#else // defined(_WIN32)
398
399#error The "loader_platform.h" file must be modified for this OS.
400
401// NOTE: In order to support another OS, an #elif needs to be added (above the
402// "#else // defined(_WIN32)") for that OS, and OS-specific versions of the
403// contents of this file must be created.
404
405// NOTE: Other OS-specific changes are also needed for this OS. Search for
406// files with "WIN32" in it, as a quick way to find files that must be changed.
407
408#endif // defined(_WIN32)
409
Ian Elliott655cad72015-02-12 17:08:34 -0700410#else /* LOADER_PLATFORM_H */
411#ifndef LOADER_PLATFORM_H_TEMP
412#define LOADER_PLATFORM_H_TEMP
413
414// NOTE: The following are hopefully-temporary macros to ensure that people
415// don't forget to use the loader_platform_*() functions above:
416
417#if defined(__linux__)
418/* Linux-specific common code: */
419
420// Dynamic Loading:
421#define dlopen PLEASE USE THE loader_platform_open_library() FUNCTION
422#define dlerror PLEASE DO NOT USE THE dlerror() FUNCTION DIRECTLY
423#define dlclose PLEASE USE THE loader_platform_close_library() FUNCTION
424#define dlsym PLEASE USE THE loader_platform_get_proc_address() FUNCTION
425
426// Threads:
427#define pthread_once PLEASE USE THE loader_platform_thread_once() FUNCTION
428#define pthread_self PLEASE USE THE loader_platform_get_thread_id() FUNCTION
429
430// Thread mutex:
431#define pthread_mutex_init PLEASE USE THE loader_platform_thread_create_mutex() FUNCTION
432#define pthread_mutex_lock PLEASE USE THE loader_platform_thread_lock_mutex() FUNCTION
433#define pthread_mutex_unlock PLEASE USE THE loader_platform_thread_unlock_mutex() FUNCTION
434#define pthread_mutex_destroy PLEASE USE THE loader_platform_thread_delete_mutex() FUNCTION
435
436
437#elif defined(_WIN32) // defined(__linux__)
438/* Windows-specific common code: */
439
440// Dynamic Loading:
441//#define LoadLibrary PLEASE USE THE loader_platform_open_library() FUNCTION
442#define FreeLibrary PLEASE USE THE loader_platform_close_library() FUNCTION
443#define GetProcAddress PLEASE USE THE loader_platform_get_proc_address() FUNCTION
444
445// Threads:
446#define InitOnceExecuteOnce PLEASE USE THE loader_platform_thread_once() FUNCTION
447#define GetCurrentThreadId PLEASE USE THE loader_platform_get_thread_id() FUNCTION
448
449// Thread mutex:
450#define InitializeCriticalSection PLEASE USE THE loader_platform_thread_create_mutex() FUNCTION
451#define EnterCriticalSection PLEASE USE THE loader_platform_thread_lock_mutex() FUNCTION
452#define LeaveCriticalSection PLEASE USE THE loader_platform_thread_unlock_mutex() FUNCTION
453#define DeleteCriticalSection PLEASE USE THE loader_platform_thread_delete_mutex() FUNCTION
454
Courtney Goeltzenleuchter7f5aafc2015-07-05 11:28:29 -0600455#define loader_stack_alloc(size) _alloca(size)
Cody Northrop33fa0412015-07-08 16:48:37 -0600456static inline void *loader_aligned_alloc(size_t alignment, size_t size) { return _aligned_malloc(alignment, size); }
Ian Elliott655cad72015-02-12 17:08:34 -0700457
458#endif // defined(_WIN32)
459#endif /* LOADER_PLATFORM_H_TEMP */
Ian Elliott2d4ab1e2015-01-13 17:52:38 -0700460#endif /* LOADER_PLATFORM_H */