process.cc (5154:7e6431213487) | process.cc (5981:5e7899a2692f) |
---|---|
1/* 2 * Copyright (c) 2003-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 33 unchanged lines hidden (view full) --- 42#include "sim/syscall_emul.hh" 43 44using namespace std; 45using namespace SparcISA; 46 47SyscallDesc* 48SparcLinuxProcess::getDesc(int callnum) 49{ | 1/* 2 * Copyright (c) 2003-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 33 unchanged lines hidden (view full) --- 42#include "sim/syscall_emul.hh" 43 44using namespace std; 45using namespace SparcISA; 46 47SyscallDesc* 48SparcLinuxProcess::getDesc(int callnum) 49{ |
50 if (callnum < 0 || callnum > Num_Syscall_Descs) | 50 if (callnum < 0 || callnum >= Num_Syscall_Descs) |
51 return NULL; 52 return &syscallDescs[callnum]; 53} 54 55SyscallDesc* 56SparcLinuxProcess::getDesc32(int callnum) 57{ | 51 return NULL; 52 return &syscallDescs[callnum]; 53} 54 55SyscallDesc* 56SparcLinuxProcess::getDesc32(int callnum) 57{ |
58 if (callnum < 0 || callnum > Num_Syscall32_Descs) | 58 if (callnum < 0 || callnum >= Num_Syscall32_Descs) |
59 return NULL; 60 return &syscall32Descs[callnum]; 61} 62 63SparcLinuxProcess::SparcLinuxProcess() : 64 Num_Syscall_Descs(284), //sizeof(syscallDescs) / sizeof(SyscallDesc)), 65 Num_Syscall32_Descs(299) //sizeof(syscall32Descs) / sizeof(SyscallDesc)) 66{ --- 42 unchanged lines hidden --- | 59 return NULL; 60 return &syscall32Descs[callnum]; 61} 62 63SparcLinuxProcess::SparcLinuxProcess() : 64 Num_Syscall_Descs(284), //sizeof(syscallDescs) / sizeof(SyscallDesc)), 65 Num_Syscall32_Descs(299) //sizeof(syscall32Descs) / sizeof(SyscallDesc)) 66{ --- 42 unchanged lines hidden --- |