Changeset bffa876e in mainline
- Timestamp:
- 2009-02-21T20:28:27Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7bdd725
- Parents:
- 9446f39
- Location:
- kernel/arch/arm32
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/arm32/include/machine.h
r9446f39 rbffa876e 105 105 #ifdef MACHINE_gxemul 106 106 #define machine_console_init(devno) gxemul_console_init(devno) 107 #define machine_grab_console gxemul_grab_console108 #define machine_release_console gxemul_release_console109 107 #define machine_hw_map_init gxemul_hw_map_init 110 108 #define machine_timer_irq_start gxemul_timer_irq_start -
kernel/arch/arm32/src/console.c
r9446f39 rbffa876e 51 51 fb_redraw(); 52 52 #endif 53 machine_grab_console();54 53 } 55 54 … … 57 56 void arch_release_console(void) 58 57 { 59 machine_release_console();60 58 } 61 59 -
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.