| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
handling clean and functional as 5.x evolves. This allows some of the
nasty bandaids in the 5.x codepaths to be unwound.
Encapsulate 4.x signal handling under COMPAT_FREEBSD4 (there is an
anti-foot-shooting measure in place, 5.x folks need this for a while) and
finish encapsulating the older stuff under COMPAT_43. Since the ancient
stuff is required on alpha (longjmp(3) passes a 'struct osigcontext *'
to the current sigreturn(2), instead of the 'ucontext_t *' that sigreturn
is supposed to take), add a compile time check to prevent foot shooting
there too. Add uniform COMPAT_43 stubs for ia64/sparc64/powerpc.
Tested on: i386, alpha, ia64. Compiled on sparc64 (a few days ago).
Approved by: re
|
|
|
|
|
|
|
| |
revision of tick.c, this was done at SI_SUB_CLOCKS, which is too late
because tick_MHz is required for DELAY() to work.
Reviewed by: jake
|
|
|
|
|
|
|
|
| |
streaming cache. This bug could have the potential to cause data
corruption on systems with Psycho U2P bridges (Sabre bridges have no
streaming cache).
However, due to the usual driver architecture, it is believed that
corruption did occur only in rare cases (if at all).
|
|
|
|
|
|
| |
trap types and signals to send. Rearrange KASSERTs to better handle faults
early before curthread is setup, or in the case that it gets corrupted or
set to 0.
|
|
|
|
|
| |
- use fields in sysent instead of PS_STRINGS
- set TSTATE_PRIV in frame0.tf_tstate for what its worth
|
|
|
|
|
|
|
|
| |
so that there is ony one copy of it. Fix that one copy
so that KSEs with no mailbox in a KSE program are not a cause
of page faults (this can legitmatly happen).
Submitted by: (parts) davidxu
|
|
|
|
| |
Approved by: jake
|
|
|
|
| |
Reminded by: jhb
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
same size. Add some fields that previously overlapped with something else
or were missing.
- Make struct regs and struct mcontext (minus floating point) the same as
struct trapframe so converting between them is easy (null).
- Add space for saving floating point state to struct mcontext. This requires
that it be 64 byte aligned.
- Add assertions that none of these structures change size, as they are part
of the ABI.
- Remove some dead code in sendsig().
- Save and restore %gsr in struct trapframe. Remember to restore %fsr.
- Add some comments to exception.S.
|
| |
|
|
|
|
|
|
| |
sysctl works. This stuff should probably be made MI.
Reviewed by: jake
|
|
|
|
| |
avoid hiccups in case of system time adjustment.
|
|
|
|
|
|
|
|
|
|
| |
as sparc64/sparc64/dump_machdep.c a while back).
Other than ia64 (which uses ELF), sparc64 uses a homegrown format for
the dumps (headers are required because the physical address and size of
the tsb must be noted, and because physical memory may be discontiguous);
ELF would not offer any advantages here.
Reviewed by: jake
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
The primary reason for this is to allow MD code to process machine
specific attributes, segments or sections in the ELF file and
update machine specific state accordingly. An immediate use of this
is in the ia64 port where unwind information is updated to allow
debugging and tracing in/across modules. Note that this commit
does not add the functionality to the ia64 port. See revision 1.9
of ia64/ia64/elf_machdep.c.
Validated on: alpha, i386, ia64
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
ACL configuration changes, this shouldn't result in different code paths
for file systems not explicitly configured for ACLs by the system
administrator. For UFS1, administrators must still recompile their
kernel to add support for extended attributes; for UFS2, it's sufficient
to enable ACLs using tunefs or at mount-time (tunefs preferred for
reliability reasons). UFS2, for a variety of reasons, including
performance and reliability, is the preferred file system for use with
ACLs.
Approved by: re
|
|
|
|
|
| |
are positioned and aligned by md code, dumppcb is just a static
variable and requires this.
|
|
|
|
|
|
|
|
| |
bits that might be set in the firmware tte data field, and set the soft
flag TD_EXEC to mark the page executable. Failing to do the latter would
cause fatal instruction faults in the prom in certain situations.
Reviewed by: jake
|
|
|
|
|
|
|
|
|
|
| |
recognized compat properties. This should make the psycho driver attach
properly on SPARCengine Ultra AX machines.
Switch to a table-driven logic to recognize the ID's, since their number
is now large enough to justify this.
These changes are analogous to those made in NetBSD r.1.35, but
implemented a bit differently.
|
|
|
|
|
|
| |
sized array.
While being there, deuglify the psycho pair detection loop which became
quite awkward in a previous code reorganization.
|
|
|
|
| |
hasn't been filled in for ages.. Nuked.
|
| |
|
|
|
|
| |
Pointy hat to: mike
|
|
|
|
| |
struct __sigset to avoid depending on objects from <sys/signal.h>.
|
| |
|
| |
|
|
|
|
|
| |
o Standardize on _MACHINE_STDARG_H_ to allow multiple header includes.
o Restrict the definition of va_copy() to C99 environments.
|
|
|
|
|
|
|
|
| |
archs have them there, alghough the variable are declared in
subr_clock.c. These should probably be moved into some MI
place.
Approved by: jake
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
NB: But it will enable it in all kernels not having options "NO_GEOM"
Put the GEOM related options into the intended order.
Add "options NO_GEOM" to all kernel configs apart from NOTES.
In some order of controlled fashion, the NO_GEOM options will be
removed, architecture by architecture in the coming days.
There are currently three known issues which may force people to
need the NO_GEOM option:
boot0cfg/fdisk:
Tries to update the MBR while it is being used to control
slices. GEOM does not allow this as a direct operation.
SCSI floppy drives:
Appearantly the scsi-da driver return "EBUSY" if no media
is inserted. This is wrong, it should return ENXIO.
PC98:
It is unclear if GEOM correctly recognizes all variants of
PC98 disklabels. (Help Wanted! I have neither docs nor HW)
These issues are all being worked.
Sponsored by: DARPA & NAI Labs.
|
|
|
|
| |
<sys/cdefs.h>.
|
| |
|
|
|
|
|
|
|
|
| |
o bus_dmamap_load_mbuf
o bus_dmamap_load_uio
Test on i386. Known to compile on alpha and sparc64, but not tested.
Otherwise untried.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
doesn't give them enough stack to do much before blowing away the pcb.
This adds MI and MD code to allow the allocation of an alternate kstack
who's size can be speficied when calling kthread_create. Passing the
value 0 prevents the alternate kstack from being created. Note that the
ia64 MD code is missing for now, and PowerPC was only partially written
due to the pmap.c being incomplete there.
Though this patch does not modify anything to make use of the alternate
kstack, acpi and usb are good candidates.
Reviewed by: jake, peter, jhb
|
|
|
|
| |
or work properly. MAC modules work at least :).
|
|
|
|
|
|
|
| |
problems with drivers that expect functions rather than function like
macros.
Reviewed by: tmm
|
|
|
|
|
| |
comment it out or change to explicit panics. It conflicts with things
like #if TODO in drivers.
|
| |
|
|
|
|
|
|
|
|
| |
functions may be called from a device strategy routine when sleeping is
bad.
Submitted by: phk
Reviewed by: tmm
|
|
|
|
| |
better reflect how they are called.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
sparc v9 ABI. The Elf_Rela records for local symbols appear to already
have the symbol's value added in to the addend field, even though the ABI
specifies we need to lookup the symbol and add its value too. This breaks
text relocations in klds because the symbol's value is added twice, and
the resulting address points off into nowhere land, so for now just use
the addend.
Tested by: rwatson
|
| |
|
| |
|
|
|
|
| |
that instruction emulation is possible in kernel mode.
|
|
|
|
| |
frame in the save instruction, rather than doing a separate sub.
|
|
|
|
| |
never result in user traps don't have to plow through it.
|
|
|
|
| |
case.
|
|
|
|
|
| |
return to usermode, rather than branching back to a label before the
original call.
|
|
|
|
| |
Noticed by: benno
|