adding spinlock
This commit is contained in:
parent
0ff5546477
commit
77e01d28b0
2 changed files with 3 additions and 3 deletions
|
@ -189,8 +189,8 @@ typedef struct mm_rx_buffer
|
|||
|
||||
uint8_t iv_intr;
|
||||
|
||||
sem_t lock;
|
||||
// spinlock_t lock;
|
||||
// sem_t lock;
|
||||
spinlock_t lock;
|
||||
|
||||
// uint32_t timestamp[MMNIF_RX_QUEUELEN];
|
||||
// uint32_t bitmap[MMNIF_RX_QUEUELEN];
|
||||
|
|
|
@ -35,7 +35,7 @@ extern "C" {
|
|||
#define PAGE_SHIFT 12
|
||||
#define CACHE_LINE 64
|
||||
#define MAILBOX_SIZE 8
|
||||
#define TIMER_FREQ 1000 /* in HZ */
|
||||
#define TIMER_FREQ 100 /* in HZ */
|
||||
#define CLOCK_TICK_RATE 1193182 /* 8254 chip's internal oscillator frequency */
|
||||
#define INT_SYSCALL 0x80
|
||||
#define KERNEL_SPACE (1*1024*1024*1024)
|
||||
|
|
Loading…
Add table
Reference in a new issue