Kod: Markera allt
anton@atrus:~/src/s3switch/s3switch-0.0.20030423$ fakeroot debian/rules binary
dh_testdir
# Add here commands to compile the package.
/usr/bin/make CFLAGS="-Wall -g -O2"
make[1]: Går till katalogen "/home/anton/src/s3switch/s3switch-0.0.20030423"
gcc -Wall -g -O2 -c -o s3switch.o s3switch.c
s3switch.c: In function ‘print_current_state’:
s3switch.c:301: warning: format not a string literal and no format arguments
s3switch.c:313: warning: format not a string literal and no format arguments
gcc -Wall -g -O2 -c -o lrmi.o lrmi.c
lrmi.c: In function ‘set_regs’:
lrmi.c:305: error: ‘IF_MASK’ undeclared (first use in this function)
lrmi.c:305: error: (Each undeclared identifier is reported only once
lrmi.c:305: error: for each function it appears in.)
lrmi.c:305: error: ‘IOPL_MASK’ undeclared (first use in this function)
lrmi.c: In function ‘run_vm86’:
lrmi.c:784: error: ‘VIF_MASK’ undeclared (first use in this function)
lrmi.c:784: error: ‘TF_MASK’ undeclared (first use in this function)
lrmi.c: In function ‘LRMI_int’:
lrmi.c:873: error: ‘IF_MASK’ undeclared (first use in this function)
lrmi.c:873: error: ‘IOPL_MASK’ undeclared (first use in this function)
make[1]: *** [lrmi.o] Fel 1
make[1]: Lämnar katalogen "/home/anton/src/s3switch/s3switch-0.0.20030423"
make: *** [build-stamp] Fel 2
anton@atrus:~/src/s3switch/s3switch-0.0.20030423$ make
gcc -g -c -o lrmi.o lrmi.c
lrmi.c: In function ‘set_regs’:
lrmi.c:305: error: ‘IF_MASK’ undeclared (first use in this function)
lrmi.c:305: error: (Each undeclared identifier is reported only once
lrmi.c:305: error: for each function it appears in.)
lrmi.c:305: error: ‘IOPL_MASK’ undeclared (first use in this function)
lrmi.c: In function ‘run_vm86’:
lrmi.c:784: error: ‘VIF_MASK’ undeclared (first use in this function)
lrmi.c:784: error: ‘TF_MASK’ undeclared (first use in this function)
lrmi.c: In function ‘LRMI_int’:
lrmi.c:873: error: ‘IF_MASK’ undeclared (first use in this function)
lrmi.c:873: error: ‘IOPL_MASK’ undeclared (first use in this function)
make: *** [lrmi.o] Fel 1
Kod: Markera allt
context.vm.regs.eax = r->eax;
context.vm.regs.eflags = DEFAULT_VM86_FLAGS;
context.vm.regs.es = r->es;
Kod: Markera allt
#define DEFAULT_VM86_FLAGS (IF_MASK | IOPL_MASK)