summaryrefslogtreecommitdiffstats
path: root/sys/amd64/acpica
Commit message (Collapse)AuthorAgeFilesLines
* Minor style cleanups.njl2003-08-283-4/+2
|
* Use __FBSDID().obrien2003-07-253-6/+10
| | | | Brought to you by: a boring talk at OLS
* Port acpica to amd64.peter2003-05-311-5/+5
| | | | Approved by: re (amd64/* blanket)
* Commit MD parts of a loosely functional AMD64 port. This is based onpeter2003-05-013-608/+2
| | | | | | | | | | | | | | | | | | | | | | 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.
* - Add vm_paddr_t, a physical address type. This is required for systemsjake2003-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)
* Use repo-copied files in sys/i386/bios.mdodd2003-03-241-1/+1
|
* Gigacommit to improve device-driver source compatibility betweenphk2003-03-031-13/+7
| | | | | | | | | | | | | branches: Initialize struct cdevsw using C99 sparse initializtion and remove all initializations to default values. This patch is automatically generated and has been tested by compiling LINT with all the fields in struct cdevsw in reverse order on alpha, sparc64 and i386. Approved by: re(scottl)
* Export the physical address of the RSDP to userland by meansmarcel2002-12-181-11/+29
| | | | | | | | | | of the `machdep.acpi_root' sysctl. This is required on ia64 because the root pointer hardly ever, if at all, lives in the first MB of memory and also because scanning the first MB of memory can cause machine checks. This provides a save and reliable way for ACPI tools to work with the tables if ACPI support is present in the kernel. On ia64 ACPI is non-optional.
* Hold the page queues lock around calls to pmap_remove().alc2002-12-041-0/+2
| | | | Approved by: re
* Add `if (!cold)' checkings for functions which is called via SYSINIT.iwasaki2002-11-241-0/+3
| | | | | | | Loading acpi.ko with kldload is disallowed, however some functions were executed unexpectedly. Approved by: re
* *sigh*. It seems that in the ACPICA code, Intel defines its own APIC_IOjhb2002-11-211-1/+1
| | | | | | | | | | macro for use when parsing MADT tables, thus we always tried to set the interrupt model to APIC. This proved to be harmful on UP machines with IO APIC's (or for UP kernels on SMP machines) since the wrong interrupt routing information would be returned. Pointy hat to: jhb Approved by: re (rwatson)
* - curproc may be NULL in 4-stable. In that case use the vmspace fromjhb2002-10-161-2/+4
| | | | | | | proc0. - Remove unused include. Sponsored by: The Weather Channel
* Include <sys/select.h> on -stable instead of <sys/selinfo.h> to get thejhb2002-10-161-0/+4
| | | | | | definition of struct selinfo. Sponsored by: The Weather Channel
* Use d_thread_t for cdevsw functions instead of struct thread * so that itjhb2002-10-091-4/+4
| | | | is easier to share this code with 4-stable.
* Trash the PnPBIOStable pointer later on when we know that the acpi probejhb2002-09-302-6/+6
| | | | | | and attach routines have succeeded so that if they fail we can still use the PnP BIOS to find ISA on-board devices. The fact that we do this here is gross but fixing it properly involves a lot more work.
* Wrap GCC-specific asm() code in #ifdef __GNUC__markm2002-09-211-0/+2
|
* If we are using APIC_IO tell ACPI so it can route interrupts properly.jhb2002-09-061-0/+3
| | | | | This still doesn't work quite right because of other APIC_IO hacks in the i386 PCI code.
* Replace (ab)uses of "NULL" where "0" is really meant.archie2002-08-222-3/+3
|
* Improve stack manipulation code of ACPI wakeup routine.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
* Fix a bug about stack manipulation at ACPI wakeup.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
* Resolve conflicts arising from the ACPI CA 20020404 import.iwasaki2002-06-301-1/+1
|
* Make this compile with gcc-3.1, which objects to the multi-line string.peter2002-05-191-64/+64
|
* Fix typo in function name.wes2002-01-101-1/+1
| | | | | Reviewed by: peter@ Obtained from: mux@sneakerz.org
* Fix S3 breakage.takawata2002-01-091-1/+2
| | | | | Now AcpiEnterSleep() is light enough, so flushing cache before the function is not too early.
* Staticise devclasses and some unnecessarily global variables.msmith2002-01-081-1/+1
|
* Yet another verbose printing cleanup. Remove debug_wakeup flag andiwasaki2001-11-181-5/+2
| | | | check common verbose flag instead.
* Add two minor changes.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.
* Add S4BIOS sleep (BIOS hibernation) and DSDT overriding support.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.
* Add APM compatibility feature to ACPI.iwasaki2001-10-261-0/+335
| | | | | | | | | | | | | | | | | This emulates APM device node interface APIs (mainly ioctl) and provides APM services for the applications. The goal is to support most of APM applications without any changes. Implemented ioctls in this commit are: - APMIO_SUSPEND (mapped ACPI S3 as default but changable by sysctl) - APMIO_STANDBY (mapped ACPI S1 as default but changable by sysctl) - APMIO_GETINFO and APMIO_GETINFO_OLD - APMIO_GETPWSTATUS With above, many APM applications which get batteries, ac-line info. and transition the system into suspend/standby mode (such as wmapm, xbatt) should work with ACPI enabled kernel (if ACPI works well :-) Reviewed by: arch@, audit@ and some guys
* Now that this code is MD, we don't need the i386 ifdefs.msmith2001-09-071-6/+9
|
* Don't do sleep state transition if specified sleep state is notiwasaki2001-07-221-7/+6
| | | | supported by the system.
* Convert from acpi_strerror() to AcpiFormatException()msmith2001-07-211-1/+1
| | | | Fix dangling include of the dear departed acpi_ecreg.h
* Update the OSD module to match the ACPI CA 20010717 import.msmith2001-07-211-0/+8
| | | | Submitted by: "Grover, Andrew" <andrew.grover@intel.com> (OsdHardware.c)
* Add ACPI S2-S4BIOS Suspend/Resume code.takawata2001-07-201-0/+328
| | | | | | Some problems may remain. Reviewed by:iwasaki
* FreeBSD-specific OSD (operating system dependant) modules for the Intelmsmith2000-10-281-0/+56
ACPICA code.
OpenPOWER on IntegriCloud