Changeset 253f35a1 in mainline for kernel/arch/sparc64/src
- Timestamp:
- 2006-09-07T19:56:44Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ab1ae2d9
- Parents:
- 801579fe
- Location:
- kernel/arch/sparc64/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/src/console.c
r801579fe r253f35a1 94 94 } 95 95 96 /** Acquire console back for kernel 97 * 98 */ 99 void arch_grab_console(void) 100 { 101 #ifdef CONFIG_Z8530 102 z8530_grab(); 103 #endif 104 } 105 106 /** Return console to userspace 107 * 108 */ 109 void arch_release_console(void) 110 { 111 #ifdef CONFIG_Z8530 112 z8530_release(); 113 #endif 114 } 96 115 /** @} 97 116 */ -
kernel/arch/sparc64/src/drivers/fhc.c
r801579fe r253f35a1 58 58 fhc = (void *) hw_map(FHC_UART_ADDR, PAGE_SIZE); 59 59 60 (void) fhc[FHC_UART_ICLR];61 60 fhc[FHC_UART_ICLR] = 0; 62 (void) fhc[FHC_UART_IMAP]; 63 fhc[FHC_UART_IMAP] = Z8530_INTRCV_DATA0; /* hardcoded for Simics simulation */ 64 (void) fhc[FHC_UART_IMAP]; 65 fhc[FHC_UART_IMAP] = 0x80000000; /* hardcoded for Simics simulation */ 61 fhc[FHC_UART_IMAP] = 0x80000000; 66 62 } 67 63 68 64 void fhc_uart_reset(void) 69 65 { 70 (void) fhc[FHC_UART_ICLR];71 66 fhc[FHC_UART_ICLR] = 0; 72 67 } -
kernel/arch/sparc64/src/sparc64.c
r801579fe r253f35a1 94 94 } 95 95 96 /** Acquire console back for kernel97 *98 */99 void arch_grab_console(void)100 {101 }102 /** Return console to userspace103 *104 */105 void arch_release_console(void)106 {107 }108 109 96 /** Switch to userspace. */ 110 97 void userspace(uspace_arg_t *kernel_uarg) -
kernel/arch/sparc64/src/trap/interrupt.c
r801579fe r253f35a1 43 43 #include <arch/asm.h> 44 44 #include <arch/barrier.h> 45 45 #include <print.h> 46 46 #include <genarch/kbd/z8530.h> 47 47 … … 62 62 void irq_ipc_bind_arch(unative_t irq) 63 63 { 64 /* TODO */ 64 #ifdef CONFIG_Z8530 65 z8530_belongs_to_kernel = false; 66 #endif 65 67 } 66 68 … … 83 85 * interrupt traps. Call the interrupt handler directly. 84 86 */ 87 88 if (z8530_belongs_to_kernel) 89 z8530_interrupt(); 90 else 91 ipc_irq_send_notif(0); 85 92 fhc_uart_reset(); 86 z8530_interrupt();87 93 break; 94 88 95 #endif 89 96 }
Note:
See TracChangeset
for help on using the changeset viewer.