frysk.isa.syscalls
Class LinuxPPC64SyscallTable

java.lang.Object
  extended by frysk.isa.syscalls.SyscallTable
      extended by frysk.isa.syscalls.LinuxPPC64SyscallTable

 class LinuxPPC64SyscallTable
extends SyscallTable

32-bit PowerPC system calls. XXX: There is much duplication between this and LinuxPPC64Syscall.


Nested Class Summary
private static class LinuxPPC64SyscallTable.IpcSubSyscall
           
private static class LinuxPPC64SyscallTable.PowerPCSyscall
           
private static class LinuxPPC64SyscallTable.SocketSubSyscall
           
 
Field Summary
private static int IPC_NUM
           
private static Syscall[] ipcSubcallList
           
private static int SOCKET_NUM
           
private static Syscall[] socketSubcallList
           
private static Syscall[] syscallList
           
private static LinuxPPC64SyscallTable.IpcSubSyscall unknownIpcSubSyscall
           
private static LinuxPPC64SyscallTable.SocketSubSyscall unknownSocketSubSyscall
           
 
Constructor Summary
LinuxPPC64SyscallTable()
           
 
Method Summary
 long getNumSyscalls()
          Return the number of syscalls.
 Syscall getSyscall(long num)
          Return the NUM'th system call; implemented using findSyscall.
 Syscall getSyscall(String name)
           
 Syscall getSyscall(Task task)
          Assuming that TASK is at a system-call entry, return the system call.
private  long subcall(Task task)
           
 
Methods inherited from class frysk.isa.syscalls.SyscallTable
findSubcall, findSyscall, iterateSyscallByName, unknownSyscall
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SOCKET_NUM

private static final int SOCKET_NUM
See Also:
Constant Field Values

IPC_NUM

private static final int IPC_NUM
See Also:
Constant Field Values

syscallList

private static Syscall[] syscallList

socketSubcallList

private static Syscall[] socketSubcallList

ipcSubcallList

private static Syscall[] ipcSubcallList

unknownSocketSubSyscall

private static final LinuxPPC64SyscallTable.SocketSubSyscall unknownSocketSubSyscall

unknownIpcSubSyscall

private static final LinuxPPC64SyscallTable.IpcSubSyscall unknownIpcSubSyscall
Constructor Detail

LinuxPPC64SyscallTable

LinuxPPC64SyscallTable()
Method Detail

getSyscall

public Syscall getSyscall(String name)
Specified by:
getSyscall in class SyscallTable
Returns:
Syscall return system call object if the name could be found in syscallList, otherwise return null.

subcall

private long subcall(Task task)

getSyscall

public Syscall getSyscall(Task task)
Description copied from class: SyscallTable
Assuming that TASK is at a system-call entry, return the system call.

Specified by:
getSyscall in class SyscallTable
Parameters:
task - the task that system call occurred
Returns:
the Syscall object

getSyscall

public Syscall getSyscall(long num)
Description copied from class: SyscallTable
Return the NUM'th system call; implemented using findSyscall.

Specified by:
getSyscall in class SyscallTable

getNumSyscalls

public long getNumSyscalls()
Description copied from class: SyscallTable
Return the number of syscalls.

Specified by:
getNumSyscalls in class SyscallTable