Changeset f429331 in mainline for kernel/arch/amd64


Ignore:
Timestamp:
2007-01-21T18:52:11Z (19 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
da1f9dc
Parents:
8dbc18c
Message:

remove some typedefs in favor of anonymous structures

Location:
kernel/arch/amd64
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/amd64/include/cpu.h

    r8dbc18c rf429331  
    5858#include <arch/pm.h>
    5959
    60 struct cpu_arch {
     60typedef struct {
    6161        int vendor;
    6262        int family;
     
    6666       
    6767        count_t iomapver_copy;  /** Copy of TASK's I/O Permission bitmap generation count. */
    68 };
     68} cpu_arch_t;
    6969
    7070struct star_msr {
  • kernel/arch/amd64/include/cpuid.h

    r8dbc18c rf429331  
    4747#include <arch/types.h>
    4848
    49 struct cpu_info {
     49typedef struct {
    5050        uint32_t cpuid_eax;
    5151        uint32_t cpuid_ebx;
    5252        uint32_t cpuid_ecx;
    5353        uint32_t cpuid_edx;
    54 } __attribute__ ((packed));
     54} __attribute__ ((packed)) cpu_info_t;
    5555
    5656extern int has_cpuid(void);
  • kernel/arch/amd64/src/amd64.c

    r8dbc18c rf429331  
    104104void arch_pre_mm_init(void)
    105105{
    106         struct cpu_info cpuid_s;
     106        cpu_info_t cpuid_s;
    107107
    108108        cpuid(AMD_CPUID_EXTENDED,&cpuid_s);
Note: See TracChangeset for help on using the changeset viewer.