pcpu.h (0bbc882680ceece07eb134ddeb7fceffb59ea018) | pcpu.h (b57e802a8521cd90a2f8e3f2612ac107ac9a3591) |
---|---|
1/*- 2 * Copyright (c) 1999 Luoqi Chen <luoqi@freebsd.org> 3 * Copyright (c) Peter Wemm <peter@netplex.com.au> 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 19 unchanged lines hidden (view full) --- 28 */ 29 30#ifndef _MACHINE_PCPU_H_ 31#define _MACHINE_PCPU_H_ 32 33#ifdef _KERNEL 34#include <machine/cpufunc.h> 35 | 1/*- 2 * Copyright (c) 1999 Luoqi Chen <luoqi@freebsd.org> 3 * Copyright (c) Peter Wemm <peter@netplex.com.au> 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 19 unchanged lines hidden (view full) --- 28 */ 29 30#ifndef _MACHINE_PCPU_H_ 31#define _MACHINE_PCPU_H_ 32 33#ifdef _KERNEL 34#include <machine/cpufunc.h> 35 |
36struct pmap; 37 |
|
36#define PCPU_MD_FIELDS \ 37 int pc_inside_intr; \ 38 u_int32_t pc_next_asn; /* next ASN to alloc */ \ | 38#define PCPU_MD_FIELDS \ 39 int pc_inside_intr; \ 40 u_int32_t pc_next_asn; /* next ASN to alloc */ \ |
39 u_int32_t pc_current_asngen /* ASN rollover check */ | 41 u_int32_t pc_current_asngen; /* ASN rollover check */\ 42 struct pmap *pc_curpmap /* current pmap */ |
40 41#define PCPUP ((struct pcpu *) powerpc_get_pcpup()) 42 43#define PCPU_GET(member) (PCPUP->pc_ ## member) 44#define PCPU_PTR(member) (&PCPUP->pc_ ## member) 45#define PCPU_SET(member,value) (PCPUP->pc_ ## member = (value)) 46 47#endif /* _KERNEL */ 48 49#endif /* !_MACHINE_PCPU_H_ */ | 43 44#define PCPUP ((struct pcpu *) powerpc_get_pcpup()) 45 46#define PCPU_GET(member) (PCPUP->pc_ ## member) 47#define PCPU_PTR(member) (&PCPUP->pc_ ## member) 48#define PCPU_SET(member,value) (PCPUP->pc_ ## member = (value)) 49 50#endif /* _KERNEL */ 51 52#endif /* !_MACHINE_PCPU_H_ */ |