Changeset 39494010 in mainline for arch/sparc64/src/console.c
- Timestamp:
- 2005-12-26T01:05:47Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1120276
- Parents:
- 5b1ced0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/sparc64/src/console.c
r5b1ced0 r39494010 31 31 #include <console/chardev.h> 32 32 #include <console/console.h> 33 #include <arch/asm.h> 34 #include <arch/register.h> 33 35 34 36 static void ofw_sparc64_putchar(chardev_t *d, const char ch); … … 51 53 void ofw_sparc64_putchar(chardev_t *d, const char ch) 52 54 { 55 pstate_reg_t pstate; 56 57 /* 58 * 32-bit OpenFirmware depends on PSTATE.AM bit set. 59 */ 60 pstate.value = pstate_read(); 61 pstate.am = true; 62 pstate_write(pstate.value); 63 53 64 if (ch == '\n') 54 65 ofw_putchar('\r'); 55 66 ofw_putchar(ch); 67 68 pstate.am = false; 69 pstate_write(pstate.value); 56 70 }
Note:
See TracChangeset
for help on using the changeset viewer.