summaryrefslogtreecommitdiff
path: root/nuttx/arch/x86
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-03-09 03:41:34 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-03-09 03:41:34 +0000
commit500e9b7aa4aa148f86236ff64e5280e50e7ecd1e (patch)
tree00979258f162a1f1c8e81ab2c0cff16c350994ef /nuttx/arch/x86
parent7109c2039470cfc60a375c7478ccebbddb7398a2 (diff)
downloadpx4-nuttx-500e9b7aa4aa148f86236ff64e5280e50e7ecd1e.tar.gz
px4-nuttx-500e9b7aa4aa148f86236ff64e5280e50e7ecd1e.tar.bz2
px4-nuttx-500e9b7aa4aa148f86236ff64e5280e50e7ecd1e.zip
#warning removal
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3355 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/x86')
-rw-r--r--nuttx/arch/x86/src/qemu/qemu_handlers.c8
-rwxr-xr-xnuttx/arch/x86/src/qemu/qemu_head.S10
-rwxr-xr-xnuttx/arch/x86/src/qemu/qemu_irq.c60
3 files changed, 10 insertions, 68 deletions
diff --git a/nuttx/arch/x86/src/qemu/qemu_handlers.c b/nuttx/arch/x86/src/qemu/qemu_handlers.c
index 221bfbf0f..05b5dee3f 100644
--- a/nuttx/arch/x86/src/qemu/qemu_handlers.c
+++ b/nuttx/arch/x86/src/qemu/qemu_handlers.c
@@ -101,10 +101,6 @@ static uint32_t *common_handler(int irq, uint32_t *regs)
DEBUGASSERT(current_regs == NULL);
current_regs = regs;
- /* Mask and acknowledge the interrupt */
-
- up_maskack_irq(irq);
-
/* Deliver the IRQ */
irq_dispatch(irq, regs);
@@ -120,10 +116,6 @@ static uint32_t *common_handler(int irq, uint32_t *regs)
/* Indicate that we are no long in an interrupt handler */
current_regs = NULL;
-
- /* Unmask the last interrupt (global interrupts are still disabled) */
-
- up_enable_irq(irq);
return regs;
}
#endif
diff --git a/nuttx/arch/x86/src/qemu/qemu_head.S b/nuttx/arch/x86/src/qemu/qemu_head.S
index 4840b9135..096705f46 100755
--- a/nuttx/arch/x86/src/qemu/qemu_head.S
+++ b/nuttx/arch/x86/src/qemu/qemu_head.S
@@ -161,17 +161,25 @@ g_heapbase:
.type __start, @function
__start:
/* Set up the stack */
-
+ mov $'a', %ax
+ mov $0x3f8, %dx
+ outb %al, %dx
mov $(idle_stack + CONFIG_IDLETHREAD_STACKSIZE), %esp
/* Multiboot setup */
push %eax /* Multiboot magic number */
push %ebx /* Multiboot data structure */
+ mov $'b', %ax
+ mov $0x3f8, %dx
+ outb %al, %dx
/* Initialize and start NuttX */
call up_lowsetup /* Low-level, pre-OS initialization */
+ mov $'c', %ax
+ mov $0x3f8, %dx
+ outb %al, %dx
call os_start /* Start NuttX */
/* NuttX will not return */
diff --git a/nuttx/arch/x86/src/qemu/qemu_irq.c b/nuttx/arch/x86/src/qemu/qemu_irq.c
index be6c4a40e..f266f6714 100755
--- a/nuttx/arch/x86/src/qemu/qemu_irq.c
+++ b/nuttx/arch/x86/src/qemu/qemu_irq.c
@@ -256,64 +256,6 @@ void up_irqinitialize(void)
/* And finally, enable interrupts */
#ifndef CONFIG_SUPPRESS_INTERRUPTS
- irqrestore(0);
+ irqrestore(X86_FLAGS_IF);
#endif
}
-
-/****************************************************************************
- * Name: up_disable_irq
- *
- * Description:
- * Disable the IRQ specified by 'irq'
- *
- ****************************************************************************/
-
-void up_disable_irq(int irq)
-{
-#warning "Missing Logic"
-}
-
-/****************************************************************************
- * Name: up_enable_irq
- *
- * Description:
- * Enable the IRQ specified by 'irq'
- *
- ****************************************************************************/
-
-void up_enable_irq(int irq)
-{
-#warning "Missing Logic"
-}
-
-/****************************************************************************
- * Name: up_maskack_irq
- *
- * Description:
- * Mask the IRQ and acknowledge it
- *
- ****************************************************************************/
-
-void up_maskack_irq(int irq)
-{
-#warning "Missing Logic"
-}
-
-/****************************************************************************
- * Name: up_prioritize_irq
- *
- * Description:
- * Set the priority of an IRQ.
- *
- * Since this API is not supported on all architectures, it should be
- * avoided in common implementations where possible.
- *
- ****************************************************************************/
-
-#ifdef CONFIG_ARCH_IRQPRIO
-int up_prioritize_irq(int irq, int priority)
-{
-#warning "Missing Logic"
- return OK;
-}
-#endif