Use get_pcpu() instead of using pcpup, as it's wrong for SMP.

Submitted by:	Lukasz Plachno <luk@semihalf.com>
This commit is contained in:
Olivier Houchard 2013-01-09 01:52:28 +00:00
parent 78c235c99f
commit 00100b0eec

View File

@ -100,8 +100,8 @@ set_tls(void *tls)
#define PCPU_GET(member) (get_pcpu()->pc_ ## member)
#define PCPU_ADD(member, value) (get_pcpu()->pc_ ## member += (value))
#define PCPU_INC(member) PCPU_ADD(member, 1)
#define PCPU_PTR(member) (&pcpup->pc_ ## member)
#define PCPU_SET(member,value) (pcpup->pc_ ## member = (value))
#define PCPU_PTR(member) (&get_pcpu()->pc_ ## member)
#define PCPU_SET(member,value) (get_pcpu()->pc_ ## member = (value))
void pcpu0_init(void);
#endif /* _KERNEL */