| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
of this file are only doing cpp #define
|
| |
|
|
|
|
|
|
|
| |
Tested by cwen@ and myself. Thanks to pirofti@ for creating the
userland timecounter feature.
ok kettenis@ pirofti@ deraadt@ cheloha@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This diff exposes parts of clock_gettime(2) and gettimeofday(2) to
userland via libc eliberating processes from the need for a context
switch everytime they want to count the passage of time.
If a timecounter clock can be exposed to userland than it needs to set
its tc_user member to a non-zero value. Tested with one or multiple
counters per architecture.
The timing data is shared through a pointer found in the new ELF
auxiliary vector AUX_openbsd_timekeep containing timehands information
that is frequently updated by the kernel.
Timing differences between the last kernel update and the current time
are adjusted in userland by the tc_get_timecount() function inside the
MD usertc.c file.
This permits a much more responsive environment, quite visible in
browsers, office programs and gaming (apparently one is are able to fly
in Minecraft now).
Tested by robert@, sthen@, naddy@, kmos@, phessler@, and many others!
OK from at least kettenis@, cheloha@, naddy@, sthen@
|
|
|
|
|
|
|
|
| |
functionality is provided by <sys/stdarg.h> using compiler builtins.
Tested in a ports bulk build on amd64 by naddy@
OK naddy@ mpi@
|
|
|
|
|
|
| |
Nothing uses the header anymore.
OK deraadt@ mpi@
|
|
|
|
|
|
|
| |
In May 29 2008, Matthew R. Green removed it in NetBSD:
github.com/IIJ-NetBSD/netbsd-src/commit/7ea20401d535da9996394136ef
ok deraadt@
|
| |
|
|
|
|
| |
no words or punctation were modified.
|
|
|
|
|
|
|
|
|
| |
this is so drivers can advertise that they can handle 64 dma addresses
to the platform. it may choose to handle dmamaps differently based
on this flag.
tweaks and ok tom@
ok kettenis@
|
|
|
|
|
|
|
|
|
|
| |
actually use this in em(4) and xhci(4), but I'm not committing those yet
because we almost certainly need to save and restore the MSI-X registers
during suspend/resume. However, this allows mpi@ to play with multiple-vector
support in networking hardware.
Requested by mpi@
ok mlarkin@, mikeb@
|
|
|
|
|
|
|
| |
with feedback from kettenis@
fixes building a kernel with xge, which might actually work on these
machines now.
|
| |
|
|
|
|
|
| |
a.out world.
ok deraadt@ kettenis@
|
| |
|
|
|
|
|
| |
LABELOFFSET and MAXPARTITIONS. Easier on the eye when scanning
through all these files. No functional change.
|
|
|
|
| |
kernels and we no longer have any.
|
|
|
|
| |
ok mpi@
|
| |
|
|
|
|
|
|
|
|
|
| |
processors that support it.
Due to the way trap code is patched it is currently not possible to
enabled/disable BAT at runtime.
ok miod@, kettenis@
|
|
|
|
| |
not necessary, but consistent with other platforms. ok deraadt
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Theo approves, ok mpi@
|
|
|
|
| |
ok mpi@ deraadt@
|
|
|
|
| |
ok miod@
|
| |
|
|
|
|
|
|
| |
instead a single function ppc_mem_regions() required by the ppc pmap.
ok kettenis@
|
|
|
|
| |
ok dlg@ mpi@ deraadt@
|
|
|
|
|
|
| |
<machine/pmap.h> where it belongs, and compensate in <uvm/uvm_extern.h>
by including <uvm/uvm_pmap.h> before <uvm/uvm_page.h>. Tested on all
MACHINE_ARCH but amd64 and i386 (and hppa64).
|
|
|
|
|
| |
grovellers need to know it to be able to get the right size for struct
vm_page.
|
| |
|
|
|
|
| |
ok kettenis@
|
| |
|
|
|
|
|
|
|
| |
device-tree to restore the behaviour present before my last change.
This fixes a regression seen on some Powerbooks where one of the two
kiic(4) would always timeout when trying to configure the audio chip.
|
|
|
|
|
|
|
|
|
|
|
|
| |
calling initclocks(). This prevents hardclock() from trying to
schedule a softclock interrupt before its cookie has been allocated,
leading to a panic.
While here grab the ticks/second value from the OpenFirmware at the
same time we read the clock frequency, no need to look twice for the
same node.
Looks ok to kettenis@
|
|
|
|
|
|
| |
powerpc -> macppc area.
ok kettenis@
|
|
|
|
|
|
|
|
| |
enumerate the pci devices. This allow us to not store the interrupt
vector in the interrupt line register and to not try to attach pci
devices disabled by firmware.
With inputs from and ok kettenis@
|
|
|
|
| |
ok guenther@
|
|
|
|
|
|
|
|
|
|
| |
Most of the hard work by mpi@, who provided the initial diff.
Fixes for sparc from myself. Tested on sgi and sparc myself.
Compiles and detects zstty on my powerbook, compile tested on
sparc64 by me. Real testing with zs device on sparc64 by miod@
who also gave a lot of help and feedback.
ok miod@, mpi@
|
|
|
|
|
|
|
| |
to keep definitions our of user space. The MD files now follow a consistant
order -- all namespace intrusion is at the tail can be cleaned up
independently. locore, bootblocks, and libkvm still see enough visibility to
build. Checked on 90% of platforms...
|
|
|
|
| |
ok mpi@, deraadt@, miod@, millert@
|
|
|
|
| |
changing the frequency to a quarter mode is only supported by 970MP.
|
|
|
|
| |
ok kettenis@
|
|
|
|
|
|
|
| |
implementation. For the moment only the BUS_DMA_NOCACHE macro is required
to build drm on macppc but it will be used soon.
ok kettenis@
|
| |
|
|
|
|
|
|
|
|
|
| |
MI float.h which pulls in and defines the values that are needed from
there, and repair sys/limits.h so that it defines the values it needs
as well (depending on POSIX version, XPG version, etc). guenther has
a more exact selection of that coming for limits.h.
this also fixes a few mistakes for the vax.
reviewed by kettenis and guenther.
|
| |
|