History log of /openbsd/sys/arch/i386/i386/mem.c (Results 1 – 25 of 56)
Revision Date Author Comments
# 5b133f3f 08-Mar-2023 guenther <guenther@openbsd.org>

Delete obsolete /* ARGSUSED */ lint comments.

ok miod@ millert@


# f4e70637 30-Jan-2023 jsg <jsg@openbsd.org>

remove unneeded includes in arch/i386
ok krw@ miod@


# 3e676399 19-Feb-2018 mpi <mpi@openbsd.org>

Remove almost unused `flags' argument of suser().

The account flag `ASU' will no longer be set but that makes suser()
mpsafe since it no longer mess with a per-process field.

No objection from mill

Remove almost unused `flags' argument of suser().

The account flag `ASU' will no longer be set but that makes suser()
mpsafe since it no longer mess with a per-process field.

No objection from millert@, ok tedu@, bluhm@

show more ...


# c2a35b38 14-Dec-2017 guenther <guenther@openbsd.org>

fcntl(F_SETFL) invokes the FIONBIO and FIOASYNC ioctls internally, so
the memory devices (/dev/null, /dev/zero, etc) need to permit them.

problem noted, tweak, and testing by jeremy@
ok deraadt@


# 6f84e71d 20-Apr-2017 visa <visa@openbsd.org>

Tweak lock inits to make the system runnable with witness(4)
on amd64 and i386.


# 19aedf23 25-Sep-2016 deraadt <deraadt@openbsd.org>

Make a move towards ending 4 decades of kernel snooping.

Add sysctl kern.allowkmem (default 0) which controls the ability to open
/dev/mem or /dev/kmem at securelevel > 0. Over 15 years we converte

Make a move towards ending 4 decades of kernel snooping.

Add sysctl kern.allowkmem (default 0) which controls the ability to open
/dev/mem or /dev/kmem at securelevel > 0. Over 15 years we converted 99%
of utilities in the tree to operate on sysctl-nodes (either by themselves
or via code hiding in the guts of -lkvm).

pstat -d and -v & procmap are affected and continued use of them will
require kern.allowkmem=1 in /etc/sysctl.conf. acpidump (and it's
buddy sendbug) are affected, but we'll work out a solution soon.

There will be some impact in ports.

ok kettenis guenther

show more ...


# 5674f55d 16-Aug-2016 tedu <tedu@openbsd.org>

move static variable up to first


# 7fe9dc3e 15-Aug-2016 tedu <tedu@openbsd.org>

normalize some comments


# fe1c35d7 28-Jul-2016 tedu <tedu@openbsd.org>

replace hand rolled physlock with real rwlock. ok mlarkin


# 864cf24e 08-Sep-2015 deraadt <deraadt@openbsd.org>

sizes for free(); ok semarie


# c0c742ff 08-Sep-2015 semarie <semarie@openbsd.org>

convert several malloc(9) to mallocarray(9).

ok deraadt@ guenther@ "re-wrap the long lines" kettenis@


# e1ad8ac7 22-Jun-2015 kettenis <kettenis@openbsd.org>

Make it possible to create write combing mappings through /dev/mem. This is
done by introducining a magic offset. Pages below this offset are mapped
with default memory attributes. Above this offs

Make it possible to create write combing mappings through /dev/mem. This is
done by introducining a magic offset. Pages below this offset are mapped
with default memory attributes. Above this offset pages are mapped write
combining.

ok mlarkin@

show more ...


# 95272bea 28-May-2015 jcs <jcs@openbsd.org>

when machdep.allowaperture sysctl is set to 3, allow concurrent access


# 9c829367 10-Feb-2015 miod <miod@openbsd.org>

Convert to uiomove().
ok guenther@


# 081bf720 10-Feb-2015 miod <miod@openbsd.org>

First step towards making uiomove() take a size_t size argument:
- rename uiomove() to uiomovei() and update all its users.
- introduce uiomove(), which is similar to uiomovei() but with a size_t.
-

First step towards making uiomove() take a size_t size argument:
- rename uiomove() to uiomovei() and update all its users.
- introduce uiomove(), which is similar to uiomovei() but with a size_t.
- rewrite uiomovei() as an uiomove() wrapper.
ok kettenis@

show more ...


# 1e8cdc2e 16-Nov-2014 deraadt <deraadt@openbsd.org>

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

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

show more ...


# 7f58a11f 14-Sep-2014 jsg <jsg@openbsd.org>

remove uneeded proc.h includes
ok mpi@ kspillner@


# f8e6c425 12-Jul-2014 tedu <tedu@openbsd.org>

add a size argument to free. will be used soon, but for now default to 0.
after discussions with beck deraadt kettenis.


# 9a2348d8 19-Dec-2013 deraadt <deraadt@openbsd.org>

Mtrr stops being a pseudo-device. We need to probe the cpu type and
initialize the structures when we see the first cpu. We also need to
initialize each cpu's properly (for PAT) before we setup mtr

Mtrr stops being a pseudo-device. We need to probe the cpu type and
initialize the structures when we see the first cpu. We also need to
initialize each cpu's properly (for PAT) before we setup mtrr on that
cpu. On i386 (late hatch) we were getting this desperately wrong on
the primary cpu.

After suspend/resume, we also need to do the same work. re-initialize
PAT before mtrr. On some laptops apparently PAT was not turned on by the
BIOS, so we ended up with incorrect setup for the primary cpu. Oops.

This makes mplayer on the x201 (and similar) machines work without weird
pauses after a suspend/resume. Many other things are likely fixed.
ok kettenis

show more ...


# 97c974cd 26-Dec-2010 miod <miod@openbsd.org>

Kill pmap_phys_address(), and force every driver's mmap() routine to return
a physical address [more precisely, something suitable to pass to pmap_enter()'sphysical address argument].

This allows MI

Kill pmap_phys_address(), and force every driver's mmap() routine to return
a physical address [more precisely, something suitable to pass to pmap_enter()'sphysical address argument].

This allows MI drivers to implement mmap() routines without having to know
about the pmap_phys_address() implementation and #ifdef obfuscation.

show more ...


# ab8fb65a 13-Jan-2009 grange <grange@openbsd.org>

Trivial lvalue abuse fixes, no binary changes.
ok millert@ tedu@


# 689e66ba 05-Nov-2008 matthieu <matthieu@openbsd.org>

since mmclose() is only called once for the final close,
set ap_open_count = 0 in mmclose() instread of decrementing it.
ok miod@, oga@.


# 28a8f404 07-Sep-2007 art <art@openbsd.org>

Use M_ZERO in a few more places to shave bytes from the kernel.

eyeballed and ok dlg@


# 6811be10 01-Sep-2007 martin <martin@openbsd.org>

replace the machine dependant bytes-to-clicks macro by the MI ptoa()
version for i386

more architectures and ctob() replacement is being worked on

prodded by and ok miod


# 3957c1c0 29-Dec-2006 pedro <pedro@openbsd.org>

Avoid void * arithmetic, okay deraadt@, suggestions from millert@


123