Changeset 39494010 in mainline for arch/sparc64/src/console.c


Ignore:
Timestamp:
2005-12-26T01:05:47Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1120276
Parents:
5b1ced0
Message:

sparc64 work.
Interrupt Levels 1 - 15 serviced.
Minor changes in the exc_* functions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/sparc64/src/console.c

    r5b1ced0 r39494010  
    3131#include <console/chardev.h>
    3232#include <console/console.h>
     33#include <arch/asm.h>
     34#include <arch/register.h>
    3335
    3436static void ofw_sparc64_putchar(chardev_t *d, const char ch);
     
    5153void ofw_sparc64_putchar(chardev_t *d, const char ch)
    5254{
     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
    5364        if (ch == '\n')
    5465                ofw_putchar('\r');
    5566        ofw_putchar(ch);
     67       
     68        pstate.am = false;
     69        pstate_write(pstate.value);
    5670}
Note: See TracChangeset for help on using the changeset viewer.