aboutsummaryrefslogtreecommitdiffstats
path: root/core/include
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2011-05-09 20:35:35 -0700
committerH. Peter Anvin <hpa@zytor.com>2011-05-09 20:35:35 -0700
commitcd89ddbde2e1680f537a32010d64fd5465330122 (patch)
tree6f1f4f6f465e6d3013ba7405d62301b1c765f4ae /core/include
parent47688fb9b6c645fbc62ebe341a415043fad7283a (diff)
downloadsyslinux-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.h23
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);