diff options
author | H. Peter Anvin <hpa@zytor.com> | 2011-05-09 20:35:35 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2011-05-09 20:35:35 -0700 |
commit | cd89ddbde2e1680f537a32010d64fd5465330122 (patch) | |
tree | 6f1f4f6f465e6d3013ba7405d62301b1c765f4ae /core/include | |
parent | 47688fb9b6c645fbc62ebe341a415043fad7283a (diff) | |
download | syslinux-cd89ddbde2e1680f537a32010d64fd5465330122.tar.gz syslinux-cd89ddbde2e1680f537a32010d64fd5465330122.tar.xz syslinux-cd89ddbde2e1680f537a32010d64fd5465330122.zip |
pxe: when hooking an interrupt, explicitly enable it at the PIC
At least gPXE/iPXE apparently enters the NBP with the interrupt line
disabled at the PIC; explicitly enable it instead.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'core/include')
-rw-r--r-- | core/include/thread.h | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/core/include/thread.h b/core/include/thread.h index 73e88242..213fb441 100644 --- a/core/include/thread.h +++ b/core/include/thread.h @@ -80,29 +80,6 @@ mstime_t sem_down(struct semaphore *, mstime_t); void sem_up(struct semaphore *); void sem_init(struct semaphore *, int); -typedef unsigned long irq_state_t; - -static inline irq_state_t irq_state(void) -{ - irq_state_t __st; - - asm volatile("pushfl ; popl %0" : "=rm" (__st)); - return __st; -} - -static inline irq_state_t irq_save(void) -{ - irq_state_t __st; - - asm volatile("pushfl ; popl %0 ; cli" : "=rm" (__st)); - return __st; -} - -static inline void irq_restore(irq_state_t __st) -{ - asm volatile("pushl %0 ; popfl" : : "rm" (__st)); -} - struct thread *start_thread(const char *name, size_t stack_size, int prio, void (*start_func)(void *), void *func_arg); void __exit_thread(void); |