Lines Matching refs:syscall

32 	"Usage: gensyscallinfos <header> <syscall infos> <syscall types sizes>\n"
34 "Given the (preprocessed) header file that defines the syscall prototypes "
36 "command generates a source file consisting of syscall infos, which is "
38 "to build gensyscalls, which in turn generates the assembly syscall\n"
39 "definitions and code for the kernelland syscall dispatcher.\n"
42 " syscall prototypes.\n"
43 " <syscall infos> - Output: The syscall infos source file needed "
46 " <syscall types sizes> - Output: A source file that will by another "
49 " <syscall infos>.\n";
336 Syscall syscall;
337 _ParseSyscall(tokenizer, syscall);
338 fSyscalls.push_back(syscall);
348 // open the syscall info file
378 file << "\tSyscall* syscall;" << endl;
382 const Syscall& syscall = fSyscalls[i];
384 // syscall = syscallVector->CreateSyscall("syscallName",
387 << syscall.GetName() << "\", \""
388 << syscall.GetKernelName() << "\");" << endl;
390 const Type& returnType = syscall.GetReturnType();
392 // syscall->SetReturnType<(SYSCALL_RETURN_TYPE_SIZE_<i>,
399 int paramCount = syscall.CountParameters();
401 const NamedType& param = syscall.ParameterAt(k);
402 // syscall->AddParameter(SYSCALL_PARAMETER_SIZE_<i>_<k>,
419 // open the syscall info file
446 const Syscall& syscall = fSyscalls[i];
447 const Type& returnType = syscall.GetReturnType();
458 int paramCount = syscall.CountParameters();
460 const NamedType& param = syscall.ParameterAt(k);
471 void _ParseSyscall(Tokenizer& tokenizer, Syscall& syscall)
485 syscall.SetName(returnType[returnType.size() - 1]);
492 syscall.SetReturnType(returnTypeString);
495 _ParseParameter(tokenizer, syscall);
498 _ParseParameter(tokenizer, syscall);
504 void _ParseParameter(Tokenizer& tokenizer, Syscall& syscall)
514 _ParseFunctionPointerParameter(tokenizer, syscall, type);
536 syscall.AddParameter(NamedType(typeString, typeName));
539 void _ParseFunctionPointerParameter(Tokenizer& tokenizer, Syscall& syscall,
568 // compose the type string and add it to the syscall parameters
574 syscall.AddParameter(NamedType(typeString, typeName));