aboutsummaryrefslogtreecommitdiff
path: root/sys/amd64/acpica/acpi_wakeup.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Initial suspend/resume support for amd64.Jung-uk Kim2009-03-171-1/+396
| | | | | | | | | This code is heavily inspired by Takanori Watanabe's experimental SMP patch for i386 and large portion was shamelessly cut and pasted from Peter Wemm's AP boot code. Notes: svn path=/head/; revision=189903
* Canonize the include of acpi.h.David E. O'Brien2005-09-111-1/+1
| | | | Notes: svn path=/head/; revision=150003
* Minor style cleanups.Nate Lawson2003-08-281-1/+0
| | | | Notes: svn path=/head/; revision=119531
* Use __FBSDID().David E. O'Brien2003-07-251-2/+4
| | | | | | | Brought to you by: a boring talk at OLS Notes: svn path=/head/; revision=118030
* Commit MD parts of a loosely functional AMD64 port. This is based onPeter Wemm2003-05-011-310/+1
| | | | | | | | | | | | | | | | | | | | | | | | | a heavily stripped down FreeBSD/i386 (brutally stripped down actually) to attempt to get a stable base to start from. There is a lot missing still. Worth noting: - The kernel runs at 1GB in order to cheat with the pmap code. pmap uses a variation of the PAE code in order to avoid having to worry about 4 levels of page tables yet. - It boots in 64 bit "long mode" with a tiny trampoline embedded in the i386 loader. This simplifies locore.s greatly. - There are still quite a few fragments of i386-specific code that have not been translated yet, and some that I cheated and wrote dumb C versions of (bcopy etc). - It has both int 0x80 for syscalls (but using registers for argument passing, as is native on the amd64 ABI), and the 'syscall' instruction for syscalls. int 0x80 preserves all registers, 'syscall' does not. - I have tried to minimize looking at the NetBSD code, except in a couple of places (eg: to find which register they use to replace the trashed %rcx register in the syscall instruction). As a result, there is not a lot of similarity. I did look at NetBSD a few times while debugging to get some ideas about what I might have done wrong in my first attempt. Notes: svn path=/head/; revision=114349
* - Add vm_paddr_t, a physical address type. This is required for systemsJake Burkholder2003-03-251-1/+1
| | | | | | | | | | | | | | | | | | where physical addresses larger than virtual addresses, such as i386s with PAE. - Use this to represent physical addresses in the MI vm system and in the i386 pmap code. This also changes the paddr parameter to d_mmap_t. - Fix printf formats to handle physical addresses >4G in the i386 memory detection code, and due to kvtop returning vm_paddr_t instead of u_long. Note that this is a name change only; vm_paddr_t is still the same as vm_offset_t on all currently supported platforms. Sponsored by: DARPA, Network Associates Laboratories Discussed with: re, phk (cdevsw change) Notes: svn path=/head/; revision=112569
* Hold the page queues lock around calls to pmap_remove().Alan Cox2002-12-041-0/+2
| | | | | | | Approved by: re Notes: svn path=/head/; revision=107618
* Add `if (!cold)' checkings for functions which is called via SYSINIT.Mitsuru IWASAKI2002-11-241-0/+3
| | | | | | | | | | Loading acpi.ko with kldload is disallowed, however some functions were executed unexpectedly. Approved by: re Notes: svn path=/head/; revision=107199
* - curproc may be NULL in 4-stable. In that case use the vmspace fromJohn Baldwin2002-10-161-2/+4
| | | | | | | | | | proc0. - Remove unused include. Sponsored by: The Weather Channel Notes: svn path=/head/; revision=105277
* Wrap GCC-specific asm() code in #ifdef __GNUC__Mark Murray2002-09-211-0/+2
| | | | Notes: svn path=/head/; revision=103748
* Replace (ab)uses of "NULL" where "0" is really meant.Archie Cobbs2002-08-221-1/+1
| | | | Notes: svn path=/head/; revision=102291
* Improve stack manipulation code of ACPI wakeup routine.Mitsuru IWASAKI2002-08-071-2/+2
| | | | | | | | | | The new code just override stack top value with saved return address rather than pop/push operation. Submitted by: jhb Notes: svn path=/head/; revision=101459
* Fix a bug about stack manipulation at ACPI wakeup.Mitsuru IWASAKI2002-08-011-0/+1
| | | | | | | | | | This should avoid kernel panic on kernel compiled w/o NO_CPU_COPTFLAGS. Suggested by: optimized code by -mcpu=pentiumpro Notes: svn path=/head/; revision=101140
* Make this compile with gcc-3.1, which objects to the multi-line string.Peter Wemm2002-05-191-64/+64
| | | | Notes: svn path=/head/; revision=96929
* Fix typo in function name.Wes Peters2002-01-101-1/+1
| | | | | | | | Reviewed by: peter@ Obtained from: mux@sneakerz.org Notes: svn path=/head/; revision=89179
* Fix S3 breakage.Takanori Watanabe2002-01-091-1/+2
| | | | | | | | Now AcpiEnterSleep() is light enough, so flushing cache before the function is not too early. Notes: svn path=/head/; revision=89156
* Staticise devclasses and some unnecessarily global variables.Mike Smith2002-01-081-1/+1
| | | | Notes: svn path=/head/; revision=89054
* Yet another verbose printing cleanup. Remove debug_wakeup flag andMitsuru IWASAKI2001-11-181-5/+2
| | | | | | | check common verbose flag instead. Notes: svn path=/head/; revision=86554
* Add two minor changes.Mitsuru IWASAKI2001-11-111-33/+44
| | | | | | | | | - clean up wakeup routing fixup code by using macros. - allocate pte object temporary for kernel thread to avoid kernel panic by events from sleep button or lid switch. Notes: svn path=/head/; revision=86262
* Add S4BIOS sleep (BIOS hibernation) and DSDT overriding support.Mitsuru IWASAKI2001-11-061-1/+9
| | | | | | | | | | | | | | | | | - Add S4BIOS sleep implementation. This will works well if MIB hw.acpi.s4bios is set (and of course BIOS supports it and hibernation is enabled correctly). - Add DSDT overriding support which is submitted by takawata originally. If loader tunable acpi_dsdt_load="YES" and DSDT file is set to acpi_dsdt_name (default DSDT file name is /boot/acpi_dsdt.aml), ACPI CA core loads DSDT from given file rather than BIOS memory block. DSDT file can be generated by iasl in ports/devel/acpicatools/. - Add new files so that we can add our proposed additional code to Intel ACPI CA into these files temporary. They will be removed when similar code is added into ACPI CA officially. Notes: svn path=/head/; revision=86133
* Don't do sleep state transition if specified sleep state is notMitsuru IWASAKI2001-07-221-7/+6
| | | | | | | supported by the system. Notes: svn path=/head/; revision=80160
* Convert from acpi_strerror() to AcpiFormatException()Mike Smith2001-07-211-1/+1
| | | | | | | Fix dangling include of the dear departed acpi_ecreg.h Notes: svn path=/head/; revision=80078
* Add ACPI S2-S4BIOS Suspend/Resume code.Takanori Watanabe2001-07-201-0/+328
Some problems may remain. Reviewed by:iwasaki Notes: svn path=/head/; revision=80028