Changeset bffa876e in mainline for kernel/arch/arm32/src/drivers/gxemul.c
- Timestamp:
- 2009-02-21T20:28:27Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7bdd725
- Parents:
- 9446f39
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/arm32/src/drivers/gxemul.c
r9446f39 rbffa876e 35 35 36 36 #include <interrupt.h> 37 #include <ipc/irq.h>38 37 #include <console/chardev.h> 39 38 #include <arch/drivers/gxemul.h> … … 205 204 } 206 205 207 208 /** Acquire console back for kernel. */209 void gxemul_grab_console(void)210 {211 ipl_t ipl = interrupts_disable();212 spinlock_lock(&gxemul_console_irq.lock);213 gxemul_console_irq.notif_cfg.notify = false;214 spinlock_unlock(&gxemul_console_irq.lock);215 interrupts_restore(ipl);216 }217 218 /** Return console to userspace. */219 void gxemul_release_console(void)220 {221 ipl_t ipl = interrupts_disable();222 spinlock_lock(&gxemul_console_irq.lock);223 if (gxemul_console_irq.notif_cfg.answerbox) {224 gxemul_console_irq.notif_cfg.notify = true;225 }226 spinlock_unlock(&gxemul_console_irq.lock);227 interrupts_restore(ipl);228 }229 230 206 /** Initializes console object representing gxemul console. 231 207 *
Note:
See TracChangeset
for help on using the changeset viewer.