Changeset 1433ecda in mainline for kernel/arch/sparc64/src/drivers/niagara.c
- Timestamp:
- 2018-04-04T15:42:37Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2c4e1cc
- Parents:
- 47b2d7e3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/src/drivers/niagara.c
r47b2d7e3 r1433ecda 82 82 * buffer definition follows. 83 83 */ 84 static volatile niagara_output_buffer_t __attribute__ 84 static volatile niagara_output_buffer_t __attribute__((aligned(PAGE_SIZE))) 85 85 output_buffer; 86 86 … … 90 90 * Analogous to the output_buffer, see the previous definition. 91 91 */ 92 static volatile niagara_input_buffer_t __attribute__ 92 static volatile niagara_input_buffer_t __attribute__((aligned(PAGE_SIZE))) 93 93 input_buffer; 94 94 … … 96 96 97 97 /** Write a single character to the standard output. */ 98 static inline void do_putchar(const char c) { 98 static inline void do_putchar(const char c) 99 { 99 100 /* Repeat until the buffer is non-full */ 100 while (__hypercall_fast1(CONS_PUTCHAR, c) == HV_EWOULDBLOCK); 101 while (__hypercall_fast1(CONS_PUTCHAR, c) == HV_EWOULDBLOCK) 102 ; 101 103 } 102 104 … … 160 162 * 161 163 */ 162 static void kniagarapoll(void *arg) { 164 static void kniagarapoll(void *arg) 165 { 163 166 while (true) { 164 167 niagara_poll(); … … 213 216 PAGE_SIZE); 214 217 sysinfo_set_item_val("niagara.inbuf.datasize", NULL, 215 INPUT_BUFFER_SIZE);218 INPUT_BUFFER_SIZE); 216 219 217 220 outbuf_parea.pbase = (uintptr_t) (KA2PA(&output_buffer));
Note:
See TracChangeset
for help on using the changeset viewer.