| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Peter's rev 1.189 should fix the lost console on SCSI-based systems due
to this message.
|
|
|
|
|
|
|
|
| |
testing any modifications to them, they shouldn't even bother with
disklabels in the first place and they are just plain obsolete old
hardware which should be axed entirely before 5.0-R IMO.
Sponsored by: DARPA & NAI Labs.
|
|
|
|
| |
The kernel printf() isn't race-free
|
|
|
|
|
|
|
| |
This is a band-aid until the KSE pthread committers get back on the ground
and have their machines setup.
Submitted by: eischen
|
|
|
|
|
|
|
| |
than doing the checks piecemeal and then doing a second copyin later.
PR: 38021
Submitted by: davidx (I've tweaked the patch a bit)
|
| |
|
|
|
|
|
| |
PR: 38016
Submitted by: davidx
|
| |
|
|
|
|
|
|
| |
static in its prototype, mark it static at the definition too.
Inspired by: FlexeLint warning #512
|
| |
|
|
|
|
| |
64-bit clean.
|
|
|
|
| |
not used anywhere anymore.
|
|
|
|
| |
Submitted by: marius@alchemy.franken.de
|
| |
|
| |
|
|
|
|
| |
see if we have been probed before by checking for a pciX bus device.
|
|
|
|
| |
if (bootverbose).
|
|
|
|
|
|
|
|
|
| |
- 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 off of the legacy driver instead of the nexus.
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
|
|
| |
This is needed for the COMPAT_FREEBSD3 option split.
Reviewed by: alfred, jake
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
case.
|
|
|
|
| |
functions that have one instruction.
|
|
|
|
|
|
|
| |
- Always call load_gs()
- Trim comments.
This addresses some of the issues raised by BDE.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
| |
this needs to go to cpufunc.h?), de-register.
|
|
|
|
| |
in C code.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
is nothing between them anymore.
Spotted by: peter.
|
| |
|
|
|
|
| |
Sponsored by: DARPA & NAI Labs.
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Submitted by: bde
|
| |
|
|
|
|
| |
Submitted by: bde
|
|
|
|
|
|
| |
middle of the watchpoint code.
Submitted by: bde
|
|
|
|
|
|
| |
4/XEON processors, which are not currently recognized.
Submitted by: Christian Zander <zander@minion.de>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|