summaryrefslogtreecommitdiffstats
path: root/sys/i386
Commit message (Collapse)AuthorAgeFilesLines
* Yet another verbose printing cleanup. Remove debug_wakeup flag andiwasaki2001-11-181-5/+2
| | | | check common verbose flag instead.
* Fix the non-KSTACK_GUARD case.. It has been broken since the KSEpeter2001-11-171-0/+1
| | | | commit. ptek was not been initialized.
* Start bringing i386/pmap.c into line with cleanups that were done topeter2001-11-174-258/+193
| | | | | | | | | | | | | | | alpha pmap. In particular - - pd_entry_t and pt_entry_t are now u_int32_t instead of a pointer. This is to enable cleaner PAE and x86-64 support down the track sor that we can change the pd_entry_t/pt_entry_t types to 64 bit entities. - Terminate "unsigned *ptep, pte" with extreme prejudice and use the correct pt_entry_t/pd_entry_t types. - Various other cosmetic changes to match cleanups elsewhere. - This eliminates a boatload of casts. - use VM_MAXUSER_ADDRESS in place of UPT_MIN_ADDRESS in a couple of places where we're testing user address space limits. Assuming the page tables start directly after the end of user space is not a safe assumption. There is still more to go.
* Handle the IBCS2 FIONREAD ioctl. I have only tested that thisiedowse2001-11-161-0/+1
| | | | | | | compiles, but the patch looks reasonable. PR: i386/5784 Submitted by: Remy NONNENMACHER <remy@synx.com>
* Oops, I accidently merged a whitespace error from the original commit.peter2001-11-161-1/+1
| | | | (whitespace at end of line in rev 1.264 pmap.c). Fix them all.
* Converge/fix some debug code (#if 0'ed on alpha, but whatever)peter2001-11-161-14/+11
| | | | | | - use NPTEPG/NPDEPG instead of magic 1024 (important for PAE) - use pt_entry_t instead of unsigned (important for PAE) - use vm_offset_t instead of unsigned for va's (important for x86-64)
* Allow bit 21 of EFLAGS register (PSL_ID) be changed in the use-mode withoutsobomax2001-11-151-1/+1
| | | | | | | | | | ill effects. This should fix problems threaded programs are having with auto-detecting CPU type. Reported by: Joe Clarke <marcus@marcuscom.com> Tested by: Joe Clarke <marcus@marcuscom.com> Reviewed by: jhb MFC after: 1 week
* Document the atkbd flags of 0x03 and be explicit to mention this mightasmodai2001-11-151-0/+2
| | | | | | | | fit some dockingstation keyboard probing. PR: 23681 Submitted by: yokota [PR issued by: Claude Lefrancois <lmcclef@lmc.ericsson.se>]
* - Don't enable interrupts in trap() if we trapped while holding a spinjhb2001-11-151-6/+17
| | | | | | | | lock as this usually makes the problem worse. - If we get a page fault while holding a spin lock, treat it as a fatal trap and don't even bother calling into the VM since calling into the VM will panic when trying to lock Giant before we can get a useful message anyways.
* Axe NFS_NOSERVER since it doesn't do anything anymore. Remove NFSSERVERjhb2001-11-151-1/+0
| | | | from your config file instead.
* Replace use of "0" constraints in inline asm with "+" constraints,keramida2001-11-131-4/+4
| | | | | | when an operand is used both for input and output. Reviewed by: jhb
* Change constraints to use "+" in inline asm instead of mapping inputkeramida2001-11-121-1/+1
| | | | | | to output parameters with "0". Reviewed by: jhb
* Use newer constraints for atomic_cmpset().jhb2001-11-121-11/+9
| | | | Requested by: bde
* Use newer constraints for inline assembly for an operand that is both anjhb2001-11-121-21/+21
| | | | | | | input and an output by using the '+' modifier rather than listing the operand in both the input and output sections. Reviwed by: bde
* Back out last commit, it was accidentalimp2001-11-111-79/+79
|
* s/PCCARD_/PCMCIA_/g in NEWCARD device tables to enable easier NetBSD sharingimp2001-11-111-79/+79
|
* 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.
* Fix tab damage in rev 1.326.obrien2001-11-061-1/+1
|
* 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.
* GC userconfig after Peter axed it 15 months ago.phk2001-11-051-3148/+0
|
* Also remove the .h files for the old rp driver.phk2001-11-052-1137/+0
|
* Remove the old RocketPort driver which was left behind in favourphk2001-11-051-1988/+0
| | | | of the new driver. The new driver works, the old one is 1+ year behind.
* Don't call cdevsw_add().phk2001-11-041-3/+0
|
* Don't call devsw_add().phk2001-11-041-4/+0
|
* Don't call cdevsw_add().phk2001-11-047-26/+0
|
* Don't call cdevsw_add()phk2001-11-041-4/+0
|
* Call to cdevsw_add() no longer needed.phk2001-11-041-1/+0
|
* o Add new header <sys/stdint.h>.mike2001-11-024-0/+470
| | | | | | | | | | | | | | | | | | | | | o Make <stdint.h> a symbolic link to <sys/stdint.h>. o Move most of <sys/inttypes.h> into <sys/stdint.h>, as per C99. o Remove <sys/inttypes.h>. o Adjust includes in sys/types.h and boot/efi/include/ia64/efibind.h to reflect new location of integer types in <sys/stdint.h>. o Remove previously symbolicly linked <inttypes.h>, instead create a new file. o Add MD headers <machine/_inttypes.h> from NetBSD. o Include <sys/stdint.h> in <inttypes.h>, as required by C99; and include <machine/_inttypes.h> in <inttypes.h>, to fill in the remaining requirements for <inttypes.h>. o Add additional integer types in <machine/ansi.h> and <machine/limits.h> which are included via <sys/stdint.h>. Partially obtain from: NetBSD Tested on: alpha, i386 Discussed on: freebsd-standards@bostonradio.org Reviewed by: bde, fenner, obrien, wollman
* The sound drivers live in sound/driver, not sound/driversimp2001-11-021-1/+1
| | | | submitted by: Alex Kapranoff <alex@kapran.bitmcnit.bryansk.su>
* Some fix for the recent apm module changes.iwasaki2001-11-014-18/+200
| | | | | | | | | | | | | | - Now that apm loadable module can inform its existence to other kernel components (e.g. i386/isa/clock.c:startrtclock()'s TCS hack). - Exchange priority of SI_SUB_CPU and SI_SUB_KLD for above purpose. - Add simple arbitration mechanism for APM vs. ACPI. This prevents the kernel enables both of them. - Remove obsolete `#ifdef DEV_APM' related code. - Add abstracted interface for Powermanagement operations. Public apm(4) functions, such as apm_suspend(), should be replaced new interfaces. Currently only power_pm_suspend (successor of apm_suspend) is implemented. Reviewed by: peter, arch@ and audit@
* Skip PG_UNMANAGED pages when we're shooting everything down to try andpeter2001-11-011-1/+1
| | | | | | reclaim pv_entries. PG_UNMANAGED pages dont have pv_entries to reclaim. Reported by: David Xu <davidx@viasoft.com.cn>
* Remove previous revision. smp_started back in subr_smp where it belongs.mjacob2001-10-313-6/+0
|
* Make the actual volatile int smp_started live *somewhere*. This ismjacob2001-10-313-0/+6
| | | | | | a temporary fix so that we can compile kernels. I waited 30 minutes for a response from the person who would likely know, but any longer is too long to wait with breakage at ToT.
* Spell deivces as devices.rwatson2001-10-312-2/+2
|
* Don't let pmap_object_init_pt() exhaust all available free pagesdillon2001-10-311-1/+17
| | | | | | (allocating pv entries w/ zalloci) when called in a loop due to an madvise(). It is possible to completely exhaust the free page list and cause a system panic when an expected allocation fails.
* Don't try to probe the PnP BIOS if ACPI is active.msmith2001-10-311-0/+5
|
* Add kmupetext(), a function that expands the range of memory coveredgreen2001-10-301-0/+1
| | | | | | | | | by the profiler on a running system. This is not done sparsely, as memory is cheaper than processor speed and each gprof mcount() and mexitcount() operation is already very expensive. Obtained from: NAI Labs CBOSS project Funded by: DARPA
* MFGeneric: ->1.327 Sync with GENERICimp2001-10-301-10/+11
|
* Move device lnc to isa section, since it no longer uses the compat shims.imp2001-10-301-3/+2
| | | | | | Add comment about lnc. Remove probe order comment from isa_compat.c. That appears to no longer be the case.
* Fix a typo in comment and #ifdef fixes: GRAP_PRIO -> GRAB_PRIO so thatjhb2001-10-301-1/+1
| | | | | | | x86 SMP kernels actually boot again to single user mode. Pointy hat to: jhb Noticed by: jlemon
* Don't set CR0_NE in cpu_setregs() for the SMP case, since setting itbde2001-10-291-0/+2
| | | | | | | is npx.c's job and setting it here breaks the edit-time option of not setting it in npx.c. (It is not set in the right places for the SMP case, but always setting it here is harmless because there isn't even an edit-time option to not set it.)
* - More whitespace and comment cleanups.jhb2001-10-281-35/+46
| | | | | | | | - Remove unused sw1a label. A breakpoint can be set in choosethread() for the same effect. Reviewed by: bde Submitted by: bde (partly)
* Eliminate the prefix parameter to linux_emul_find(), which was alwaysdes2001-10-271-2/+2
| | | | | | | | linux_emul_path anyway. Linux_emul_find() has interesting bugs in its prefix handling (which luckily are not currently exploitable); this commit is preliminary to an attempt at cleaning it up. Approved by: marcel
* 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
* Add a per-thread ucred reference for syscalls and synchronous traps fromjhb2001-10-261-26/+37
| | | | | | | | | userland. The per thread ucred reference is immutable and thus needs no locks to be read. However, until all the proc locking associated with writes to p_ucred are completed, it is still not safe to use the per-thread reference. Tested on: x86 (SMP), alpha, sparc64
* Remove wx driver, which got recently removed.asmodai2001-10-251-1/+0
| | | | Submitted by: revamped kernincludes.sh
* Unbreak NEWCARD by removing options NFS and replacing it with theasmodai2001-10-251-1/+2
| | | | | | new NFSCLIENT and NFSSERVER options. Submitted by: revamped kernincludes.sh
* Currently no code does a CROSSJUMP() to sw1a, so we don't need ajhb2001-10-251-2/+0
| | | | | | CROSSJUMPTARGET() for it. Submitted by: bde
* Use %ecx instead of %ebx for the scratch register while updating %dr7 sincejhb2001-10-251-5/+3
| | | | | | | %ecx isn't a call safe register and thus we don't have to save and restore it. Submitted by: bde
* - Fix typo in comment from previous revision.jhb2001-10-251-3/+4
| | | | | | | | - Fix a bug in the LDT changes where the wrong argument was passed to set_user_ldt() from cpu_switch(). The bug was passing a pointer to the ldt, but set_user_ldt() takes a pointer to the process' mdproc structure. Submitted by: bde
OpenPOWER on IntegriCloud