The NetBSD Project

CVS log for src/sys/arch/ofppc/ofppc/disksubr.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / arch / ofppc / ofppc

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.31 / (download) - annotate - [select for diffs], Tue Jul 5 19:31:04 2022 UTC (19 months, 2 weeks ago) by andvar
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, netbsd-10-base, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Changes since 1.30: +3 -3 lines
Diff to previous 1.30 (colored)

s/odly/oddly/ in comments.

Revision 1.30 / (download) - annotate - [select for diffs], Tue May 24 06:28:00 2022 UTC (21 months ago) by andvar
Branch: MAIN
Changes since 1.29: +3 -3 lines
Diff to previous 1.29 (colored)

fix various typos in comments, docs and log messages.

Revision 1.27.14.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:06:36 2019 UTC (4 years, 8 months ago) by christos
Branch: phil-wifi
Changes since 1.27: +5 -57 lines
Diff to previous 1.27 (colored) next main 1.28 (colored)

Sync with HEAD

Revision 1.29 / (download) - annotate - [select for diffs], Wed Apr 3 22:10:51 2019 UTC (4 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-futex, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, isaki-audio2-base, isaki-audio2, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Changes since 1.28: +2 -54 lines
Diff to previous 1.28 (colored)

centralize setdisklabel(9)

Revision 1.27.12.1 / (download) - annotate - [select for diffs], Thu Sep 6 06:55:39 2018 UTC (5 years, 5 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.27: +5 -5 lines
Diff to previous 1.27 (colored) next main 1.28 (colored)

Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)

Revision 1.28 / (download) - annotate - [select for diffs], Mon Sep 3 16:29:26 2018 UTC (5 years, 5 months ago) by riastradh
Branch: MAIN
CVS Tags: pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906
Changes since 1.27: +5 -5 lines
Diff to previous 1.27 (colored)

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!)

Revision 1.25.6.1 / (download) - annotate - [select for diffs], Sun Dec 3 11:36:34 2017 UTC (6 years, 2 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.25: +10 -11 lines
Diff to previous 1.25 (colored) next main 1.26 (colored)

update from HEAD

Revision 1.25.24.2 / (download) - annotate - [select for diffs], Mon Aug 28 17:51:48 2017 UTC (6 years, 5 months ago) by skrll
Branch: nick-nhusb
Changes since 1.25.24.1: +10 -10 lines
Diff to previous 1.25.24.1 (colored) to branchpoint 1.25 (colored) next main 1.26 (colored)

Sync with HEAD

Revision 1.26.4.1 / (download) - annotate - [select for diffs], Fri Apr 21 16:53:33 2017 UTC (6 years, 10 months ago) by bouyer
Branch: bouyer-socketcan
Changes since 1.26: +10 -10 lines
Diff to previous 1.26 (colored) next main 1.27 (colored)

Sync with HEAD

Revision 1.26.2.1 / (download) - annotate - [select for diffs], Mon Mar 20 06:57:18 2017 UTC (6 years, 11 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.26: +10 -10 lines
Diff to previous 1.26 (colored) next main 1.27 (colored)

Sync with HEAD

Revision 1.27 / (download) - annotate - [select for diffs], Sun Mar 5 22:14:51 2017 UTC (6 years, 11 months ago) by mrg
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-compat-base, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1
Branch point for: phil-wifi, pgoyette-compat
Changes since 1.26: +10 -10 lines
Diff to previous 1.26 (colored)

fix some printf formats in DIAGNOSTIC code.

Revision 1.25.24.1 / (download) - annotate - [select for diffs], Tue Sep 22 12:05:49 2015 UTC (8 years, 5 months ago) by skrll
Branch: nick-nhusb
Changes since 1.25: +2 -3 lines
Diff to previous 1.25 (colored)

Sync with HEAD

Revision 1.26 / (download) - annotate - [select for diffs], Sat Jul 4 06:14:41 2015 UTC (8 years, 7 months ago) by maxv
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, localcount-20160914, bouyer-socketcan-base
Branch point for: pgoyette-localcount, bouyer-socketcan
Changes since 1.25: +2 -3 lines
Diff to previous 1.25 (colored)

Remove a dead continue.

Harmless, found by Brainy

Revision 1.24.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:06:45 2012 UTC (11 years, 10 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.24: +22 -17 lines
Diff to previous 1.24 (colored) next main 1.25 (colored)

sync with head

Revision 1.24.6.1 / (download) - annotate - [select for diffs], Sat Feb 18 07:32:50 2012 UTC (12 years ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.24: +22 -17 lines
Diff to previous 1.24 (colored) next main 1.25 (colored)

merge to -current.

Revision 1.25 / (download) - annotate - [select for diffs], Thu Feb 2 21:54:34 2012 UTC (12 years ago) by phx
Branch: MAIN
CVS Tags: yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, rmind-smpnet, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, khorben-n900, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10, agc-symver-base, agc-symver
Branch point for: tls-maxphys, nick-nhusb
Changes since 1.24: +22 -17 lines
Diff to previous 1.24 (colored)

Fixed writing of MBR disklabel. It was written by disklabel(8) -r directly
into sector 0, corrupting the MBR. Moved to sector 1.
Removed MBR_LABELSECTOR, which is no longer needed.

Revision 1.24 / (download) - annotate - [select for diffs], Sat Oct 8 06:55:19 2011 UTC (12 years, 4 months ago) by kiyohara
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache, jmcneill-usbmp
Changes since 1.23: +7 -2 lines
Diff to previous 1.23 (colored)

Support FAT filesystem on RDB partition.

Revision 1.23 / (download) - annotate - [select for diffs], Thu Aug 18 08:55:43 2011 UTC (12 years, 6 months ago) by phx
Branch: MAIN
Changes since 1.22: +40 -51 lines
Diff to previous 1.22 (colored)

First check whether an MBR is present. Then use it for locating the disklabel.
Otherwise try to construct a disklabel from RDB partitions, and when
everything fails, look for a raw NetBSD disklabel in LABELSECTOR.
This is the same sequence as in ofwboot now.
Also fixed some typos in the comments.

Revision 1.21.34.1 / (download) - annotate - [select for diffs], Sat Mar 5 20:51:28 2011 UTC (12 years, 11 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.21: +746 -177 lines
Diff to previous 1.21 (colored) next main 1.22 (colored)

sync with head

Revision 1.21.28.1 / (download) - annotate - [select for diffs], Mon Jan 10 00:37:35 2011 UTC (13 years, 1 month ago) by jym
Branch: jym-xensuspend
Changes since 1.21: +746 -177 lines
Diff to previous 1.21 (colored) next main 1.22 (colored)

Sync with HEAD

Revision 1.22 / (download) - annotate - [select for diffs], Fri Dec 31 21:50:28 2010 UTC (13 years, 1 month ago) by phx
Branch: MAIN
CVS Tags: uebayasi-xip-base7, rmind-uvmplock-nbase, rmind-uvmplock-base, matt-mips64-premerge-20101231, jym-xensuspend-nbase, jym-xensuspend-base, jruoho-x86intr-base, jruoho-x86intr, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.21: +746 -177 lines
Diff to previous 1.21 (colored)

Support for reading disklabels from RDB partitions in the kernel.
The code will check for a raw disklabel first, then tries to find the
disklabel in an MBR partition and finally constructs it from RDB
partitions.
RDB is probably only needed for the Pegasos platform, so it can be
disabled in the config file (RDB_PART).

Revision 1.19.20.1, Tue Nov 6 23:20:02 2007 UTC (16 years, 3 months ago) by matt
Branch: matt-armv6
Changes since 1.19: +2 -2 lines
FILE REMOVED

sync with HEAD

Revision 1.16.16.3, Sat Oct 27 11:27:29 2007 UTC (16 years, 4 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.16.16.2: +2 -2 lines
FILE REMOVED

sync with head.

Revision 1.19.18.1, Fri Oct 26 15:43:04 2007 UTC (16 years, 4 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.19: +2 -2 lines
FILE REMOVED

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.

Revision 1.20.2.1, Thu Oct 25 22:36:15 2007 UTC (16 years, 4 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.20: +2 -2 lines
FILE REMOVED

Sync with HEAD.

Revision 1.19.2.2, Tue Oct 23 20:13:42 2007 UTC (16 years, 4 months ago) by ad
Branch: vmlocking
Changes since 1.19.2.1: +2 -2 lines
FILE REMOVED

Sync with head.

Revision 1.19.22.2, Thu Oct 18 08:32:23 2007 UTC (16 years, 4 months ago) by yamt
Branch: yamt-x86pmap
Changes since 1.19.22.1: +2 -2 lines
FILE REMOVED

sync with head.

Revision 1.21, Wed Oct 17 19:56:10 2007 UTC (16 years, 4 months ago) by garbled
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, yamt-nfs-mp-base9, yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, yamt-nfs-mp-base2, yamt-nfs-mp-base11, yamt-nfs-mp-base10, yamt-nfs-mp-base, yamt-nfs-mp, yamt-lazymbuf-base15, yamt-lazymbuf-base14, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, vmlocking-nbase, uebayasi-xip-base2, uebayasi-xip-base, uebayasi-xip, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, mjf-devfs2-base, mjf-devfs2, mjf-devfs-base, mjf-devfs, matt-nb5-pq3-base, matt-nb5-pq3, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, jymxensuspend-base, jmcneill-pm-base, jmcneill-base, hpcarm-cleanup-nbase, hpcarm-cleanup-base, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, cube-autoconf-base, cube-autoconf, bouyer-xeni386-nbase, bouyer-xeni386-merge1, bouyer-xeni386-base, bouyer-xeni386, bouyer-xenamd64-base2, bouyer-xenamd64-base, ad-socklock-base1, ad-audiomp2-base, ad-audiomp2
Branch point for: rmind-uvmplock, jym-xensuspend
Changes since 1.20: +2 -2 lines
FILE REMOVED

Merge the ppcoea-renovation branch to HEAD.

This branch was a major cleanup and rototill of many of the various OEA
cpu based PPC ports that focused on sharing as much code as possible
between the various ports to eliminate near-identical copies of files in
every tree.  Additionally there is a new PIC system that unifies the
interface to interrupt code for all different OEA ppc arches.  The work
for this branch was done by a variety of people, too long to list here.

TODO:
bebox still needs work to complete the transition to -renovation.
ofppc still needs a bunch of work, which I will be looking at.
ev64260 still needs to be renovated
amigappc was not attempted.

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.

Revision 1.19.22.1 / (download) - annotate - [select for diffs], Sun Oct 14 11:47:41 2007 UTC (16 years, 4 months ago) by yamt
Branch: yamt-x86pmap
Changes since 1.19: +6 -6 lines
Diff to previous 1.19 (colored)

sync with head.

Revision 1.19.2.1 / (download) - annotate - [select for diffs], Tue Oct 9 13:38:18 2007 UTC (16 years, 4 months ago) by ad
Branch: vmlocking
Changes since 1.19: +6 -6 lines
Diff to previous 1.19 (colored)

Sync with head.

Revision 1.20 / (download) - annotate - [select for diffs], Mon Oct 8 18:02:57 2007 UTC (16 years, 4 months ago) by ad
Branch: MAIN
CVS Tags: yamt-x86pmap-base3, vmlocking-base
Branch point for: bouyer-xenamd64
Changes since 1.19: +6 -6 lines
Diff to previous 1.19 (colored)

Merge brelse() changes from the vmlocking branch.

Revision 1.16.16.2 / (download) - annotate - [select for diffs], Mon Sep 3 14:28:34 2007 UTC (16 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.16.16.1: +5 -5 lines
Diff to previous 1.16.16.1 (colored) to branchpoint 1.16 (colored)

sync with head.

Revision 1.19.10.1, Thu Jun 21 18:49:46 2007 UTC (16 years, 8 months ago) by garbled
Branch: ppcoea-renovation
Changes since 1.19: +2 -2 lines
FILE REMOVED

Completely rewrite ofppc from scratch.

1) Change it to be like the other ppc ports, and directly interface with
hardware, rather than trying to be slick and access everything through
the OFW.  Instead, we gather configuration information from OFW, and use
that to discover hardware.

2) Change it over to powerpc bus_space and bus_dma.

3) Timecounters, generic soft interrupts.

4) Make use of the shared code in powerpc. (pic code, oea, bat code, etc)

5) Probably other stuff..  almost nothing remains of the original port.

It is assumed that in it's present state this will not run on any
machines.  However, it should be pretty close, and will just need some
massaging and care from someone with access to hardware to make it work.
The code is written to target a CHRP compatible machine, but there is no
reason it cannot be ported to other machines like the Pegasos or Efika.
I simply don't have the knowledge of those machines to structure the code
for them, but I have attempted to keep it generic enough that such work
could still be done.

If anyone with access to hardware would like to take this on, I will
gladly assist as much as possible.

Revision 1.18.4.1 / (download) - annotate - [select for diffs], Mon Mar 12 05:49:46 2007 UTC (16 years, 11 months ago) by rmind
Branch: yamt-idlelwp
Changes since 1.18: +5 -5 lines
Diff to previous 1.18 (colored) next main 1.19 (colored)

Sync with HEAD.

Revision 1.19 / (download) - annotate - [select for diffs], Tue Mar 6 13:54:44 2007 UTC (16 years, 11 months ago) by he
Branch: MAIN
CVS Tags: yamt-x86pmap-base2, yamt-x86pmap-base, yamt-idlelwp-base8, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup, ppcoea-renovation-base, nick-csl-alignment-base5, nick-csl-alignment-base4, nick-csl-alignment-base3, nick-csl-alignment-base2, nick-csl-alignment-base, nick-csl-alignment, mjf-ufs-trans-base, mjf-ufs-trans, matt-mips64-base, matt-mips64, matt-armv6-base, hpcarm-cleanup
Branch point for: yamt-x86pmap, vmlocking, ppcoea-renovation, matt-armv6, jmcneill-pm
Changes since 1.18: +5 -5 lines
Diff to previous 1.18 (colored)

More fixes after the caddr_t removal.
Mostly cast to char* for pointer arithmetic,
but also one missing indirection, and one "void *v, x;" fix.

Revision 1.17.20.1 / (download) - annotate - [select for diffs], Fri Jan 12 01:00:55 2007 UTC (17 years, 1 month ago) by ad
Branch: newlock2
Changes since 1.17: +2 -46 lines
Diff to previous 1.17 (colored) next main 1.18 (colored)

Sync with head.

Revision 1.16.16.1 / (download) - annotate - [select for diffs], Sat Dec 30 20:46:41 2006 UTC (17 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.16: +2 -46 lines
Diff to previous 1.16 (colored)

sync with head.

Revision 1.17.22.1 / (download) - annotate - [select for diffs], Sun Dec 10 07:16:30 2006 UTC (17 years, 2 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.17: +2 -46 lines
Diff to previous 1.17 (colored) next main 1.18 (colored)

sync with head.

Revision 1.18 / (download) - annotate - [select for diffs], Sat Nov 25 11:59:57 2006 UTC (17 years, 3 months ago) by scw
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, post-newlock2-merge, newlock2-nbase, newlock2-base, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, matt-nb4-arm-base, matt-nb4-arm, ad-audiomp-base, ad-audiomp
Branch point for: yamt-idlelwp
Changes since 1.17: +2 -46 lines
Diff to previous 1.17 (colored)

Replace the myriad copies of bounds_check_with_label() with a single MI
version.

Add disk_blocksize(9) so that disk drivers can record the physical
block size of a disk if it is different to DEV_BSIZE. Right now this
simply initialises dk_blkshift and dk_byteshift according to the
supplied block size. This information is used in the MI version of
bounds_check_with_label().

Revision 1.17 / (download) - annotate - [select for diffs], Sun Dec 11 12:18:29 2005 UTC (18 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-splraiseipl-base2, yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, yamt-pdpolicy, simonb-timecounters-base, simonb-timecounters, simonb-timcounters-final, rpaulo-netinet-merge-pcb-base, rpaulo-netinet-merge-pcb, peter-altq-base, peter-altq, gdamore-uart-base, gdamore-uart, elad-kernelauth-base, elad-kernelauth, chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored)

merge ktrace-lwp.

Revision 1.14.2.3 / (download) - annotate - [select for diffs], Tue Sep 21 13:19:44 2004 UTC (19 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.14.2.2: +2 -2 lines
Diff to previous 1.14.2.2 (colored) next main 1.15 (colored)

Fix the sync with head I botched.

Revision 1.14.2.2 / (download) - annotate - [select for diffs], Sat Sep 18 14:38:24 2004 UTC (19 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.14.2.1: +0 -0 lines
Diff to previous 1.14.2.1 (colored)

Sync with HEAD.

Revision 1.14.2.1 / (download) - annotate - [select for diffs], Tue Aug 3 10:38:40 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.14: +10 -6 lines
Diff to previous 1.14 (colored)

Sync with HEAD

Revision 1.16 / (download) - annotate - [select for diffs], Wed Oct 8 04:25:45 2003 UTC (20 years, 4 months ago) by lukem
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, yamt-km-base4, yamt-km-base3, yamt-km-base2, yamt-km-base, yamt-km, thorpej-vnode-attr-base, thorpej-vnode-attr, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2, ktrace-lwp-base, kent-audio2-base, kent-audio2, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-lazymbuf
Changes since 1.15: +7 -7 lines
Diff to previous 1.15 (colored)

Overhaul MBR handling (part 1):

<sys/bootblock.h>:
    *	Added definitions for the Master Boot Record (MBR) used by
	a variety of systems (primarily i386), including the format
	of the BIOS Parameter Block (BPB).
	This information was cribbed from a variety of sources
	including <sys/disklabel_mbr.h> which this is a superset of.

	As part of this, some data structure elements and #defines
	were renamed to be more "namespace friendly" and consistent
	with other bootblocks and MBR documentation.
	Update all uses of the old names to the new names.

<sys/disklabel_mbr.h>:
    *	Deprecated in favor of <sys/bootblock.h> (the latter is more
	"host tool" friendly).

amd64 & i386:
    *	Renamed /usr/mdec/bootxx_dosfs to /usr/mdec/bootxx_msdos, to
	be consistent with the naming convention of the msdosfs tools.

    *	Removed /usr/mdec/bootxx_ufs, as it's equivalent to bootxx_ffsv1
	and it's confusing to have two functionally equivalent bootblocks,
	especially given that "ufs" has multiple meanings (it could be
	a synonym for "ffs", or the group of ffs/lfs/ext2fs file systems).

    *	Rework pbr.S (the first sector of bootxx_*):
	    +	Ensure that BPB (bytes 11..89) and the partition table
		(bytes 446..509) do not contain code.
	    +	Add support for booting from FAT partitions if BOOT_FROM_FAT
		is defined.  (Only set for bootxx_msdos).
	    +	Remove "dummy" partition 3; if people want to installboot(8)
		these to the start of the disk they can use fdisk(8) to
		create a real MBR partition table...
	    +	Compile with TERSE_ERROR so it fits because of the above.
		Whilst this is less user friendly, I feel it's important
		to have a valid partition table and BPB in the MBR/PBR.

    *	Renamed /usr/mdec/biosboot to /usr/mdec/boot, to be consistent
	with other platforms.

    *	Enable SUPPORT_DOSFS in /usr/mdec/boot (stage2), so that
    	we can boot off FAT partitions.

    *	Crank version of /usr/mdec/boot to 3.1, and fix some of the other
	entries in the version file.

installboot(8) (i386):
    *	Read the existing MBR of the filesystem and retain the BIOS
    	Parameter Block (BPB) in bytes 11..89 and the MBR partition
	table in bytes 446..509.  (Previously installboot(8) would
	trash those two sections of the MBR.)

mbrlabel(8):
    *	Use sys/lib/libkern/xlat_mbr_fstype.c instead of homegrown code
	to map the MBR partition type to the NetBSD disklabel type.


Test built "make release" for i386, and new bootblocks verified to work
(even off FAT!).

Revision 1.15 / (download) - annotate - [select for diffs], Tue Jul 15 02:46:32 2003 UTC (20 years, 7 months ago) by lukem
Branch: MAIN
Changes since 1.14: +5 -1 lines
Diff to previous 1.14 (colored)

__KERNEL_RCSID()

Revision 1.14 / (download) - annotate - [select for diffs], Sat May 10 23:12:36 2003 UTC (20 years, 9 months ago) by thorpej
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.13: +4 -3 lines
Diff to previous 1.13 (colored)

Change bounds_check_with_label() to take a pointer to the disk structure,
rather than the label itself.  This paves the way for some future changes.

Revision 1.13 / (download) - annotate - [select for diffs], Fri May 2 08:45:18 2003 UTC (20 years, 9 months ago) by dsl
Branch: MAIN
Changes since 1.12: +2 -2 lines
Diff to previous 1.12 (colored)

Change return type of readdisklabel() to const char *
I hope I've found all the correct places!

Revision 1.12 / (download) - annotate - [select for diffs], Wed Apr 16 15:01:05 2003 UTC (20 years, 10 months ago) by bouyer
Branch: MAIN
Changes since 1.11: +3 -4 lines
Diff to previous 1.11 (colored)

Nake return values from bounds_check_with_label() conform to the man
page: -1 for error, 0 for EOF, 1 otherwise. Inspired by an OpenBSD commit
message, pointed out by Miod Vallat in private mail.
vax/mba/hp.c: check return value <= 0, not < 0 to be concistent with how
other places handle return values from bounds_check_with_label().

Revision 1.10.6.2 / (download) - annotate - [select for diffs], Fri Oct 18 02:39:19 2002 UTC (21 years, 4 months ago) by nathanw
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.10.6.1: +364 -0 lines
Diff to previous 1.10.6.1 (colored) to branchpoint 1.10 (colored) next main 1.11 (colored)

Catch up to -current.

Revision 1.8.2.3 / (download) - annotate - [select for diffs], Thu Oct 10 18:34:50 2002 UTC (21 years, 4 months ago) by jdolecek
Branch: kqueue
Changes since 1.8.2.2: +48 -42 lines
Diff to previous 1.8.2.2 (colored) next main 1.9 (colored)

sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work

Revision 1.11 / (download) - annotate - [select for diffs], Wed Sep 18 01:44:29 2002 UTC (21 years, 5 months ago) by chs
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, kqueue-beforemerge, kqueue-base, kqueue-aftermerge, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Changes since 1.10: +48 -42 lines
Diff to previous 1.10 (colored)

reformat for readability.

Revision 1.10.2.1 / (download) - annotate - [select for diffs], Wed Oct 10 11:56:22 2001 UTC (22 years, 4 months ago) by fvdl
Branch: thorpej-devvp
Changes since 1.10: +31 -20 lines
Diff to previous 1.10 (colored) next main 1.11 (colored)

Convert all remaining devices.

Revision 1.8.2.2 / (download) - annotate - [select for diffs], Thu Sep 13 01:14:13 2001 UTC (22 years, 5 months ago) by thorpej
Branch: kqueue
Changes since 1.8.2.1: +17 -31 lines
Diff to previous 1.8.2.1 (colored)

Update the kqueue branch to HEAD.

Revision 1.10.6.1, Sun Aug 26 02:47:41 2001 UTC (22 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.10: +0 -358 lines
FILE REMOVED

file disksubr.c was added on branch nathanw_sa on 2002-10-18 02:39:19 +0000

Revision 1.10 / (download) - annotate - [select for diffs], Sun Aug 26 02:47:41 2001 UTC (22 years, 6 months ago) by matt
Branch: MAIN
CVS Tags: thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3, thorpej-devvp-base2, thorpej-devvp-base, pre-chs-ubcperf, post-chs-ubcperf, newlock-base, newlock, netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6, ifpoll-base, gehenna-devsw-base, gehenna-devsw, eeh-devprop-base, eeh-devprop
Branch point for: thorpej-devvp, nathanw_sa
Changes since 1.9: +17 -31 lines
Diff to previous 1.9 (colored)

Make all powerpc ports use a common Makefile.powerpc (except walnut)
Enforce -Wmissing-prototypes -Wstrict-prototypes for all ppc ports.
Split out macppc cpu support and make common to mpc6xx ports.  Make
other mpc6xx ports use it.  Add evcnts for mpc6xx traps.

Revision 1.8.2.1 / (download) - annotate - [select for diffs], Fri Aug 3 04:12:10 2001 UTC (22 years, 6 months ago) by lukem
Branch: kqueue
Changes since 1.8: +4 -4 lines
Diff to previous 1.8 (colored)

update to -current

Revision 1.9 / (download) - annotate - [select for diffs], Sun Jul 22 14:43:14 2001 UTC (22 years, 7 months ago) by wiz
Branch: MAIN
Changes since 1.8: +4 -4 lines
Diff to previous 1.8 (colored)

bcopy -> memcpy, bzero -> memset

Revision 1.7.2.1 / (download) - annotate - [select for diffs], Thu Jun 21 19:31:07 2001 UTC (22 years, 8 months ago) by nathanw
Changes since 1.7: +1 -38 lines
Diff to previous 1.7 (colored) next main 1.8 (colored)

Catch up to -current.

Revision 1.8 / (download) - annotate - [select for diffs], Tue Jun 12 17:23:13 2001 UTC (22 years, 8 months ago) by tsubai
Branch: MAIN
Branch point for: kqueue
Changes since 1.7: +1 -38 lines
Diff to previous 1.7 (colored)

Remove cpu_dumpconf(); it's in powerpc_machdep.

Revision 1.6.2.1 / (download) - annotate - [select for diffs], Wed Nov 22 16:01:21 2000 UTC (23 years, 3 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.6: +4 -7 lines
Diff to previous 1.6 (colored) next main 1.7 (colored)

Sync with HEAD.

Revision 1.7 / (download) - annotate - [select for diffs], Mon Nov 20 08:24:19 2000 UTC (23 years, 3 months ago) by chs
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Changes since 1.6: +4 -7 lines
Diff to previous 1.6 (colored)

rationalize the use of b_flags for geteblk() buffers.
rather than assigning to the whole field, set or clear individual flags,
which implies that the B_BUSY and B_INVAL flags will remain set.
this allows us to make the assertion in brelse() that B_BUSY is set,
which is the purpose of all this.

Revision 1.6.8.1 / (download) - annotate - [select for diffs], Tue Dec 21 23:16:12 1999 UTC (24 years, 2 months ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.6: +20 -9 lines
Diff to previous 1.6 (colored) next main 1.7 (colored)

Initial commit of recent changes to make DEV_BSIZE go away.

Runs on i386, needs work on other arch's. Main kernel routines should be
fine, but a number of the stand programs need help.

cd, fd, ccd, wd, and sd have been updated. sd has been tested with non-512
byte block devices. vnd, raidframe, and lfs need work.

Non 2**n block support is automatic for LKM's and conditional for kernels
on "options NON_PO2_BLOCKS".

Revision 1.5.4.1 / (download) - annotate - [select for diffs], Mon Jun 21 00:55:41 1999 UTC (24 years, 8 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.5: +3 -2 lines
Diff to previous 1.5 (colored) next main 1.6 (colored)

Sync w/ -current.

Revision 1.6 / (download) - annotate - [select for diffs], Tue May 4 23:55:27 1999 UTC (24 years, 9 months ago) by thorpej
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, netbsd-1-5, minoura-xpg4dl-base, minoura-xpg4dl, fvdl-softdep-base, fvdl-softdep, comdex-fall-1999-base, comdex-fall-1999, chs-ubc2-newbase, chs-ubc2-base
Branch point for: wrstuden-devbsize, thorpej_scsipi
Changes since 1.5: +3 -2 lines
Diff to previous 1.5 (colored)

Make this compile again.

Revision 1.5 / (download) - annotate - [select for diffs], Wed Jan 27 21:33:19 1999 UTC (25 years, 1 month ago) by thorpej
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame
Branch point for: chs-ubc2
Changes since 1.4: +15 -15 lines
Diff to previous 1.4 (colored)

Use <sys/disklabel_mbr.h>

Revision 1.4 / (download) - annotate - [select for diffs], Mon Jun 22 21:12:52 1998 UTC (25 years, 8 months ago) by sommerfe
Branch: MAIN
CVS Tags: kenh-if-detach-base, kenh-if-detach, eeh-paddr_t-base, eeh-paddr_t, chs-ubc-base, chs-ubc
Changes since 1.3: +3 -1 lines
Diff to previous 1.3 (colored)

defopt COMPAT_386BSD_MBRPART into opt_mbr.h

Revision 1.3 / (download) - annotate - [select for diffs], Mon Mar 2 16:18:17 1998 UTC (25 years, 11 months ago) by drochner
Branch: MAIN
Changes since 1.2: +6 -1 lines
Diff to previous 1.2 (colored)

Change MBR partition type for NetBSD to 0xa9, like the i386 port.
Provide compatibility via COMPAT_386BSD_MBRPART.

Revision 1.2 / (download) - annotate - [select for diffs], Wed Mar 26 22:43:01 1997 UTC (26 years, 11 months ago) by gwr
Branch: MAIN
Changes since 1.1: +3 -3 lines
Diff to previous 1.1 (colored)

Renames: /dumpconf/cpu_dumpconf/, /boot/cpu_reboot/

Revision 1.1 / (download) - annotate - [select for diffs], Mon Sep 30 16:34:43 1996 UTC (27 years, 4 months ago) by ws
Branch: MAIN

PowerPC port

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>