Changeset 93e90c7 in mainline for arch/ia32/include/smp/apic.h


Ignore:
Timestamp:
2006-01-02T22:10:11Z (20 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0132630
Parents:
95d191c
Message:

ia32 work.
Initialize LDR and DFR registers in Local APIC so that logical destination addresses work.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/ia32/include/smp/apic.h

    r95d191c r93e90c7  
    9494/** Destination masks. */
    9595#define DEST_ALL        0xff
     96
     97/** Dest format models. */
     98#define MODEL_FLAT      0xf
     99#define MODEL_CLUSTER   0x0
    96100
    97101/** Interrupt Command Register. */
     
    248252#define is_local_xapic(x)       (((x)&LAVR_Mask)==0x14)
    249253
     254/** Logical Destination Register. */
     255#define  LDR            (0x0d0/sizeof(__u32))
     256union ldr {
     257        __u32 value;
     258        struct {
     259                unsigned : 24;          /**< Reserver. */
     260                __u8 id;                /**< Logical APIC ID. */
     261        } __attribute__ ((packed));
     262};
     263typedef union ldr ldr_t;
     264
     265/** Destination Format Register. */
     266#define DFR             (0x0e0/sizeof(__u32))
     267union dfr {
     268        __u32 value;
     269        struct {
     270                unsigned : 28;          /**< Reserved, all ones. */
     271                unsigned model : 4;     /**< Model. */
     272        } __attribute__ ((packed));
     273};
     274typedef union dfr dfr_t;
     275
    250276/* IO APIC */
    251277#define IOREGSEL        (0x00/sizeof(__u32))
Note: See TracChangeset for help on using the changeset viewer.