summaryrefslogtreecommitdiffstats
path: root/sys/i386
Commit message (Collapse)AuthorAgeFilesLines
* Be consistent about "static" functions: if the function is markedphk2002-09-284-4/+4
| | | | | | static in its prototype, mark it static at the definition too. Inspired by: FlexeLint warning #512
* Add the pst (Promise SX6000) driver to GENERIC.sos2002-09-271-0/+1
|
* Move the aac driver from MI to MD NOTES. It is a long way from beingscottl2002-09-261-0/+6
| | | | 64-bit clean.
* ISMEMSDP(), IS286GDP(), IS386GDP(), ISGDP(), ISSDP() and ISSYSSDP() arepeter2002-09-261-20/+0
| | | | not used anywhere anymore.
* Fix a declaration that is actually supposed to be a macro definition.markm2002-09-251-0/+1
| | | | Submitted by: marius@alchemy.franken.de
* Back out last commit. Linux uses the old 4.3BSD sockaddr format.mini2002-09-244-14/+10
|
* use __packed.alfred2002-09-236-20/+20
|
* Now that we only probe host-PCI bridges once, we no longer have to check tojhb2002-09-231-10/+0
| | | | see if we have been probed before by checking for a pciX bus device.
* Put verbose printf's in the PCI BIOS interrupt routing code underjhb2002-09-232-2/+8
| | | | if (bootverbose).
* Update the nexus driver for the addition of the legacy driver:jhb2002-09-232-113/+8
| | | | | | | | | - nexus no longer has PCI bridges as direct children, so the PCI bus ivar is no longer used and is removed. - Don't attach default EISA, ISA, or MCA busses. Instead, if we do not have an acpi0 device after bus_generic_probe(), add a legacy0 child device. - Remove machine/nexusvar.h.
* Hang apm off of the legacy device instead of the nexus.jhb2002-09-232-2/+2
|
* Change the nexus_pcib driver (eventually to be renamed to legacy_pcib) tojhb2002-09-231-7/+7
| | | | hang off of the legacy driver instead of the nexus.
* Add a new legacy(4) device driver for use on machines that do not havejhb2002-09-232-461/+112
| | | | | | | | ACPI or for when ACPI support is disabled or not present in the kernel. Basically, the nexus device is now split into two with some parts (such as adding default ISA, MCA, and EISA busses if they aren't found as well as support for PCI bus device ivars) being moved to the legacy driver.
* PIC_GOTOFF is OBE.peter2002-09-231-2/+0
|
* use __packed, rather than __attribute__((packed)).peter2002-09-231-4/+3
|
* Don't use compatability syscall wrappers in emulation code.mini2002-09-234-10/+14
| | | | | | This is needed for the COMPAT_FREEBSD3 option split. Reviewed by: alfred, jake
* At great personal risk, add a __packed and __aligned(x) define thatpeter2002-09-231-1/+1
| | | | | | | | | | expand to __attribute__((packed)) and __attribute__((aligned(x))) respectively. Replace the handful of gcc-ism's that use __attribute__((aligned(16))) etc around the kernel with __aligned(16). There are over 400 __attribute__((packed)) to deal with, that can come later. I just want to use __packed in new code rather than add more gcc-ism's.
* Delete a whole bunch of compatability defines that we dont use anymore.peter2002-09-231-6/+0
|
* Be careful not to define GCC-specific optimizations in the non-GCCmike2002-09-231-2/+11
| | | | case.
* Create inlines for ltr(sel), lldt(sel), lidt(addr) rather thanpeter2002-09-223-25/+26
| | | | functions that have one instruction.
* - Move the init of %gs and pcb_gs before user_ldt_free().mdodd2002-09-221-13/+4
| | | | | | | - Always call load_gs() - Trim comments. This addresses some of the issues raised by BDE.
* Moved nfs_diskless setup code from autoconf.c to nfsclient/nfs_diskless.cjake2002-09-221-181/+1
| | | | | | | so that it is MI. Allow nfs_mountroot to return an error if the nfs_diskless struct is not valid, rather than panicing later on. Call nfs_setup_diskless() from nfs_mountroot if NFS_ROOT is defined, like bootpc_init(). Removed legacy root mount support for sparc64, and enabled NFS_ROOT by default.
* Use the fields in the sysentvec and in the vm map header in place of thejake2002-09-212-2/+2
| | | | | | | | constants VM_MIN_ADDRESS, VM_MAXUSER_ADDRESS, USRSTACK and PS_STRINGS. This is mainly so that they can be variable even for the native abi, based on different machine types. Get stack protections from the sysentvec too. This makes it trivial to map the stack non-executable for certain abis, on machines that support it.
* Use a function instead of a non-portable, GCC-specific asm() entry.markm2002-09-211-1/+2
|
* A good dose of style.9. No functional change.markm2002-09-211-21/+17
|
* Code tidy-up. ISOfy, turn a macro into an inline for lint(1) (perhapsmarkm2002-09-211-16/+15
| | | | this needs to go to cpufunc.h?), de-register.
* Use a function instead of embedding non-portable asm() constructsmarkm2002-09-212-2/+4
| | | | in C code.
* Sort includes.markm2002-09-212-26/+28
|
* Provide in inline function for the (GNUC) assembler "hlt" instruction.markm2002-09-211-0/+7
|
* Wrap GCC-specific asm() code in #ifdef __GNUC__markm2002-09-211-0/+2
|
* Fix a 3 year old oversight: Remove the #ifdef/#endif pair now that therephk2002-09-212-4/+0
| | | | | | is nothing between them anymore. Spotted by: peter.
* Axe unused include.jhb2002-09-202-2/+0
|
* We need neither <sys/diskslice.h> nor <sys/disklabel.h> here.phk2002-09-201-2/+0
| | | | Sponsored by: DARPA & NAI Labs.
* For reasons now lost in historical fog, the bounds_check_with_label()phk2002-09-201-59/+0
| | | | | | | | | | | | function were put in i386/i386/machdep.c from where it has been cut and pasted to other architectures with only minor corruption. Disklabel is really a MI format in many ways, at least it certainly is when you operate on struct disklabel. Put bounds_check_with_label() back in subr_disklabel.c where it belongs. Sponsored by: DARPA & NAI Labs.
* fork_trampoline() marks a trap frame.jhb2002-09-201-1/+2
| | | | Submitted by: bde
* Use proper type for a variable used as a DDB symbol.jhb2002-09-201-1/+2
|
* Trim includes.jhb2002-09-201-2/+1
| | | | Submitted by: bde
* Various style fixes, including moving db_print_backtrace() out of thejhb2002-09-201-32/+25
| | | | | | middle of the watchpoint code. Submitted by: bde
* This patch enables FreeBSD i686 MTRR support on Intel Pentiummdodd2002-09-191-1/+1
| | | | | | 4/XEON processors, which are not currently recognized. Submitted by: Christian Zander <zander@minion.de>
* Implement db_print_backtrace() if DDB is compiled into the kernel. Thisjhb2002-09-191-0/+9
| | | | | | | | | | | | | | | | | | | | MD function is just a wrapper around db_stack_trace_cmd() that prints out a backtrace of curthread. Currently, this function is only implemented on i386 and alpha (and the alpha version isn't quite tested yet, will do that in a bit). Other changes: - For i386, fix a bug in the raw frame address case. The eip we extract from the passed in frame address does not match the frame we received. Thus, instead of printing a bogus frame with the wrong eip, go ahead and advance frame down to the same frame as the eip we are using. - For alpha, attempt to add a way of doing a raw trace for alpha. Instead of passing a frame address in 'addr', pass in a pointer to a structure containing PC and KSP and use those to start the backtrace. The alpha db_print_backtrace() uses asm to read in the current PC and KSP values into such a request. Tested on: i386 Requested by: many
* From Christian Zander:mdodd2002-09-191-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | This patch addresses a bug that can cause a GPF in the kernel - if a process makes use of i386_set_ldt to install a LDT entry, then loads a corresponding segment descriptor into %gs, forks, and if the child execs. In this scenario, setregs executes user_ldt_free and then determines how to reset the %gs register: /* reset %gs as well */ if (pcb == curpcb) load_gs(_udatasel); else pcb->pcb_gs = _udatasel; This is insufficient in the fork/exec case, since pcb will be equal to curpcb when the child execs; load_gs will reset %gs to _udatasel but it doesn't reset pcb->pcb_gs; upon return from the system call, cpu_switch_load_gs will thus attempt to restore %gs from pcb->pcb_gs and trigger a GPF since all LDT entries have already been cleared. The fix is to always reset pcb->pcb_gs to _udatasel. Submitted by: Christian Zander <zander@minion.de> Reviewed by: jake
* Repo copied to <sys/smbus/smb.h>peter2002-09-191-64/+0
|
* Repo copied to <sys/iicbus/iic.h>peter2002-09-191-47/+0
|
* move wl (isa wavelan card, not "wi") to i386-onlypeter2002-09-191-1/+6
|
* move "profile 2" to i386peter2002-09-191-0/+4
|
* move ncv, nsp, stg to i386-only section (there is no pc98-specific version)peter2002-09-191-0/+14
|
* Move dgb to the i386 sectionpeter2002-09-191-0/+11
|
* Restore status register A of RTC at resume time.iwasaki2002-09-182-0/+2
| | | | | | | This should fix the 'too many RTC interrupts and statclock seems broken after resume' problem. MFC after: 1 week
* Implement C99's va_copy() macro.mike2002-09-181-0/+3
|
* Add /dev/soekris-errled device to control the Error-LED on Soekris cards/boxes.phk2002-09-171-23/+136
| | | | | | | | | | | | | | | | | | | # turn LED off echo '0' > /dev/soekris-errled # turn LED on echo '1' > /dev/soekris-errled # flash LED (5 hz) echo 'f' > /dev/soekris-errled # flash LED (4/2 = 2 hz), syntax: "f[1-9]" -> .5 -> 4.5 Hz echo 'f4' > /dev/soekris-errled # flash digits 1,3 and 7, syntax: "d[1-9]*" echo 'd137' > /dev/soekris-errled Characters not understood are ignored.
OpenPOWER on IntegriCloud