Hi. On Wednesday 28 June 2006 21:53, Rafael J. Wysocki wrote: > Hi, > > On Wednesday 28 June 2006 12:48, Nigel Cunningham wrote: > > I received a report of problems with CONFIG_REGPARM and suspending, that > > led me to recheck asm calls and declarations. Not being a guru on these > > things, I want to ask advice from those who know more. > > > > Along the way I noticed that current git has: > > > > extern asmlinkage int swsusp_arch_suspend(void); > > extern asmlinkage int swsusp_arch_resume(void); > > > > This is right for x86, but for x86_64, we actually call a C routine in > > arch/x86_64/kernel/suspend.c, which calls restore_image in > > arch/x86_64/kernel/suspend_asm.S. Restore image is declared in suspend.c > > as > > > > extern int restore_image(void); > > > > should it be: > > > > extern asmlinkage int restore_image(void); > > > > Having swsusp_arch_resume declared as asmlinkage doesn't matter, does it? > > No, it doesn't. It would have mattered on i386 if the function had taken > any arguments. AFAICT, on x86_64 it desn't matter at all. Right. But what about restore_image lacking the asmlinkage? I'm also wondering if that does matter. Regards, Nigel -- Nigel, Michelle and Alisdair Cunningham 5 Mitchell Street Cobden 3266 Victoria, Australia
Attachment:
pgpgZ9o39C4eM.pgp
Description: PGP signature
- Follow-Ups:
- Re: x86_64 restore_image declaration needs asmlinkage?
- From: "Rafael J. Wysocki" <[email protected]>
- Re: x86_64 restore_image declaration needs asmlinkage?
- References:
- x86_64 restore_image declaration needs asmlinkage?
- From: Nigel Cunningham <[email protected]>
- Re: x86_64 restore_image declaration needs asmlinkage?
- From: "Rafael J. Wysocki" <[email protected]>
- x86_64 restore_image declaration needs asmlinkage?
- Prev by Date: [RFC 2/2] ext2: fix rec_len overflow
- Next by Date: Re: 2.6.17-mm3 - mutex warning in usbhid, battery problem, and slab corruption
- Previous by thread: Re: x86_64 restore_image declaration needs asmlinkage?
- Next by thread: Re: x86_64 restore_image declaration needs asmlinkage?
- Index(es):