The NetBSD Project

CVS log for src/sys/arch/i386/acpi/acpi_wakeup_low.S

[BACK] Up to [cvs.NetBSD.org] / src / sys / arch / i386 / acpi

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.5.42.1 / (download) - annotate - [select for diffs], Sun Dec 3 11:36:17 2017 UTC (4 years, 5 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.5: +17 -4 lines
Diff to previous 1.5 (colored) next main 1.6 (colored)

update from HEAD

Revision 1.5.62.1 / (download) - annotate - [select for diffs], Wed Oct 5 20:55:28 2016 UTC (5 years, 7 months ago) by skrll
Branch: nick-nhusb
Changes since 1.5: +17 -4 lines
Diff to previous 1.5 (colored) next main 1.6 (colored)

Sync with HEAD

Revision 1.8 / (download) - annotate - [select for diffs], Sat Aug 6 14:54:25 2016 UTC (5 years, 9 months ago) by maxv
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-futex, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, phil-wifi, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, netbsd-9-base, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, isaki-audio2-base, isaki-audio2, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache, HEAD
Changes since 1.7: +5 -4 lines
Diff to previous 1.7 (colored)

Use the stack to save %edx.

Revision 1.5.66.1 / (download) - annotate - [select for diffs], Tue Jul 26 03:24:17 2016 UTC (5 years, 10 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.5: +16 -4 lines
Diff to previous 1.5 (colored) next main 1.6 (colored)

Sync with HEAD

Revision 1.7 / (download) - annotate - [select for diffs], Sun Jul 24 14:09:22 2016 UTC (5 years, 10 months ago) by maxv
Branch: MAIN
CVS Tags: pgoyette-localcount-20160806, pgoyette-localcount-20160726
Changes since 1.6: +15 -2 lines
Diff to previous 1.6 (colored)

The MSR EFER state is not saved and restored when sleeping on i386. On PAE,
the CPU crashes right after waking up, since it needs to access NOX-ed
pages, which are to be enabled in an MSR.

Fix this by properly saving and restoring the EFER MSR. It's a little
tricky since the wakeup code uses %edx, but rdmsr overwrites it. We just
save it in %esi.

Now, the CPU sleeps properly on PAE kernels.

Revision 1.6 / (download) - annotate - [select for diffs], Sun Jul 24 13:04:58 2016 UTC (5 years, 10 months ago) by maxv
Branch: MAIN
Changes since 1.5: +3 -4 lines
Diff to previous 1.5 (colored)

KNF, and reduce the diff between amd64 and i386.

Revision 1.4.16.1 / (download) - annotate - [select for diffs], Mon Jun 23 04:30:25 2008 UTC (13 years, 11 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.4: +14 -14 lines
Diff to previous 1.4 (colored) next main 1.5 (colored)

Sync w/ -current. 34 merge conflicts to follow.

Revision 1.4.10.1 / (download) - annotate - [select for diffs], Mon Jun 2 13:22:13 2008 UTC (13 years, 11 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.4: +14 -14 lines
Diff to previous 1.4 (colored) next main 1.5 (colored)

Sync with HEAD.

Revision 1.4.12.1 / (download) - annotate - [select for diffs], Sun May 18 12:32:09 2008 UTC (14 years ago) by yamt
Branch: yamt-pf42
Changes since 1.4: +14 -14 lines
Diff to previous 1.4 (colored) next main 1.5 (colored)

sync with head.

Revision 1.4.14.1 / (download) - annotate - [select for diffs], Fri May 16 02:22:32 2008 UTC (14 years ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.4: +14 -14 lines
Diff to previous 1.4 (colored) next main 1.5 (colored)

sync with head.

Revision 1.5 / (download) - annotate - [select for diffs], Sun May 11 15:32:20 2008 UTC (14 years ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pagecache-tag8, yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-pagecache, yamt-nfs-mp-base9, yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, yamt-nfs-mp-base2, yamt-nfs-mp-base11, yamt-nfs-mp-base10, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, uebayasi-xip-base7, uebayasi-xip-base6, uebayasi-xip-base5, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, uebayasi-xip, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, rmind-uvmplock-nbase, rmind-uvmplock-base, rmind-uvmplock, rmind-smpnet-nbase, rmind-smpnet-base, rmind-smpnet, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, pgoyette-localcount-base, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, nick-hppapmap, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, mjf-devfs2-base, matt-premerge-20091211, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-premerge-20101231, matt-mips64-base2, khorben-n900, jymxensuspend-base, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend, jruoho-x86intr-base, jruoho-x86intr, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10, jmcneill-usbmp-base, jmcneill-usbmp, jmcneill-audiomp3-base, jmcneill-audiomp3, hpcarm-cleanup-nbase, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2, agc-symver-base, agc-symver, ad-audiomp2-base, ad-audiomp2
Branch point for: tls-maxphys, pgoyette-localcount, nick-nhusb
Changes since 1.4: +14 -14 lines
Diff to previous 1.4 (colored)

Share cpu.h between the x86 ports.

Revision 1.4.4.2 / (download) - annotate - [select for diffs], Mon Jan 21 09:36:48 2008 UTC (14 years, 4 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.4.4.1: +123 -0 lines
Diff to previous 1.4.4.1 (colored) to branchpoint 1.4 (colored) next main 1.5 (colored)

sync with head

Revision 1.4.2.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:46:25 2008 UTC (14 years, 4 months ago) by matt
Branch: matt-armv6
Changes since 1.4.2.1: +123 -0 lines
Diff to previous 1.4.2.1 (colored) to branchpoint 1.4 (colored) next main 1.5 (colored)

sync with HEAD

Revision 1.2.2.2 / (download) - annotate - [select for diffs], Wed Jan 2 21:48:07 2008 UTC (14 years, 4 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.2.2.1: +44 -89 lines
Diff to previous 1.2.2.1 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)

Sync with HEAD

Revision 1.1.8.1 / (download) - annotate - [select for diffs], Thu Dec 27 00:42:59 2007 UTC (14 years, 5 months ago) by mjf
Branch: mjf-devfs
Changes since 1.1: +123 -0 lines
Diff to previous 1.1 (colored) next main 1.2 (colored)

Sync with HEAD.

Revision 1.1.10.1 / (download) - annotate - [select for diffs], Wed Dec 26 19:17:16 2007 UTC (14 years, 5 months ago) by ad
Branch: vmlocking2
Changes since 1.1: +123 -0 lines
Diff to previous 1.1 (colored) next main 1.2 (colored)

Sync with head.

Revision 1.4.4.1, Tue Dec 18 07:17:13 2007 UTC (14 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.4: +0 -123 lines
FILE REMOVED

file acpi_wakeup_low.S was added on branch yamt-lazymbuf on 2008-01-21 09:36:48 +0000

Revision 1.4.2.1, Tue Dec 18 07:17:13 2007 UTC (14 years, 5 months ago) by matt
Branch: matt-armv6
Changes since 1.4: +0 -123 lines
FILE REMOVED

file acpi_wakeup_low.S was added on branch matt-armv6 on 2008-01-09 01:46:25 +0000

Revision 1.4 / (download) - annotate - [select for diffs], Tue Dec 18 07:17:13 2007 UTC (14 years, 5 months ago) by joerg
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, vmlocking2-base3, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-nbase, matt-armv6-base, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, bouyer-xeni386-nbase, bouyer-xeni386-base, ad-socklock-base1
Branch point for: yamt-pf42, yamt-nfs-mp, yamt-lazymbuf, wrstuden-revivesa, mjf-devfs2, matt-armv6
Changes since 1.3: +46 -91 lines
Diff to previous 1.3 (colored)

Add new IPI for saving CPU state explicitly, share high-level part of
ACPI wakeup code and teach it how to start the APs again. As a side
effect the CPU_START interface allows choosing between different
bootstrap codes more easily now.

Revision 1.2.2.1 / (download) - annotate - [select for diffs], Thu Dec 13 21:54:37 2007 UTC (14 years, 5 months ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.2: +3 -1 lines
Diff to previous 1.2 (colored)

Sync with HEAD

Revision 1.1.12.2 / (download) - annotate - [select for diffs], Thu Dec 13 05:05:15 2007 UTC (14 years, 5 months ago) by yamt
Branch: yamt-kmem
Changes since 1.1.12.1: +4 -2 lines
Diff to previous 1.1.12.1 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

sync with head.

Revision 1.3 / (download) - annotate - [select for diffs], Tue Dec 11 23:06:11 2007 UTC (14 years, 5 months ago) by lukem
Branch: MAIN
CVS Tags: yamt-kmem-base3
Changes since 1.2: +4 -2 lines
Diff to previous 1.2 (colored)

Use __KERNEL_RCSID().  For these .S files, the following style was
adopted, a la .C files and <sys/cdefs.h>:
  *  move <machine/asm.h> to the top
  *  use __KERNEL_RCSID() immediately after it

Revision 1.1.12.1 / (download) - annotate - [select for diffs], Tue Dec 11 15:20:26 2007 UTC (14 years, 5 months ago) by yamt
Branch: yamt-kmem
Changes since 1.1: +166 -0 lines
Diff to previous 1.1 (colored)

sync with head.

Revision 1.2 / (download) - annotate - [select for diffs], Sun Dec 9 20:27:44 2007 UTC (14 years, 5 months ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-kmem-base2, cube-autoconf-base, cube-autoconf
Branch point for: bouyer-xeni386
Changes since 1.1: +166 -0 lines
Diff to previous 1.1 (colored)

Merge jmcneill-pm branch.

Revision 1.1.2.4 / (download) - annotate - [select for diffs], Mon Nov 12 12:08:46 2007 UTC (14 years, 6 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.1.2.3: +12 -7 lines
Diff to previous 1.1.2.3 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

Reorder acpi_md_sleep similiar to amd64, e.g. stop double-return
from acpi_savecpu and call back into C to enter ACPI sleep state
instead.

Revision 1.1.2.3 / (download) - annotate - [select for diffs], Fri Oct 26 15:42:32 2007 UTC (14 years, 7 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.1.2.2: +3 -3 lines
Diff to previous 1.1.2.2 (colored) to branchpoint 1.1 (colored)

Sync with HEAD.

Follow the merge of pmap.c on i386 and amd64 and move
pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup
code to restore CR4 before jumping back into kernel space as the large
page option might cover that.

Revision 1.1.2.2 / (download) - annotate - [select for diffs], Mon Sep 24 15:33:13 2007 UTC (14 years, 8 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.1.2.1: +9 -9 lines
Diff to previous 1.1.2.1 (colored) to branchpoint 1.1 (colored)

Be explicit about the width of the mov instruction.

Revision 1.1.2.1 / (download) - annotate - [select for diffs], Sat Sep 8 00:31:35 2007 UTC (14 years, 8 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.1: +161 -0 lines
Diff to previous 1.1 (colored)

Start to revamp the ACPI wake code (i386 only, amd64 gets minimal fixes
to keep being compilable):

- In init386 and the amd64 equivalent, just reserve the low-level code.
  Do not map and don't copy the wakecode yet. This avoids the conflicts
  with the MP tramp code as well. The wakecode is expected to be less
  than one page long, which is way too much space.
  acpi_md_get_npages_of_wakecode and acpi_md_install_wakecode are
  dropped, acpi_wakeup_paddr is set instead of the reserved address.
- Split the wakecode into the essential low-level part to setup
  protected mode with paging and valid CS and DS (which stays as
  wakecode) and the rest. Inline beepon and beepoff as they are used
  exactly once.
- Split the acpi_restorecpu and acpi_savecpu assembly from apci_wakeup.c
  and merge acpi_restorecpu with the second half dropped from wakecode.
  Most registers are not exported, just those needed to be patched into
  wakecode. Don't bother to save or restore %eax, it is overriden
  anyway.
- Don't bother to save and restore eflags in acpi_md_sleep, they are
  handled correctly by the assembly. Don't play games with cr3 either,
  we modify the pmap of the running processes. Copy the wakecode
  directly before patching it, after the identity mapping has been
  setup.
- Drop clear_reg and acpi_printcpu.
- Add an commented out broadcast IPI to halt the other CPUs explicitly.

Revision 1.1, Sat Sep 8 00:31:34 2007 UTC (14 years, 8 months ago) by joerg
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, yamt-kmem-base, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, vmlocking-base, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base, jmcneill-base, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: yamt-kmem, vmlocking2, mjf-devfs, jmcneill-pm
FILE REMOVED

file acpi_wakeup_low.S was initially added on branch jmcneill-pm.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>