Quantcast
Channel: Andrei Lisnic blog
Viewing all articles
Browse latest Browse all 10

OSClass: lab4

$
0
0

Goal

- Integrate setjmp and longjmp in your project.

This means that you must take the code I made available to you and put in somewhere in your project files so that it will compile, and the functions listed above are available for use.

- Show a working example of usage of setjmp and longjmp (+20 EXP)

Things you need

The source code for the functions is in C and assembly, so you have to be careful where you put them in your project.

See source: setjmp.asm longjmp.c

Also, these functions use a special data structure as argument, so you have to add it as well in your code:

typedef struct
{
    unsigned edi, esi, ebp, esp, ebx, edx, ecx, eax;
    unsigned eip, eflags;
} jmp_buf[1];

Viewing all articles
Browse latest Browse all 10

Trending Articles