int sys_process_get_id(u32 object, mem32_ptr_t buffer, u32 size, mem32_t set_size) { sc_p.Warning("TODO: sys_process_get_id(object=%d, buffer_addr=0x%x, size=%d, set_size_addr=0x%x)", object, buffer.GetAddr(), size, set_size.GetAddr()); switch(object) { #define ADD_OBJECTS(objects) { \ u32 i=0; \ for(auto id=objects.begin(); i<size && id!=objects.end(); id++, i++) \ buffer[i] = *id; \ set_size = i; \ } case SYS_MEM_OBJECT: ADD_OBJECTS(procObjects.mem_objects); break; case SYS_MUTEX_OBJECT: ADD_OBJECTS(procObjects.mutex_objects); break; case SYS_COND_OBJECT: ADD_OBJECTS(procObjects.cond_objects); break; case SYS_RWLOCK_OBJECT: ADD_OBJECTS(procObjects.rwlock_objects); break; case SYS_INTR_TAG_OBJECT: ADD_OBJECTS(procObjects.intr_tag_objects); break; case SYS_INTR_SERVICE_HANDLE_OBJECT: ADD_OBJECTS(procObjects.intr_service_handle_objects); break; case SYS_EVENT_QUEUE_OBJECT: ADD_OBJECTS(procObjects.event_queue_objects); break; case SYS_EVENT_PORT_OBJECT: ADD_OBJECTS(procObjects.event_port_objects); break; case SYS_TRACE_OBJECT: ADD_OBJECTS(procObjects.trace_objects); break; case SYS_SPUIMAGE_OBJECT: ADD_OBJECTS(procObjects.spuimage_objects); break; case SYS_PRX_OBJECT: ADD_OBJECTS(procObjects.prx_objects); break; case SYS_SPUPORT_OBJECT: ADD_OBJECTS(procObjects.spuport_objects); break; case SYS_LWMUTEX_OBJECT: ADD_OBJECTS(procObjects.lwmutex_objects); break; case SYS_TIMER_OBJECT: ADD_OBJECTS(procObjects.timer_objects); break; case SYS_SEMAPHORE_OBJECT: ADD_OBJECTS(procObjects.semaphore_objects); break; case SYS_FS_FD_OBJECT: ADD_OBJECTS(procObjects.fs_fd_objects); break; case SYS_LWCOND_OBJECT: ADD_OBJECTS(procObjects.lwcond_objects); break; case SYS_EVENT_FLAG_OBJECT: ADD_OBJECTS(procObjects.event_flag_objects); break; #undef ADD_OBJECTS default: return CELL_EINVAL; } return CELL_OK; }
int cellWebBrowserEstimate2(mem8_ptr_t _config, mem32_ptr_t memSize) { cellSysutil->Warning("cellWebBrowserEstimate2(config_addr=0x%x, memSize_addr=0x%x)", _config.GetAddr(), memSize.GetAddr()); // TODO: When cellWebBrowser stuff is implemented, change this to some real // needed memory buffer size. *memSize = 1024 * 1024 * 1; // 1 MB return CELL_OK; }