process.cc (6640:30d92d2b66a1) | process.cc (6650:f23a18fec0ef) |
---|---|
1/* 2 * Copyright (c) 2005 The Regents of The University of Michigan 3 * Copyright (c) 2007 MIPS Technologies, Inc. 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: redistributions of source code must retain the above copyright --- 399 unchanged lines hidden (view full) --- 408}; 409 410MipsLinuxProcess::MipsLinuxProcess(LiveProcessParams * params, 411 ObjectFile *objFile) 412 : MipsLiveProcess(params, objFile), 413 Num_Syscall_Descs(sizeof(syscallDescs) / sizeof(SyscallDesc)) 414{ } 415 | 1/* 2 * Copyright (c) 2005 The Regents of The University of Michigan 3 * Copyright (c) 2007 MIPS Technologies, Inc. 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: redistributions of source code must retain the above copyright --- 399 unchanged lines hidden (view full) --- 408}; 409 410MipsLinuxProcess::MipsLinuxProcess(LiveProcessParams * params, 411 ObjectFile *objFile) 412 : MipsLiveProcess(params, objFile), 413 Num_Syscall_Descs(sizeof(syscallDescs) / sizeof(SyscallDesc)) 414{ } 415 |
416void 417MipsLinuxProcess::startup() 418{ 419 MipsLiveProcess::argsInit(MachineBytes, VMPageSize); 420} 421 | |
422SyscallDesc* 423MipsLinuxProcess::getDesc(int callnum) 424{ 425 //MIPS32 syscalls are in the range of 4000 - 4999 426 int m5_sys_idx = callnum - 4000; 427 428 if (m5_sys_idx < 0 || m5_sys_idx >= Num_Syscall_Descs) 429 return NULL; 430 431 return &syscallDescs[m5_sys_idx]; 432} 433 434 435 436 437 | 416SyscallDesc* 417MipsLinuxProcess::getDesc(int callnum) 418{ 419 //MIPS32 syscalls are in the range of 4000 - 4999 420 int m5_sys_idx = callnum - 4000; 421 422 if (m5_sys_idx < 0 || m5_sys_idx >= Num_Syscall_Descs) 423 return NULL; 424 425 return &syscallDescs[m5_sys_idx]; 426} 427 428 429 430 431 |