mirror of
https://github.com/drasko/codezero.git
synced 2026-01-12 02:43:15 +01:00
Fixed a few minor issues.
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
#include INC_SUBARCH(mm.h)
|
||||
|
||||
/* Abort debugging conditions */
|
||||
// #define DEBUG_ABORTS
|
||||
#define DEBUG_ABORTS
|
||||
#if defined (DEBUG_ABORTS)
|
||||
#define dbg_abort(...) dprintk(__VA_ARGS__)
|
||||
#else
|
||||
|
||||
@@ -268,7 +268,8 @@ static inline void context_switch(struct ktcb *next)
|
||||
{
|
||||
struct ktcb *cur = current;
|
||||
|
||||
// printk("(%d) to (%d)\n", cur->tid, next->tid);
|
||||
//printk("(%d) to (%d)\n", cur->tid, next->tid);
|
||||
|
||||
|
||||
/* Flush caches and everything */
|
||||
arch_hardware_flush(TASK_PGD(next));
|
||||
|
||||
@@ -23,7 +23,7 @@ void *mem_cache_alloc(struct mem_cache *cache)
|
||||
{
|
||||
int bit;
|
||||
int err;
|
||||
|
||||
printk("%s Called\n", __FUNCTION__);
|
||||
if (cache->free > 0) {
|
||||
if ((err = mutex_lock(&cache->mutex)) < 0)
|
||||
return PTR_ERR(err); /* Interruptible mutex */
|
||||
|
||||
Reference in New Issue
Block a user