Re: [ACPI] swsusp/s3: Assembly interactions need asmlinkage

From: Len Brown (len.brown_at_intel.com)
Date: 03/04/04

  • Next message: Andrew Morton: "Re: VM patches in 2.6.4-rc1-mm2"
    To: Pavel Machek <pavel@suse.cz>
    Date:	03 Mar 2004 22:28:56 -0500
    
    

    Applied.

    thanks,
    -Len

    On Tue, 2004-02-24 at 08:00, Pavel Machek wrote:
    > Hi!
    >
    > swsusp/s3 assembly parts, and parts called from assembly are not
    > properly marked asmlinkage; that leads to double fault on resume when
    > someone compiles kernel with regparm. Thanks go to Stefan Seyfried for
    > discovering this. Please apply,
    > Pavel
    >
    > --- tmp/linux/drivers/acpi/hardware/hwsleep.c 2004-02-05
    > 01:53:59.000000000 +0100
    > +++ linux/drivers/acpi/hardware/hwsleep.c 2004-02-23
    > 21:47:23.000000000 +0100
    > @@ -205,7 +205,7 @@
    > *
    >
    > ******************************************************************************/
    >
    > -acpi_status
    > +acpi_status asmlinkage
    > acpi_enter_sleep_state (
    > u8 sleep_state)
    > {
    > --- tmp/linux/include/linux/suspend.h 2004-02-24 13:21:40.000000000
    > +0100
    > +++ linux/include/linux/suspend.h 2004-02-23 20:57:04.000000000
    > +0100
    > @@ -82,4 +82,10 @@
    > }
    > #endif /* CONFIG_PM */
    >
    > +asmlinkage extern void do_magic(int is_resume);
    > +asmlinkage extern void do_magic_resume_1(void);
    > +asmlinkage extern void do_magic_resume_2(void);
    > +asmlinkage extern void do_magic_suspend_1(void);
    > +asmlinkage extern void do_magic_suspend_2(void);
    > +
    > #endif /* _LINUX_SWSUSP_H */
    >
    > --
    > When do you have a heart between your knees?
    > [Johanka's followup: and *two* hearts?]
    >
    >
    > -------------------------------------------------------
    > SF.Net is sponsored by: Speed Start Your Linux Apps Now.
    > Build and deploy apps & Web services for Linux with
    > a free DVD software kit from IBM. Click Now!
    > http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
    > _______________________________________________
    > Acpi-devel mailing list
    > Acpi-devel@lists.sourceforge.net
    > https://lists.sourceforge.net/lists/listinfo/acpi-devel
    >

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Andrew Morton: "Re: VM patches in 2.6.4-rc1-mm2"

    Relevant Pages

    • Re: [ACPI] swsusp/s3: Assembly interactions need asmlinkage
      ... that leads to double fault on resume when ... To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)
    • Re: [RFC] Changing COW detection to be memory hotplug friendly
      ... Keeping the swap slot ... is valuable if read fault, but once the page is dirtied, wouldn't ... I cannot imagine a good enough range of swap performance tests. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: All filesystems hang under long periods of heavy load (read and write) on a filesystem
      ... > the filesystem on the partition being written to. ... It seems that this boils down to using PIO mode, after enabling DMA I am ... the fault might not be fixed, it might just be less obvious... ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Stop the linux kernel madness - SOLVED!
      ... > So simply removing this symlink and putting back a link to ... IF the fault here is SUSE's, then submit THEM a bug report and stop whining in lkml. ... could have between lkml readers. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: system-freeze: kprobe and do_gettimeofday
      ... "insmod kgettime.ko" from the console ... double fault, ... Then I removed all my modules I was able to load the module ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)