Fixed some comments and reorganized some code.
Fixed minor bug in notify() function.
This commit is contained in:
@@ -164,7 +164,7 @@ timer_t *tp;
|
||||
* alarm. The process number is stored in timer argument 'ta_int'. Notify that
|
||||
* process given with a SYN_ALARM message.
|
||||
*/
|
||||
notify(tmr_arg(tp)->ta_int, SYN_ALARM);
|
||||
lock_notify(tmr_arg(tp)->ta_int, SYN_ALARM);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -236,6 +236,8 @@ register message *m_ptr; /* pointer to request message */
|
||||
/* Request a (DMA) buffer to be allocated in one of the memory chunks. */
|
||||
phys_clicks tot_clicks;
|
||||
struct memory *memp;
|
||||
|
||||
kprintf("SYS_KMALLOC called by %d\n", m_ptr->m_source);
|
||||
|
||||
tot_clicks = (m_ptr->MEM_CHUNK_SIZE + CLICK_SIZE-1) >> CLICK_SHIFT;
|
||||
memp = &mem[NR_MEMS];
|
||||
|
||||
Reference in New Issue
Block a user