Home | History | Annotate | Download | only in vr
History log of /src/sys/arch/hpcmips/vr/flash_vrip.c
RevisionDateAuthorComments
 1.15  12-Sep-2023  andvar rename flash_cd to vrflash_cd, since device was renamed to vrflash.

Fixes hpcmips LCARD config linking issue that flash_cd is undefined.
 1.14  11-Sep-2023  andvar hpcmips/vrflash(4): custom DPRINTF definition requires additional brackets
around the arguments.

Fixes FLUSH_DEBUG build.

However the driver fails to link due to missing reference to flash_cd,
my guess because of obsoleted flash device-major.
 1.13  21-Nov-2020  thorpej malloc(9) -> kmem(9)
 1.12  10-Nov-2019  chs branches: 1.12.8;
in many device attach paths, allocate memory with M_WAITOK instead of M_NOWAIT
and remove code to handle failures that can no longer happen.
 1.11  03-Sep-2018  riastradh Rename min/max -> uimin/uimax for better honesty.

These functions are defined on unsigned int. The generic name
min/max should not silently truncate to 32 bits on 64-bit systems.
This is purely a name change -- no functional change intended.

HOWEVER! Some subsystems have

#define min(a, b) ((a) < (b) ? (a) : (b))
#define max(a, b) ((a) > (b) ? (a) : (b))

even though our standard name for that is MIN/MAX. Although these
may invite multiple evaluation bugs, these do _not_ cause integer
truncation.

To avoid `fixing' these cases, I first changed the name in libkern,
and then compile-tested every file where min/max occurred in order to
confirm that it failed -- and thus confirm that nothing shadowed
min/max -- before changing it.

I have left a handful of bootloaders that are too annoying to
compile-test, and some dead code:

cobalt ews4800mips hp300 hppa ia64 luna68k vax
acorn32/if_ie.c (not included in any kernels)
macppc/if_gm.c (superseded by gem(4))

It should be easy to fix the fallout once identified -- this way of
doing things fails safe, and the goal here, after all, is to _avoid_
silent integer truncations, not introduce them.

Maybe one day we can reintroduce min/max as type-generic things that
never silently truncate. But we should avoid doing that for a while,
so that existing code has a chance to be detected by the compiler for
conversion to uimin/uimax without changing the semantics until we can
properly audit it all. (Who knows, maybe in some cases integer
truncation is actually intended!)
 1.10  25-Jul-2014  dholland branches: 1.10.26; 1.10.28;
Add d_discard to all struct cdevsw instances I could find.

All have been set to "nodiscard"; some should get a real implementation.
 1.9  16-Mar-2014  dholland branches: 1.9.2;
Change (mostly mechanically) every cdevsw/bdevsw I can find to use
designated initializers.

I have not built every extant kernel so I have probably broken at
least one build; however I've also found and fixed some wrong
cdevsw/bdevsw entries so even if so I think we come out ahead.
 1.8  27-Oct-2012  chs branches: 1.8.2;
split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.7  11-Jun-2008  cegger branches: 1.7.30; 1.7.40;
use device_lookup_private to get softc
 1.6  28-Apr-2008  martin branches: 1.6.2; 1.6.4;
Remove clause 3 and 4 from TNF licenses
 1.5  11-Dec-2005  christos branches: 1.5.74; 1.5.76; 1.5.78;
merge ktrace-lwp.
 1.4  29-Dec-2003  igy branches: 1.4.16;
throw error status when erase command timed out
 1.3  29-Dec-2003  igy make sure variables initialized
 1.2  15-Jul-2003  lukem __KERNEL_RCSID()
 1.1  01-May-2003  igy branches: 1.1.2;
Support for Laser5's L-Card+ Embedded CPU Board
 1.1.2.4  24-Jan-2005  skrll Adapt to branch.
 1.1.2.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.1.2.2  18-Sep-2004  skrll Sync with HEAD.
 1.1.2.1  03-Aug-2004  skrll Sync with HEAD
 1.4.16.1  21-Jun-2006  yamt sync with head.
 1.5.78.2  04-May-2009  yamt sync with head.
 1.5.78.1  16-May-2008  yamt sync with head.
 1.5.76.2  17-Jun-2008  yamt sync with head.
 1.5.76.1  18-May-2008  yamt sync with head.
 1.5.74.2  29-Jun-2008  mjf Sync with HEAD.
 1.5.74.1  02-Jun-2008  mjf Sync with HEAD.
 1.6.4.1  18-Jun-2008  simonb Sync with head.
 1.6.2.1  23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.7.40.2  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.7.40.1  20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.7.30.2  22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.7.30.1  30-Oct-2012  yamt sync with head
 1.8.2.1  18-May-2014  rmind sync with head
 1.9.2.1  10-Aug-2014  tls Rebase.
 1.10.28.2  13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.10.28.1  10-Jun-2019  christos Sync with HEAD
 1.10.26.1  06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
 1.12.8.1  14-Dec-2020  thorpej Sync w/ HEAD.

RSS XML Feed