Changeset View
Changeset View
Standalone View
Standalone View
head/sys/powerpc/include/proc.h
Show All 40 Lines | |||||
* Machine-dependent part of the proc structure | * Machine-dependent part of the proc structure | ||||
*/ | */ | ||||
struct mdthread { | struct mdthread { | ||||
int md_spinlock_count; /* (k) */ | int md_spinlock_count; /* (k) */ | ||||
register_t md_saved_msr; /* (k) */ | register_t md_saved_msr; /* (k) */ | ||||
}; | }; | ||||
struct mdproc { | struct mdproc { | ||||
/* Avoid empty structs, that have undefined behavior in C99 and | |||||
* make compilers complain about it | |||||
* (empty struct has size 0 in C, size 1 in C++). | |||||
*/ | |||||
long md_spare; | |||||
}; | }; | ||||
#ifdef __powerpc64__ | #ifdef __powerpc64__ | ||||
#define KINFO_PROC_SIZE 1088 | #define KINFO_PROC_SIZE 1088 | ||||
#define KINFO_PROC32_SIZE 816 | #define KINFO_PROC32_SIZE 816 | ||||
#else | #else | ||||
#define KINFO_PROC_SIZE 816 | #define KINFO_PROC_SIZE 816 | ||||
#endif | #endif | ||||
Show All 23 Lines |