1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-09 22:38:01 -08:00
Commit Graph

19 Commits

Author SHA1 Message Date
jsg
3b9d585e0c correct indentation
no functional change, found by smatch warnings
ok miod@ bluhm@
2024-04-13 23:44:11 +00:00
mpi
78d5ff0ec9 Constify struct cfattach.
ok miod@
2022-03-13 08:04:38 +00:00
deraadt
1e8cdc2e59 Replace a plethora of historical protection options with just
PROT_NONE, PROT_READ, PROT_WRITE, and PROT_EXEC from mman.h.
PROT_MASK is introduced as the one true way of extracting those bits.
Remove UVM_ADV_* wrapper, using the standard names.
ok doug guenther kettenis
2014-11-16 12:30:52 +00:00
kettenis
0c84594fbb Another uvm_km_valloc(9) -> km_alloc(9) conversion. 2014-10-25 10:19:20 +00:00
tedu
f8e6c4256e add a size argument to free. will be used soon, but for now default to 0.
after discussions with beck deraadt kettenis.
2014-07-12 18:44:40 +00:00
kettenis
c3719753b8 Use extent_alloc_with_descr(9) and add a mutex to protect the extent.
This should make bus_dmamap_load(9) and bus_dmamap_unload(9) "mpsafe".
2014-02-08 20:41:48 +00:00
miod
88ee6abd86 Do not use NULL in integer comparisons. No functional change.
ok matthew@ tedu@, also eyeballed by at least krw@ oga@ kettenis@ jsg@
2011-04-07 15:30:13 +00:00
krw
859d5ed4e9 No "\n" needed at the end of panic() strings.
Bogus chunks pointed out by matthew@ and miod@. No cookies for
marco@ and jasper@.

ok deraadt@ miod@ matthew@ jasper@ macro@
2010-08-07 03:50:01 +00:00
deraadt
dd6e448899 Add missing prototypes
ok jsing kettenis
2010-05-24 15:04:53 +00:00
jsing
c726023889 Currently pdc_scanbus() scans in reverse, which results in physical CPU0
attaching as cpu1 and physical CPU1 attaching as cpu0. Split the device
scan into two parts - the first pass scans forward and attaches memory
and CPUs, whilst the second pass scans in reverse attaching the
remaining devices, thus preserving current semantics.

Found the hard way whilst trying to spin up the secondary CPU on my j6750.

ok miod@ kettenis@
2010-04-29 13:48:29 +00:00
oga
26340d65a4 Convert the waitok field of uvm_pglistalloc to "flags", more will be added soon.
For the possibility of sleeping, the first two flags are UVM_PLA_WAITOK
and UVM_PLA_NOWAIT. It is an error not to show intention, so assert that
one of the two is provided. Switch over every caller in the tree to
using the appropriate flag.

ok art@, ariane@
2009-04-14 16:01:04 +00:00
krw
184c547848 Simpliest memset(,0,) -> M_ZERO changes. One (caddr *) cast removal,
otherwise just adding M_ZERO to malloc() and removing the immediately
adjacent memset(,0,).
2007-10-06 23:50:54 +00:00
kettenis
3f96c3e5ca Reset PDC devices before enabling iova space if we're not on a serial console.
Makes glass console on four-digit B/C/J-class systems work.
2007-07-01 12:53:52 +00:00
kettenis
e485b2a22f Add a few more registers. 2007-07-01 11:13:41 +00:00
kettenis
7177b0d769 astro(4)'s iommu does cache-coherent DMA. 2007-06-16 19:57:51 +00:00
kettenis
9dd070b22f Add a few more registers. 2007-06-16 18:13:23 +00:00
miod
6d89506ca2 tyops 2007-05-26 15:28:18 +00:00
kettenis
e2b35a087e Make iommu_dvmamap_unload cleanup properly. 2007-05-21 21:43:50 +00:00
kettenis
ef2b398ad6 Initial stab at a driver for the Astro chip. Mostly IOMMU code to handle
coherent DMA.
2007-05-21 19:33:09 +00:00