Changeset 45b26dad in mainline for kernel/arch/sparc64/include


Ignore:
Timestamp:
2006-09-26T12:59:28Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b44939b
Parents:
6ff1f1e
Message:

sparc64 work:

  • Loader now starts all processors.
  • Kernel halts all but the bootstrup processor for now.
  • Read clock-frequency from the respective processor node in the device tree
Location:
kernel/arch/sparc64/include
Files:
4 edited

Legend:

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

    r6ff1f1e r45b26dad  
    3838#define KERN_sparc64_ARCH_H_
    3939
    40 #define ASI_AIUP        0x10            /** Access to primary context with user privileges. */
    41 #define ASI_AIUS        0x11            /** Access to secondary context with user privileges. */
    42 
     40#define ASI_AIUP                0x10    /** Access to primary context with user privileges. */
     41#define ASI_AIUS                0x11    /** Access to secondary context with user privileges. */
    4342#define ASI_NUCLEUS_QUAD_LDD    0x24    /** ASI for 16-byte atomic loads. */
     43#define ASI_UPA_CONFIG          0x4a    /** ASI of the UPA_CONFIG register. */
    4444
    4545#define NWINDOW         8               /** Number of register window sets. */
  • kernel/arch/sparc64/include/asm.h

    r6ff1f1e r45b26dad  
    359359}
    360360
     361/** Read UPA_CONFIG register.
     362 *
     363 * @return Value of the UPA_CONFIG register.
     364 */
     365static inline uint64_t upa_config_read(void)
     366{
     367        return asi_u64_read(ASI_UPA_CONFIG, 0);
     368}
     369
    361370extern void cpu_halt(void);
    362371extern void cpu_sleep(void);
  • kernel/arch/sparc64/include/boot/boot.h

    r6ff1f1e r45b26dad  
    7171} memmap_t;
    7272
    73 typedef struct {
    74         uint32_t clock_frequency;
    75 } processor_t;
    76 
    7773/** Bootinfo structure.
    7874 *
     
    8278        taskmap_t taskmap;
    8379        memmap_t memmap;
    84         processor_t processor;
    8580        ballocs_t ballocs;
    8681        ofw_tree_node_t *ofw_root;
  • kernel/arch/sparc64/include/register.h

    r6ff1f1e r45b26dad  
    118118typedef union fprs_reg fprs_reg_t;
    119119
     120/** UPA_CONFIG register.
     121 *
     122 * Note that format of this register differs significantly from
     123 * processor version to version. The format defined here
     124 * is the common subset for all supported processor versions.
     125 */
     126union upa_config {
     127        uint64_t value;
     128        struct {
     129                uint64_t : 34;
     130                unsigned pcon : 8;      /**< Processor configuration. */
     131                unsigned mid : 5;       /**< Module (processor) ID register. */
     132                unsigned pcap : 17;     /**< Processor capabilities. */
     133        } __attribute__ ((packed));
     134};
     135typedef union upa_config upa_config_t;
     136
    120137#endif
    121138
Note: See TracChangeset for help on using the changeset viewer.