Remove an unused thing

This commit is contained in:
Kevin Lange 2013-05-22 01:47:43 -07:00
parent ae08c74115
commit 0a064bf3da
3 changed files with 0 additions and 11 deletions

View File

@ -88,7 +88,6 @@ uint32_t read_pipe(fs_node_t *node, uint32_t offset, uint32_t size, uint8_t *buf
}
spin_unlock(&pipe->lock);
wakeup_queue(pipe->wait_queue);
//switch_from_cross_thread_lock();
/* Deschedule and switch */
if (collected == 0) {
sleep_on(pipe->wait_queue);

View File

@ -29,7 +29,6 @@ extern unsigned int __irq_sem;
#define IRQ_OFF { asm volatile ("cli"); }
#define IRQ_RES { asm volatile ("sti"); }
#define PAUSE { asm volatile ("hlt"); }
#define IRQS_ON_AND_PAUSE { asm volatile ("sti\nhlt\ncli"); }
#define STOP while (1) { PAUSE; }
@ -276,7 +275,6 @@ typedef struct tss_entry {
extern void tasking_install();
extern void switch_task(uint8_t reschedule);
extern void switch_from_cross_thread_lock();
extern void switch_next();
extern uint32_t fork();
extern uint32_t clone(uintptr_t new_stack, uintptr_t thread_func, uintptr_t arg);

View File

@ -376,14 +376,6 @@ getpid() {
return current_process->id;
}
void
switch_from_cross_thread_lock() {
if (!process_available()) {
IRQS_ON_AND_PAUSE;
}
switch_task(1);
}
/*
* Switch to the next ready task.
*