]>
git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blob - include/asm-i386/percpu.h
a10e7c68ae9dcdc483345aea3510fc853da6e65b
1 #ifndef __ARCH_I386_PERCPU__
2 #define __ARCH_I386_PERCPU__
5 #include <asm-generic/percpu.h>
9 * PER_CPU finds an address of a per-cpu variable.
13 * cpu - 32bit register containing the current CPU number
15 * The resulting address is stored in the "cpu" argument.
18 * PER_CPU(cpu_gdt_descr, %ebx)
21 #define PER_CPU(var, cpu) \
22 movl __per_cpu_offset(,cpu,4), cpu; \
23 addl $per_cpu__##var, cpu;
25 #define PER_CPU(var, cpu) \
26 movl $per_cpu__##var, cpu;
29 #endif /* !__ASSEMBLY__ */
31 #endif /* __ARCH_I386_PERCPU__ */