Changeset 8a568e3 in mainline for init/init.c
- Timestamp:
- 2006-05-14T17:17:35Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 52352ec
- Parents:
- 8071af9f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
init/init.c
r8071af9f r8a568e3 39 39 #include <as.h> 40 40 #include <ddi.h> 41 #include <string.h> 41 42 42 43 int a; … … 292 293 } 293 294 295 static int test_as_send() 296 { 297 char *as; 298 int retval; 299 ipcarg_t result; 300 301 as = as_area_create((void *)(1024*1024), 16384, AS_AREA_READ | AS_AREA_WRITE); 302 if (!as) { 303 printf("Error creating as.\n"); 304 return 0; 305 } 306 307 memcpy(as, "Hello world.\n", 14); 308 309 retval = ipc_call_sync_2(PHONE_NS, IPC_M_AS_SEND, 0, (sysarg_t) as, 310 NULL, NULL); 311 if (retval) { 312 printf("AS_SEND failed.\n"); 313 return 0; 314 } 315 printf("Done\n"); 316 } 317 294 318 int main(int argc, char *argv[]) 295 319 { … … 307 331 // test_hangup(); 308 332 // test_slam(); 309 333 test_as_send(); 334 /* 310 335 printf("Userspace task, taskid=%llX\n", task_get_id()); 311 336 … … 350 375 351 376 printf("Main thread exiting.\n"); 377 */ 352 378 return 0; 353 379 }
Note:
See TracChangeset
for help on using the changeset viewer.