mirror of
https://github.com/torvalds/linux.git
synced 2024-12-27 13:22:23 +00:00
19 lines
383 B
C
19 lines
383 B
C
|
#ifndef __ASM_SUSPEND_H
|
||
|
#define __ASM_SUSPEND_H
|
||
|
|
||
|
#define NR_CTX_REGS 11
|
||
|
|
||
|
/*
|
||
|
* struct cpu_suspend_ctx must be 16-byte aligned since it is allocated on
|
||
|
* the stack, which must be 16-byte aligned on v8
|
||
|
*/
|
||
|
struct cpu_suspend_ctx {
|
||
|
/*
|
||
|
* This struct must be kept in sync with
|
||
|
* cpu_do_{suspend/resume} in mm/proc.S
|
||
|
*/
|
||
|
u64 ctx_regs[NR_CTX_REGS];
|
||
|
u64 sp;
|
||
|
} __aligned(16);
|
||
|
#endif
|