#define LCD_WIDTH_PREFIX "width="
#define LCD_HEIGHT_PREFIX "height="
#define MIDBUF 128
+#if defined(TARGET_I386)
+#define ARCH "x86"
+#else
+#define ARCH "arm"
+#endif
int tizen_base_port;
char tizen_target_path[MAXLEN];
ERR("shmat failed\n");
return;
}
- sprintf(shared_memory, "%s", tizen_target_path);
+ sprintf(shared_memory, "%s:%s", tizen_target_path, ARCH);
INFO("shared memory key: %d value: %s\n",
tizen_base_port, (char *)shared_memory);
#elif defined(CONFIG_WIN32)
char *port_in_use;
char *shared_memory;
- shared_memory = g_strdup_printf("%s", tizen_target_path);
+ shared_memory = g_strdup_printf("%s:%s", tizen_target_path, ARCH);
port_in_use = g_strdup_printf("%d", tizen_base_port);
hMapFile = CreateFileMapping(
INVALID_HANDLE_VALUE, /* use paging file */
#include "nbd.h"\r
#include "tizen/src/debug_ch.h"\r
\r
-//DEFAULT_DEBUG_CHANNEL(qemu);\r
MULTI_DEBUG_CHANNEL(qemu, sdb);\r
\r
+#if defined(TARGET_I386)\r
+#define ARCH "x86"\r
+#else\r
+#define ARCH "arm"\r
+#endif\r
+\r
+\r
/* QSOCKET_CALL is used to deal with the fact that EINTR happens pretty\r
* easily in QEMU since we use SIGALRM to implement periodic timers\r
*/\r
}\r
\r
/* length is hex host:emulator:port: -> 0x13 = 20 */\r
+#if defined(CONFIG_DARWIN)\r
+ //TODO: not supported arch name on mac yet.\r
sprintf(tmp, "00%2xhost:emulator:%d:%s", 20 + strlen(targetname), tizen_base_port + 1, targetname);\r
+#else\r
+ sprintf(tmp, "00%2xhost:emulator:%d:%s:%s", 23 + strlen(targetname), tizen_base_port + 1, targetname, ARCH);\r
+#endif\r
INFO("message to send to SDB server: %s\n", tmp);\r
if (socket_send(s, tmp, MAXPACKETLEN) < 0) {\r
ERR( "message sending to SDB server error!\n");\r