Add join and exit

This commit is contained in:
NIIBE Yutaka
2013-05-27 09:08:17 +09:00
parent cf4a340023
commit b0cfda694f
4 changed files with 86 additions and 11 deletions

View File

@@ -84,8 +84,11 @@ typedef struct chx_intr {
struct chx_thread *t;
uint8_t irq_num;
uint8_t ready;
} chopstix_intr_t;
} chopstx_intr_t;
void chopstx_intr_register (chopstix_intr_t *intr, uint8_t irq_num);
void chopstx_intr_register (chopstx_intr_t *intr, uint8_t irq_num);
void chopstx_wait_intr (chopstix_intr_t *intr);
void chopstx_wait_intr (chopstx_intr_t *intr);
/* Library provides default as weak reference. User can replace it. */
void chx_fatal (uint32_t err_code);