Index: lamix/syscall/sysinfo.c =================================================================== RCS file: /res/impulse/users/map/cvsroot/ml-rsim/lamix/syscall/sysinfo.c,v retrieving revision 1.4 retrieving revision 1.5 diff --context -r1.4 -r1.5 *** lamix/syscall/sysinfo.c 2002/10/25 20:24:58 1.4 --- lamix/syscall/sysinfo.c 2003/12/11 00:16:20 1.5 *************** *** 715,726 **** /*---------------------------------------------------------------------------*/ ! /* return user ID of calling process */ /*---------------------------------------------------------------------------*/ ! int sys_getuid(void) { ! return(CURRENT_PROCESS->cred.cr_uid); } --- 715,728 ---- /*---------------------------------------------------------------------------*/ ! /* return user ID and effective UID of calling process */ /*---------------------------------------------------------------------------*/ ! long long sys_getuid(void) { ! /* return two 32-bit values: UID, EUID */ ! return((long long)CURRENT_PROCESS->cred.cr_uid << 32 | ! (long long)CURRENT_PROCESS->cred.cr_uid); } *************** *** 745,756 **** /*---------------------------------------------------------------------------*/ ! /* return group ID of calling process */ /*---------------------------------------------------------------------------*/ ! int sys_getgid(void) { ! return(CURRENT_PROCESS->cred.cr_gid); } --- 747,760 ---- /*---------------------------------------------------------------------------*/ ! /* return group ID and effective group ID of calling process */ /*---------------------------------------------------------------------------*/ ! long long sys_getgid(void) { ! /* return two 32-bit values: GID, EGID */ ! return((long long)CURRENT_PROCESS->cred.cr_gid << 32 | ! (long long)CURRENT_PROCESS->cred.cr_gid); } Index: src/Processor/exec.cc =================================================================== RCS file: /res/impulse/users/map/cvsroot/ml-rsim/src/Processor/exec.cc,v retrieving revision 1.9 retrieving revision 1.10 diff --context -r1.9 -r1.10 *** src/Processor/exec.cc 2003/05/22 21:55:24 1.9 --- src/Processor/exec.cc 2003/12/11 00:16:21 1.10 *************** *** 89,95 **** #pragma align 8 (TheBadPC) #endif ! instr TheBadPC(iSETHI); /* it's a NOP */ #ifdef sgi #pragma align_symbol (TheBadPC, 8) --- 89,95 ---- #pragma align 8 (TheBadPC) #endif ! instr *TheBadPC = new instr(iSETHI); #ifdef sgi #pragma align_symbol (TheBadPC, 8) *************** *** 124,130 **** { fqe.exception_code = (enum except)(INTERRUPT_00 - n); ! fqe.inst = NewInstance(&TheBadPC, proc); // TLB miss or prot. fault fqe.pc = proc->fetch_pc; // insert NOP with exception set fetch_queue->Enqueue(fqe); --- 124,130 ---- { fqe.exception_code = (enum except)(INTERRUPT_00 - n); ! fqe.inst = NewInstance(TheBadPC, proc); // TLB miss or prot. fault fqe.pc = proc->fetch_pc; // insert NOP with exception set fetch_queue->Enqueue(fqe); *************** *** 165,171 **** if (rc == TLB_FAULT) fqe.exception_code = INSTR_FAULT; ! fqe.inst = NewInstance(&TheBadPC, proc); fqe.pc = proc->fetch_pc; // insert NOP with exception set fetch_queue->Enqueue(fqe); --- 165,171 ---- if (rc == TLB_FAULT) fqe.exception_code = INSTR_FAULT; ! fqe.inst = NewInstance(TheBadPC, proc); fqe.pc = proc->fetch_pc; // insert NOP with exception set fetch_queue->Enqueue(fqe);