Re: [loongson-PATCH-v2 23/23] Hibernation Support in mips system

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



wuzhangjin@xxxxxxxxx writes:

Hi,

[...]

> +LEAF(swsusp_arch_resume)
> +	PTR_L t0, restore_pblist
> +0:
> +	PTR_L t1, PBE_ADDRESS(t0)   /* source */
> +	PTR_L t2, PBE_ORIG_ADDRESS(t0) /* destination */
> +	PTR_ADDIU t3, t1, _PAGE_SIZE
> +1:
> +	REG_L t8, (t1)
> +	REG_S t8, (t2)
> +	PTR_ADDIU t1, t1, SZREG
> +	PTR_ADDIU t2, t2, SZREG
> +	bne t1, t3, 1b
> +	PTR_L t0, PBE_NEXT(t0)
> +	bnez t0, 0b

you really need to flush cache/tlb here. If you don't do that you'll get
some weird bugs.


Arnaud


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux