History log of /src/sys/dev/mvme/lpt_mvme.c |
Revision | | Date | Author | Comments |
1.19 |
| 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.18 |
| 25-Jul-2014 |
dholland | branches: 1.18.26; 1.18.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.17 |
| 16-Mar-2014 |
dholland | branches: 1.17.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.16 |
| 23-Nov-2009 |
rmind | branches: 1.16.12; 1.16.22; 1.16.26; Remove some unecessary includes sys/user.h header.
|
1.15 |
| 14-Mar-2009 |
dsl | Change about 4500 of the K&R function definitions to ANSI ones. There are still about 1600 left, but they have ',' or /* ... */ in the actual variable definitions - which my awk script doesn't handle. There are also many that need () -> (void). (The script does handle misordered arguments.)
|
1.14 |
| 12-Jun-2008 |
cegger | branches: 1.14.4; 1.14.10; use device_lookup_private to get softc
|
1.13 |
| 28-Apr-2008 |
martin | branches: 1.13.2; 1.13.4; Remove clause 3 and 4 from TNF licenses
|
1.12 |
| 07-Mar-2008 |
cube | branches: 1.12.2; 1.12.4; Split the softc from the device_t for all lpt(4) variants and attachments except the ppbus stuff (which doesn't compile) and ulpt(4) which is unrelated and can be dealt with separately.
As usual, it comes with related cosmetic changes.
|
1.11 |
| 19-Oct-2007 |
ad | branches: 1.11.12; 1.11.16; machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
|
1.10 |
| 08-Oct-2007 |
ad | branches: 1.10.2; brelse() stragglers.
|
1.9 |
| 09-Jul-2007 |
ad | branches: 1.9.6; 1.9.8; 1.9.10; Merge some of the less invasive changes from the vmlocking branch:
- kthread, callout, devsw API changes - select()/poll() improvements - miscellaneous MT safety improvements
|
1.8 |
| 04-Mar-2007 |
christos | branches: 1.8.2; 1.8.4; Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
|
1.7 |
| 11-Dec-2005 |
christos | branches: 1.7.26; merge ktrace-lwp.
|
1.6 |
| 27-Feb-2005 |
perry | branches: 1.6.4; nuke trailing whitespace
|
1.5 |
| 04-Feb-2005 |
perry | de-__P
|
1.4 |
| 14-Jul-2003 |
lukem | branches: 1.4.8; 1.4.10; add missing __KERNEL_RCSID()
|
1.3 |
| 23-Oct-2002 |
jdolecek | branches: 1.3.6; merge kqueue branch into -current
kqueue provides a stateful and efficient event notification framework currently supported events include socket, file, directory, fifo, pipe, tty and device changes, and monitoring of processes and signals
kqueue is supported by all writable filesystems in NetBSD tree (with exception of Coda) and all device drivers supporting poll(2)
based on work done by Jonathan Lemon for FreeBSD initial NetBSD port done by Luke Mewburn and Jason Thorpe
|
1.2 |
| 06-Sep-2002 |
gehenna | branches: 1.2.2; Merge the gehenna-devsw branch into the trunk.
This merge changes the device switch tables from static array to dynamically generated by config(8).
- All device switches is defined as a constant structure in device drivers.
- The new grammer ``device-major'' is introduced to ``files''.
device-major <prefix> char <num> [block <num>] [<rules>]
- All device major numbers must be listed up in port dependent majors.<arch> by using this grammer.
- Added the new naming convention. The name of the device switch must be <prefix>_[bc]devsw for auto-generation of device switch tables.
- The backward compatibility of loading block/character device switch by LKM framework is broken. This is necessary to convert from block/character device major to device name in runtime and vice versa.
- The restriction to assign device major by LKM is completely removed. We don't need to reserve LKM entries for dynamic loading of device switch.
- In compile time, device major numbers list is packed into the kernel and the LKM framework will refer it to assign device major number dynamically.
|
1.1 |
| 12-Feb-2002 |
scw | branches: 1.1.2; 1.1.10; Separate out devices common to many Motorola mvme boards (68k, 88k and ppc) in preparation for future mvmeppc and mvme88k ports.
This needs a bit if tidying up to make it trully shareable, which will happen as the new mvme ports are added.
|
1.1.10.1 |
| 16-May-2002 |
gehenna | Add the character device switch.
|
1.1.2.4 |
| 11-Nov-2002 |
nathanw | Catch up to -current
|
1.1.2.3 |
| 17-Sep-2002 |
nathanw | Catch up to -current.
|
1.1.2.2 |
| 28-Feb-2002 |
nathanw | Catch up to -current.
|
1.1.2.1 |
| 12-Feb-2002 |
nathanw | file lpt_mvme.c was added on branch nathanw_sa on 2002-02-28 04:13:54 +0000
|
1.2.2.2 |
| 10-Oct-2002 |
jdolecek | sync kqueue with -current; this includes merge of gehenna-devsw branch, merge of i386 MP branch, and part of autoconf rototil work
|
1.2.2.1 |
| 06-Sep-2002 |
jdolecek | file lpt_mvme.c was added on branch kqueue on 2002-10-10 18:40:14 +0000
|
1.3.6.6 |
| 04-Mar-2005 |
skrll | Sync with HEAD.
Hi Perry!
|
1.3.6.5 |
| 04-Feb-2005 |
skrll | Sync with HEAD.
|
1.3.6.4 |
| 26-Jan-2005 |
skrll | Adapt to branch.
|
1.3.6.3 |
| 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
1.3.6.2 |
| 18-Sep-2004 |
skrll | Sync with HEAD.
|
1.3.6.1 |
| 03-Aug-2004 |
skrll | Sync with HEAD
|
1.4.10.2 |
| 19-Mar-2005 |
yamt | sync with head. xen and whitespace. xen part is not finished.
|
1.4.10.1 |
| 12-Feb-2005 |
yamt | sync with head.
|
1.4.8.1 |
| 29-Apr-2005 |
kent | sync with -current
|
1.6.4.4 |
| 17-Mar-2008 |
yamt | sync with head.
|
1.6.4.3 |
| 27-Oct-2007 |
yamt | sync with head.
|
1.6.4.2 |
| 03-Sep-2007 |
yamt | sync with head.
|
1.6.4.1 |
| 21-Jun-2006 |
yamt | sync with head.
|
1.7.26.1 |
| 12-Mar-2007 |
rmind | Sync with HEAD.
|
1.8.4.1 |
| 11-Jul-2007 |
mjf | Sync with head.
|
1.8.2.2 |
| 23-Oct-2007 |
ad | Sync with head.
|
1.8.2.1 |
| 01-Jul-2007 |
ad | Adapt to callout API change.
|
1.9.10.1 |
| 14-Oct-2007 |
yamt | sync with head.
|
1.9.8.2 |
| 23-Mar-2008 |
matt | sync with HEAD
|
1.9.8.1 |
| 06-Nov-2007 |
matt | sync with HEAD
|
1.9.6.1 |
| 26-Oct-2007 |
joerg | Sync with HEAD.
Follow the merge of pmap.c on i386 and amd64 and move pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup code to restore CR4 before jumping back into kernel space as the large page option might cover that.
|
1.10.2.1 |
| 25-Oct-2007 |
bouyer | Sync with HEAD.
|
1.11.16.3 |
| 29-Jun-2008 |
mjf | Sync with HEAD.
|
1.11.16.2 |
| 02-Jun-2008 |
mjf | Sync with HEAD.
|
1.11.16.1 |
| 03-Apr-2008 |
mjf | Sync with HEAD.
|
1.11.12.1 |
| 24-Mar-2008 |
keiichi | sync with head.
|
1.12.4.3 |
| 11-Mar-2010 |
yamt | sync with head
|
1.12.4.2 |
| 04-May-2009 |
yamt | sync with head.
|
1.12.4.1 |
| 16-May-2008 |
yamt | sync with head.
|
1.12.2.2 |
| 17-Jun-2008 |
yamt | sync with head.
|
1.12.2.1 |
| 18-May-2008 |
yamt | sync with head.
|
1.13.4.1 |
| 18-Jun-2008 |
simonb | Sync with head.
|
1.13.2.1 |
| 23-Jun-2008 |
wrstuden | Sync w/ -current. 34 merge conflicts to follow.
|
1.14.10.1 |
| 13-May-2009 |
jym | Sync with HEAD.
Commit is split, to avoid a "too many arguments" protocol error.
|
1.14.4.1 |
| 28-Apr-2009 |
skrll | Sync with HEAD.
|
1.16.26.1 |
| 18-May-2014 |
rmind | sync with head
|
1.16.22.1 |
| 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.16.12.1 |
| 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.17.2.1 |
| 10-Aug-2014 |
tls | Rebase.
|
1.18.28.1 |
| 10-Jun-2019 |
christos | Sync with HEAD
|
1.18.26.1 |
| 06-Sep-2018 |
pgoyette | Sync with HEAD
Resolve a couple of conflicts (result of the uimin/uimax changes)
|