[pso] compilare tema 1
Razvan Deaconescu
razvan.deaconescu at cs.pub.ro
Mon Mar 30 14:01:26 EEST 2009
On Mon, 2009-03-30 at 13:48 +0300, Andrei Hanganu wrote:
> Salut.
>
> In ultima etapa a temei 1 linux compilarea esueaza din cauza la,
> citez:
>
> /root/pso/root/tema_1/sci.c:110: error: 'struct pt_regs' has no member
> named 'eax'
> /root/pso/root/tema_1/sci.c:118: error: 'struct pt_regs' has no member
> named 'ebx'
> /root/pso/root/tema_1/sci.c:118: error: 'struct pt_regs' has no member
> named 'ecx'
> /root/pso/root/tema_1/sci.c:118: error: 'struct pt_regs' has no member
> named 'edx'
> /root/pso/root/tema_1/sci.c:118: error: 'struct pt_regs' has no member
> named 'esi'
> /root/pso/root/tema_1/sci.c:118: error: 'struct pt_regs' has no member
> named 'edi'
> /root/pso/root/tema_1/sci.c:118: error: 'struct pt_regs' has no member
> named 'ebp'
>
> practic folosesc membrii acestia din pt_regs in callul lui
> log_syscall.
De cand cu unificarea x86_32 si x86_64 registrele se cheama (generic)
bx, cx, dx etc. Apare si in LXR[1] (pentru sursele 2.6.28 folosite de
noi).
Acel #else (linia 41) inseamna prezenta in kernel (se leaga de linia 19
- #ifndef __KERNEL__)
Razvan
[1] http://lxr.linux.no/linux+v2.6.28.9/arch/x86/include/asm/ptrace.h#L4
More information about the pso
mailing list