You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#include<linux/sched.h>
|
|
#include<asm/segment.h>
|
|
#include <asm/system.h>
|
|
#include<all.h>
|
|
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;
|
|
}
|
|
|
|
|