Index: init/init.c
===================================================================
--- init/init.c	(revision fa3561fc0f80e44ba85fbeb392f6c1b753f193fe)
+++ init/init.c	(revision 043dcc27a5fffcd359e0accdf1a6122945f3aec9)
@@ -39,4 +39,5 @@
 #include <as.h>
 #include <ddi.h>
+#include <string.h>
 
 int a;
@@ -292,4 +293,27 @@
 }
 
+static int test_as_send()
+{
+	char *as;
+	int retval;
+	ipcarg_t result;
+
+	as = as_area_create((void *)(1024*1024), 16384, AS_AREA_READ | AS_AREA_WRITE);
+	if (!as) {
+		printf("Error creating as.\n");
+		return 0;
+	}
+
+	memcpy(as, "Hello world.\n", 14);
+
+	retval = ipc_call_sync_2(PHONE_NS, IPC_M_AS_SEND, 0, (sysarg_t) as,
+		NULL, NULL);
+	if (retval) {
+		printf("AS_SEND failed.\n");
+		return 0;
+	}
+	printf("Done\n");
+}
+
 int main(int argc, char *argv[])
 {
@@ -307,5 +331,6 @@
 //	test_hangup();
 //	test_slam();
-	
+	test_as_send();
+/*	
 	printf("Userspace task, taskid=%llX\n", task_get_id());
 
@@ -350,4 +375,5 @@
 
 	printf("Main thread exiting.\n");
+*/
 	return 0;
 }
