| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
| |
tries to mmap memory outside of the available BARs, so allow the
range checks to be relaxed with a sysctl.
|
|
|
|
| |
to be master-only. The slave ATAPI drive on the Mac-Mini is now recognised.
|
|
|
|
|
|
| |
- enable MSDOSFS
- ehci is stable on the powerbook
- modules have been working for a long time.
|
| |
|
|
|
|
|
|
|
| |
in other codes. Add cpu_set_user_tls, use it to tweak user register
and setup user TLS. I ever wanted to merge it into cpu_set_kse_upcall,
but since cpu_set_kse_upcall is also used by M:N threads which may
not need this feature, so I wrote a separated cpu_set_user_tls.
|
|
|
|
|
|
| |
debug.debugger_on_panic=0.
MFC after: 2 weeks
|
|
|
|
| |
get hwpmc(4) to compile on this platform.
|
|
|
|
|
| |
now recognised when booting from the drive, as opposed to net-booting which
the previous botched commit was tested with.
|
|
|
|
|
|
|
|
|
|
| |
into _bus.h to help with name space polution from including all of bus.h.
In a few days, I'll commit changes to the MI code to take advantage of thse
sepration (after I've made sure that these changes don't break anything in
the main tree, I've tested in my trees, but you never know...).
Suggested by: bde (in 2002 or 2003 I think)
Reviewed in principle by: jhb
|
|
|
|
| |
functions for read vs. write.
|
|
|
|
| |
operations in some places and simple non-per CPU math in others.
|
|
|
|
| |
Approved by: grehan (mentor)
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
critical_enter() and critical_exit() are now solely a mechanism for
deferring kernel preemptions. They no longer have any affect on
interrupts. This means that standalone critical sections are now very
cheap as they are simply unlocked integer increments and decrements for the
common case.
Spin mutexes now use a separate KPI implemented in MD code: spinlock_enter()
and spinlock_exit(). This KPI is responsible for providing whatever MD
guarantees are needed to ensure that a thread holding a spin lock won't
be preempted by any other code that will try to lock the same lock. For
now all archs continue to block interrupts in a "spinlock section" as they
did formerly in all critical sections. Note that I've also taken this
opportunity to push a few things into MD code rather than MI. For example,
critical_fork_exit() no longer exists. Instead, MD code ensures that new
threads have the correct state when they are created. Also, we no longer
try to fixup the idlethreads for APs in MI code. Instead, each arch sets
the initial curthread and adjusts the state of the idle thread it borrows
in order to perform the initial context switch.
This change is largely a big NOP, but the cleaner separation it provides
will allow for more efficient alternative locking schemes in other parts
of the kernel (bare critical sections rather than per-CPU spin mutexes
for per-CPU data for example).
Reviewed by: grehan, cognet, arch@, others
Tested on: i386, alpha, sparc64, powerpc, arm, possibly more
|
|
|
|
| |
Thanks to sos for the code re-org that allowed this.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
FreeBSD based on aue(4) it was picked by OpenBSD, then from OpenBSD ported
to NetBSD and finally NetBSD version merged with original one goes into
FreeBSD.
Obtained from: http://www.gank.org/freebsd/cdce/
NetBSD
OpenBSD
|
|
|
|
|
|
|
| |
framebuffer memory. Speeds up system time of large ascii file cat
by 4x.
Inspired by: Linux scrolling so damned fast.
|
|
|
|
|
|
|
|
|
| |
This is mentioned in the Handbook but it is not as obvious to new
users why bpf is needed compared to the other largely self-explanatory
items in GENERIC.
PR: conf/40855
MFC after: 1 week
|
|
|
|
| |
Obtained from: iedowse, sparc64
|
|
|
|
| |
recent busdma changes.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
sys/bus_dma.h instead of being copied in every single arch. This slightly
reorders a flag that was specific to AXP and thus changes the ABI there.
The interface still relies on bus_space definitions found in <machine/bus.h>
so it cannot be included on its own yet, but that will be fixed at a later
date. Add an MD <machine/bus_dma.h> for ever arch for consistency and to
allow for future MD augmentation of the API. sparc64 makes heavy use of
this right now due to its different bus_dma implemenation.
|
|
|
|
|
|
| |
getenv_ulong() - much simpler.
Pointed out by: des
|
|
|
|
|
|
| |
since there are often significant holes in the memory map due to the
kernel, loader and OFW data structures not being included: Maxmem is
the highest available, so can be misleading.
|
|
|
|
| |
Obtained from: i386/machdep.c:getmemsize()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
place.
This moves the dependency on GCC's and other compiler's features into
the central sys/cdefs.h file, while the individual source files can
then refer to #ifdef __COMPILER_FEATURE_FOO where they by now used to
refer to #if __GNUC__ > 3.1415 && __BARC__ <= 42.
By now, GCC and ICC (the Intel compiler) have been actively tested on
IA32 platforms by netchild. Extension to other compilers is supposed
to be possible, of course.
Submitted by: netchild
Reviewed by: various developers on arch@, some time ago
|
|
|
|
| |
(MFi386: rev 1.608)
|
|
|
|
| |
causing a hard hang.
|
|
|
|
|
|
| |
cache-align this struct, but that's a topic for a far-in-the-future
commit.
- eliminate commented-out reference to a non-existent pcpu field.
|
|
|
|
|
| |
Noticed by: gad
Code stolen from: sparc64
|
|
|
|
|
|
|
| |
avoid trying to reverse-map a device physical address to the
vm_page array and walking into non-existent vm weeds.
found by: Xorg server exiting
|
|
|
|
|
|
|
|
| |
- store assigned PCI addresses at cninit time for later mmap range
check
- implement set_border to scrub X remnants when switching back to VTYs
- implement mmap, only allowing addresses within the range of the
console adapter.
|
|
|
|
| |
protection to alpha/include/exec.h.
|
|
|
|
|
|
| |
malloc.h before proc.h on sparc64. Noticed by das@
Compiled on: alpha, amd64, i386, pc98, sparc64
|
| |
|
|
|
|
| |
current clock frequency for the given CPU id in units of Hz.
|
|
|
|
|
|
|
| |
- enable 745x branch caches. Already enabled by OpenFirmware
on Macs, but reduces NetBSD diffs and usable by embedded folk.
Obtained from: NetBSD
|
|
|
|
|
| |
- support adjkerntz sysctl to silence NTP, though it's a null
implementation at the moment.
|
|
|
|
| |
empty macro to avoid many compile warnings in the USB code.
|
|
|
|
|
|
| |
- expand MPC745X_P macro to include these
Obtained from: NetBSD
|
|
|
|
|
|
| |
- updated relevant models for High BAT enable bit
- fixed bug in BHTCLR/XAEN constants
- added LRSTK and FOLD bits
|
|
|
|
| |
- cast param for atomic_subtract_long, since Netgraph uses it.
|
|
|
|
| |
a process that has mmap'd device mem exits.
|
| |
|
|
|
|
|
|
|
|
| |
the last action of kern_exit(). Instead, it is a MD callout to cleanup
per-process state during exit.
- Add notes of concern to Alpha and ia64 about the possible need to drop
fp state in cpu_thread_exit() rather than in cpu_exit() since it is
per-thread state rather than per-process.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
e.g. at the loader:
set hint.pcib.1.skipslot=26
This allows undocumented and problematic hardware on some systems
to be ignored, for instance, the USB keyboard/mouse that shows up
on a 12" albook that doesn't exist nor do anything other than eat up
the syscons keyboard. Another one is the unused USB cell in the old
366MHz iBook that locks up the machine when probed.
In a way this is temporary, since there are better fixes for the
above problems, but will be useful in the meantime by allowing
a keyboard to be used to help debug said fixes :)
- while here remove some trailing white space
|
| |
|
| |
|