Changeset 096d11e5 in mainline for arch/sparc64/include/register.h


Ignore:
Timestamp:
2005-12-22T11:09:02Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2cf5634
Parents:
d53aba3f
Message:

sparc64 work.
Add functions to read and write TICK and TICK_compare registers.
Add types describing TICK and TICK_compare registers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/sparc64/include/register.h

    rd53aba3f r096d11e5  
    3737        struct {
    3838                __u16 manuf;    /**< Manufacturer code. */
    39                 __u16 impl;
     39                __u16 impl;     /**< Implementation code. */
    4040                __u8 mask;      /**< Mask set revision. */
    4141                unsigned : 8;
     
    6767typedef union pstate_reg pstate_reg_t;
    6868
     69/** TICK Register. */
     70union tick_reg {
     71        __u64 value;
     72        struct {
     73                unsigned npt : 1;       /**< Non-privileged Trap enable. */
     74                __u64 counter : 63;     /**< Elapsed CPU clck cycle counter. */
     75        } __attribute__ ((packed));
     76};
     77typedef union tick_reg tick_reg_t;
     78
     79/** TICK_compare Register. */
     80union tick_compare_reg {
     81        __u64 value;
     82        struct {
     83                unsigned int_dis : 1;   /**< TICK_INT interrupt enable. */
     84                __u64 tick_cmpr : 63;   /**< Compare value for TICK interrupts. */
     85        } __attribute__ ((packed));
     86};
     87typedef union tick_compare_reg tick_compare_reg_t;
     88
    6989#endif
Note: See TracChangeset for help on using the changeset viewer.