Remove an unused thing
This commit is contained in:
parent
ae08c74115
commit
0a064bf3da
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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.
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user