diff --git a/message.c b/message.c new file mode 100644 index 0000000..1081510 --- /dev/null +++ b/message.c @@ -0,0 +1,18 @@ +#include +#include +#include +#include +int volatile jumpp; +void post_message(int type){ + cli(); + if(jumpp<=10) + jumpp++; + sti(); + return; +} +int sys_get_message(struct message *msg) { + if(jumpp>0) --jumpp; + return jumpp; +} + + \ No newline at end of file