search for: arg_t

Displaying 2 results from an estimated 2 matches for "arg_t".

Did you mean: arg_r
2013 Mar 20
0
[LLVMdev] Problems with parallelizing lli
...argv, - "llvm interpreter & dynamic compiler\n"); - - // If the user doesn't want core files, disable them. - if (DisableCoreFiles) - sys::Process::PreventCoreFiles(); - +typedef struct { + int argc; + char **argv; + char *const *envp; +} arg_t; + +void *run(void *arg) { + int argc = ((arg_t *) arg)->argc; + char **argv = ((arg_t *) arg)->argv; + char *const *envp = ((arg_t *) arg)->envp; + LLVMContext Context; // Load the bitcode... SMDiagnostic Err; Module *Mod = ParseIRFile(InputFile, Err, Context); if (!Mod) {...
2012 Jan 17
2
Problems calling HVMOP_flush_tlbs
...= __HYPERVISOR_hvm_op; hypercall.arg[0] = HVMOP_flush_tlbs; hypercall.arg[1] = 3; /* 3 is the domain whose tlbs should be flushed */ hypercall.arg[2] = 0; I have also tried this, mimicking the arg struct for the other HVMOP calls, which also returns ENOSYS: typedef struct _arg_t { domid_t domid; uint64_t ptr; } arg_t; struct privcmd_hypercall { uint64_t op; uint64_t arg[5]; } hypercall; DECLARE_HYPERCALL_BUFFER(arg_t, arg); arg = xc_hypercall_buffer_alloc(xch, arg, sizeof(*arg)); hypercall.op = __HYPERVIS...