CVS log for src/sys/arch/powerpc/powerpc/openfirm.c
Up to [cvs.NetBSD.org] / src / sys / arch / powerpc / powerpc
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.31.2.1: download - view: text, markup, annotated - select for diffs
Sat Apr 3 22:28:35 2021 UTC (3 years, 9 months ago) by thorpej
Branches: thorpej-futex
Diff to: previous 1.31: preferred, colored; next MAIN 1.32: preferred, colored
Changes since revision 1.31: +297 -114
lines
Sync with HEAD.
Revision 1.33: download - view: text, markup, annotated - select for diffs
Sat Feb 13 01:48:33 2021 UTC (3 years, 11 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-ifq-base,
thorpej-ifq,
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-cfargs2-base,
thorpej-cfargs2,
thorpej-cfargs-base,
thorpej-cfargs,
thorpej-altq-separation-base,
thorpej-altq-separation,
perseant-exfatfs-base-20240630,
perseant-exfatfs-base,
perseant-exfatfs,
netbsd-10-base,
netbsd-10-1-RELEASE,
netbsd-10-0-RELEASE,
netbsd-10-0-RC6,
netbsd-10-0-RC5,
netbsd-10-0-RC4,
netbsd-10-0-RC3,
netbsd-10-0-RC2,
netbsd-10-0-RC1,
netbsd-10,
cjep_sun2x-base1,
cjep_sun2x-base,
cjep_sun2x,
cjep_staticlib_x-base1,
cjep_staticlib_x-base,
cjep_staticlib_x,
bouyer-sunxi-drm-base,
bouyer-sunxi-drm,
HEAD
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +294 -111
lines
- Don't change to the OFW stack in C code; instead, switch to the OFW
stack in the openfirmware() wrapper itself. Inspired by a similar
change in OpenBSD designed to appease clang.
- The OF_*() entry firmware interfaces use several global resources;
protect those global resources with a __cpu_simple_lock_t.
- Make ofbcopy() static -- it's no longer referenced outside openfirm.c
Revision 1.32: download - view: text, markup, annotated - select for diffs
Fri Feb 5 00:06:11 2021 UTC (3 years, 11 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +5 -5
lines
s/bootspec/bstr/g to avoid shadowing a global.
Revision 1.31: download - view: text, markup, annotated - select for diffs
Mon Jul 6 09:34:18 2020 UTC (4 years, 6 months ago) by rin
Branches: MAIN
Branch point for: thorpej-futex
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +6 -4
lines
Style and cosmetic changes. No binary changes intended.
Revision 1.25.28.3: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:04:04 2020 UTC (4 years, 9 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.25.28.2: preferred, colored; branchpoint 1.25: preferred, colored; next MAIN 1.26: preferred, colored
Changes since revision 1.25.28.2: +12 -8
lines
Mostly merge changes from HEAD upto 20200411
Revision 1.25.28.2: download - view: text, markup, annotated - select for diffs
Wed Apr 8 14:07:50 2020 UTC (4 years, 9 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.25.28.1: preferred, colored; branchpoint 1.25: preferred, colored
Changes since revision 1.25.28.1: +2 -10
lines
Merge changes from current as of 20200406
Revision 1.30: download - view: text, markup, annotated - select for diffs
Fri Dec 6 06:38:39 2019 UTC (5 years, 1 month ago) by mrg
Branches: MAIN
CVS tags: phil-wifi-20200421,
phil-wifi-20200411,
phil-wifi-20200406,
is-mlppp-base,
is-mlppp,
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
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +2 -10
lines
revert this change from early this year. it appears the
changes macallan@ commited to fix FIRMWORKSBUGS issues
in openfirmware() have fixed the hangs seen on PegasosII.
hooray!
---
Log Message:
workaround a problem with the pegasos firmware interface:
attempting to use /dev/openfirm on this machine hangs hard.
this isn't a new problem, and i've been meaning to try to
figure it out for years, but it's become a problem since
the xf86-video-radeon driver gained code to look for the
macppc model using this interface.
this is why xorg-server 1.18 and 1.20 hang recently on the
pegasosII.
this change is fairly ugly but i couldn't think of a less
ugly method to avoid /dev/openfirm working just on this
one platform. introduce new __OPENFIRMIO_OPEN_CHECK_BROKEN
macro and associated __openfirmio_open_check_broken(), and
use them in the new openfirmopen() to fail opens.
include proplib.h in macppc and ofppc autoconf.h since they
use it.
---
Revision 1.29: download - view: text, markup, annotated - select for diffs
Sat Nov 16 00:16:55 2019 UTC (5 years, 2 months ago) by macallan
Branches: MAIN
CVS tags: phil-wifi-20191119
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +3 -3
lines
fix pasto - don't limit OF_finddevice() to 32 characters
now this works again
Revision 1.28: download - view: text, markup, annotated - select for diffs
Fri Nov 15 23:41:47 2019 UTC (5 years, 2 months ago) by macallan
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +14 -10
lines
stuff name parameters into OF_buf before calling OF
now things like ofctl work on my TiBook with FIRMWORKSBUGS
Revision 1.25.28.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:06:39 2019 UTC (5 years, 7 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +13 -4
lines
Sync with HEAD
Revision 1.25.26.2: download - view: text, markup, annotated - select for diffs
Fri Jan 18 08:50:21 2019 UTC (6 years ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.25.26.1: preferred, colored; branchpoint 1.25: preferred, colored; next MAIN 1.26: preferred, colored
Changes since revision 1.25.26.1: +11 -2
lines
Synch with HEAD
Revision 1.27: download - view: text, markup, annotated - select for diffs
Tue Jan 8 07:46:11 2019 UTC (6 years ago) by mrg
Branches: MAIN
CVS tags: phil-wifi-20190609,
pgoyette-compat-20190127,
pgoyette-compat-20190118,
netbsd-9-base,
netbsd-9-4-RELEASE,
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
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +11 -2
lines
workaround a problem with the pegasos firmware interface:
attempting to use /dev/openfirm on this machine hangs hard.
this isn't a new problem, and i've been meaning to try to
figure it out for years, but it's become a problem since
the xf86-video-radeon driver gained code to look for the
macppc model using this interface.
this is why xorg-server 1.18 and 1.20 hang recently on the
pegasosII.
this change is fairly ugly but i couldn't think of a less
ugly method to avoid /dev/openfirm working just on this
one platform. introduce new __OPENFIRMIO_OPEN_CHECK_BROKEN
macro and associated __openfirmio_open_check_broken(), and
use them in the new openfirmopen() to fail opens.
include proplib.h in macppc and ofppc autoconf.h since they
use it.
Revision 1.25.26.1: download - view: text, markup, annotated - select for diffs
Thu Sep 6 06:55:39 2018 UTC (6 years, 4 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +4 -4
lines
Sync with HEAD
Resolve a couple of conflicts (result of the uimin/uimax changes)
Revision 1.26: download - view: text, markup, annotated - select for diffs
Mon Sep 3 16:29:26 2018 UTC (6 years, 4 months ago) by riastradh
Branches: MAIN
CVS tags: pgoyette-compat-1226,
pgoyette-compat-1126,
pgoyette-compat-1020,
pgoyette-compat-0930,
pgoyette-compat-0906
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +4 -4
lines
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.21.12.2: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:03:20 2014 UTC (10 years, 5 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.21.12.1: preferred, colored; branchpoint 1.21: preferred, colored; next MAIN 1.22: preferred, colored
Changes since revision 1.21.12.1: +3 -3
lines
Rebase to HEAD as of a few days ago.
Revision 1.24.2.1: download - view: text, markup, annotated - select for diffs
Sun Aug 10 06:54:05 2014 UTC (10 years, 5 months ago) by tls
Branches: tls-earlyentropy
Diff to: previous 1.24: preferred, colored; next MAIN 1.25: preferred, colored
Changes since revision 1.24: +4 -4
lines
Rebase.
Revision 1.25: download - view: text, markup, annotated - select for diffs
Thu Aug 7 09:08:09 2014 UTC (10 years, 5 months ago) by joerg
Branches: MAIN
CVS tags: tls-maxphys-base-20171202,
tls-maxphys-base,
tls-earlyentropy-base,
prg-localcount2-base3,
prg-localcount2-base2,
prg-localcount2-base1,
prg-localcount2-base,
prg-localcount2,
phil-wifi-base,
pgoyette-localcount-base,
pgoyette-localcount-20170426,
pgoyette-localcount-20170320,
pgoyette-localcount-20170107,
pgoyette-localcount-20161104,
pgoyette-localcount-20160806,
pgoyette-localcount-20160726,
pgoyette-localcount,
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,
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,
nick-nhusb-base-20150606,
nick-nhusb-base-20150406,
nick-nhusb-base,
nick-nhusb,
netbsd-8-base,
netbsd-8-3-RELEASE,
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,
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,
matt-nb8-mediatek-base,
matt-nb8-mediatek,
localcount-20160914,
jdolecek-ncq-base,
jdolecek-ncq,
bouyer-socketcan-base1,
bouyer-socketcan-base,
bouyer-socketcan
Branch point for: phil-wifi,
pgoyette-compat
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +4 -4
lines
Panic after openfirm, it is not supposed to return.
Revision 1.21.2.1: download - view: text, markup, annotated - select for diffs
Thu May 22 11:40:05 2014 UTC (10 years, 8 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.21: preferred, colored; next MAIN 1.22: preferred, colored
Changes since revision 1.21: +23 -6
lines
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")
Revision 1.22.2.1: download - view: text, markup, annotated - select for diffs
Sun May 18 17:45:22 2014 UTC (10 years, 8 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.22: preferred, colored; next MAIN 1.23: preferred, colored
Changes since revision 1.22: +6 -6
lines
sync with head
Revision 1.24: download - view: text, markup, annotated - select for diffs
Fri Feb 28 05:45:26 2014 UTC (10 years, 10 months ago) by matt
Branches: MAIN
CVS tags: yamt-pagecache-base9,
rmind-smpnet-nbase,
rmind-smpnet-base,
riastradh-xf86-video-intel-2-7-1-pre-2-21-15,
riastradh-drm2-base3
Branch point for: tls-earlyentropy
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +4 -4
lines
Use uintptr_t to convert pointers.
Revision 1.23: download - view: text, markup, annotated - select for diffs
Fri Jan 17 09:09:40 2014 UTC (11 years ago) by mrg
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +4 -4
lines
convert a failure to call OF for a reboot call into a panic() instead
of a hard hang.
Revision 1.21.12.1: download - view: text, markup, annotated - select for diffs
Sun Jun 23 06:20:10 2013 UTC (11 years, 6 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +19 -2
lines
resync from head
Revision 1.22: download - view: text, markup, annotated - select for diffs
Sun May 12 13:50:11 2013 UTC (11 years, 8 months ago) by macallan
Branches: MAIN
CVS tags: riastradh-drm2-base2,
riastradh-drm2-base1,
riastradh-drm2-base,
riastradh-drm2
Branch point for: rmind-smpnet
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +19 -2
lines
add OF_quiesce() to shut down OF background tasks, needed on G5
from Phileas Fogg
Revision 1.21: download - view: text, markup, annotated - select for diffs
Sun Jul 17 20:54:46 2011 UTC (13 years, 6 months ago) by joerg
Branches: MAIN
CVS tags: yamt-pagecache-tag8,
yamt-pagecache-base8,
yamt-pagecache-base7,
yamt-pagecache-base6,
yamt-pagecache-base5,
yamt-pagecache-base4,
yamt-pagecache-base3,
yamt-pagecache-base2,
yamt-pagecache-base,
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-pre-base2,
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,
jmcneill-usbmp-base,
jmcneill-usbmp,
jmcneill-audiomp3-base,
jmcneill-audiomp3,
agc-symver-base,
agc-symver
Branch point for: yamt-pagecache,
tls-maxphys
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +2 -3
lines
Retire varargs.h support. Move machine/stdarg.h logic into MI
sys/stdarg.h and expect compiler to provide proper builtins, defaulting
to the GCC interface. lint still has a special fallback.
Reduce abuse of _BSD_VA_LIST_ by defining __va_list by default and
derive va_list as required by standards.
Revision 1.19.14.1: download - view: text, markup, annotated - select for diffs
Mon Jun 2 13:22:33 2008 UTC (16 years, 7 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.19: preferred, colored; next MAIN 1.20: preferred, colored
Changes since revision 1.19: +32 -2
lines
Sync with HEAD.
Revision 1.20: download - view: text, markup, annotated - select for diffs
Tue Apr 8 02:33:03 2008 UTC (16 years, 9 months ago) by garbled
Branches: MAIN
CVS tags: yamt-pf42-baseX,
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,
wrstuden-revivesa-base-4,
wrstuden-revivesa-base-3,
wrstuden-revivesa-base-2,
wrstuden-revivesa-base-1,
wrstuden-revivesa-base,
wrstuden-revivesa,
uebayasi-xip-base7,
uebayasi-xip-base6,
uebayasi-xip-base5,
uebayasi-xip-base4,
uebayasi-xip-base3,
uebayasi-xip-base2,
uebayasi-xip-base1,
uebayasi-xip-base,
uebayasi-xip,
simonb-wapbl-nbase,
simonb-wapbl-base,
simonb-wapbl,
rmind-uvmplock-nbase,
rmind-uvmplock-base,
rmind-uvmplock,
nick-hppapmap-base4,
nick-hppapmap-base3,
nick-hppapmap-base2,
nick-hppapmap-base,
nick-hppapmap,
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,
matt-premerge-20091211,
matt-nb5-pq3-base,
matt-nb5-pq3,
matt-nb5-mips64-u2-k2-k4-k7-k8-k9,
matt-nb5-mips64-u1-k1-k5,
matt-nb5-mips64-premerge-20101231,
matt-nb5-mips64-premerge-20091211,
matt-nb5-mips64-k15,
matt-nb5-mips64,
matt-nb4-mips64-k7-u2a-k9b,
matt-mips64-premerge-20101231,
matt-mips64-base2,
jymxensuspend-base,
jym-xensuspend-nbase,
jym-xensuspend-base,
jym-xensuspend,
jruoho-x86intr-base,
jruoho-x86intr,
hpcarm-cleanup-nbase,
haad-nbase2,
haad-dm-base2,
haad-dm-base1,
haad-dm-base,
haad-dm,
cherry-xenmp-base,
cherry-xenmp,
bouyer-quota2-nbase,
bouyer-quota2-base,
bouyer-quota2,
ad-audiomp2-base,
ad-audiomp2
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +32 -2
lines
SMP support for ofppc. (finally) Much thanks to Matt Thomas for help in
figuring out all the crazy nuances of getting this working, and to
Michael Lorenz for testing/fixing my changes on macppc. Tested with a
quad-proc 7044-270.
Summary of changes:
Bumped CPU_MAXNUM to 16 on ofppc.
Added md_* routines to ofppc/cpu.c, to sync the timebase, and awaken the CPUs.
Fixed a bug in the test for a 64bit bridge cpu early in locore.S
Added code to set the interrupt priority for all CPUs with an openpic.
Change rtas to probe before cpus, to allow use of the rtas freeze/thaw
timebase code routines.
Fix CPU_INFO_FOREACH macro to iterate through detected cpus, not CPU_MAXNUM.
Change most uses of ci_cpuid to ci_index, to deal with CPUs that do not allow
writing to SPR_PIR. Don't write SPR_PIR unless the secondary cpu identifies
itself as 0.
Change the hatchstack/interrupt stack allocations to allocate a 8192byte
interrupt stack, and a 4096 byte hatch stack, align them to 16 bytes, and
allocate them no lower than 0x10000. Allocate them separately to prevent the
hatch stack corrupting the interrupt stack later on.
If the CPU is a 64bit cpu, copy SPR_ASR in cpu_hatch()
Set the idle stack to ci->ci_data.cpu_idlelwp->l_addr->u_pcb.pcb_sp.
Add OF_start_cpu(). Add a routine to ofwoea_initppc to spin up secondary
procs early, and place them into a spinloop waiting for the hatch routines
to be ready.
Modify the ipi routines to deal with openpics that reverse byte order on read
from an ipi register. (such as on the 7044)
Change the rtas setup to allocate the rtas physical base address above
the kernel, to avoid mucking up the hatch/interrupt stacks.
Revision 1.18.2.2: download - view: text, markup, annotated - select for diffs
Mon Dec 3 19:04:05 2007 UTC (17 years, 1 month ago) by ad
Branches: vmlocking
Diff to: previous 1.18.2.1: preferred, colored; branchpoint 1.18: preferred, colored; next MAIN 1.19: preferred, colored
Changes since revision 1.18.2.1: +2 -48
lines
Sync with HEAD.
Revision 1.18.2.1: download - view: text, markup, annotated - select for diffs
Mon Dec 3 18:38:30 2007 UTC (17 years, 1 month ago) by ad
Branches: vmlocking
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +94 -2
lines
Sync with HEAD.
Revision 1.18.26.1: download - view: text, markup, annotated - select for diffs
Mon Nov 19 00:46:47 2007 UTC (17 years, 2 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.18: preferred, colored; next MAIN 1.19: preferred, colored
Changes since revision 1.18: +48 -2
lines
Sync with HEAD.
Revision 1.15.2.3: download - view: text, markup, annotated - select for diffs
Thu Nov 15 11:43:18 2007 UTC (17 years, 2 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.15.2.2: preferred, colored; branchpoint 1.15: preferred, colored; next MAIN 1.16: preferred, colored
Changes since revision 1.15.2.2: +48 -2
lines
sync with head.
Revision 1.18.24.1: download - view: text, markup, annotated - select for diffs
Tue Nov 13 15:59:08 2007 UTC (17 years, 2 months ago) by bouyer
Branches: bouyer-xenamd64
Diff to: previous 1.18: preferred, colored; next MAIN 1.19: preferred, colored
Changes since revision 1.18: +48 -2
lines
Sync with HEAD
Revision 1.18.18.1: download - view: text, markup, annotated - select for diffs
Sun Nov 11 16:46:51 2007 UTC (17 years, 2 months ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.18: preferred, colored; next MAIN 1.19: preferred, colored
Changes since revision 1.18: +48 -2
lines
Sync with HEAD.
Revision 1.18.20.1: download - view: text, markup, annotated - select for diffs
Thu Nov 8 10:59:40 2007 UTC (17 years, 2 months ago) by matt
Branches: matt-armv6
CVS tags: matt-armv6-prevmlocking
Diff to: previous 1.18: preferred, colored; next MAIN 1.19: preferred, colored
Changes since revision 1.18: +48 -2
lines
sync with -HEAD
Revision 1.19: download - view: text, markup, annotated - select for diffs
Wed Nov 7 19:31:10 2007 UTC (17 years, 2 months ago) by garbled
Branches: MAIN
CVS tags: 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,
reinoud-bufcleanup-nbase,
reinoud-bufcleanup-base,
nick-net80211-sync-base,
nick-net80211-sync,
mjf-devfs-base,
matt-armv6-nbase,
matt-armv6-base,
keiichi-mipv6-nbase,
keiichi-mipv6-base,
keiichi-mipv6,
jmcneill-pm-base,
hpcarm-cleanup-base,
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
Branch point for: mjf-devfs2
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +48 -2
lines
Convert ofppc to the shared ofw_autoconf.c
Revision 1.15.2.2: download - view: text, markup, annotated - select for diffs
Mon Sep 3 14:29:02 2007 UTC (17 years, 4 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.15.2.1: preferred, colored; branchpoint 1.15: preferred, colored
Changes since revision 1.15.2.1: +34 -2
lines
sync with head.
Revision 1.17.24.1: download - view: text, markup, annotated - select for diffs
Mon Mar 12 05:50:08 2007 UTC (17 years, 10 months ago) by rmind
Branches: yamt-idlelwp
Diff to: previous 1.17: preferred, colored; next MAIN 1.18: preferred, colored
Changes since revision 1.17: +34 -2
lines
Sync with HEAD.
Revision 1.18: download - view: text, markup, annotated - select for diffs
Wed Feb 28 20:30:57 2007 UTC (17 years, 10 months ago) by macallan
Branches: MAIN
CVS tags: yamt-x86pmap-base4,
yamt-x86pmap-base3,
yamt-x86pmap-base2,
yamt-x86pmap-base,
yamt-x86pmap,
yamt-idlelwp-base8,
vmlocking-base,
thorpej-atomic-base,
thorpej-atomic,
reinoud-bufcleanup,
ppcoea-renovation-base,
ppcoea-renovation,
nick-csl-alignment-base5,
nick-csl-alignment-base,
nick-csl-alignment,
mjf-ufs-trans-base,
mjf-ufs-trans,
matt-mips64-base,
matt-mips64,
jmcneill-base,
hpcarm-cleanup
Branch point for: vmlocking,
mjf-devfs,
matt-armv6,
jmcneill-pm,
bouyer-xenamd64
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +34 -2
lines
add OF_setprop()
Revision 1.15.2.1: download - view: text, markup, annotated - select for diffs
Wed Jun 21 14:55:11 2006 UTC (18 years, 7 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +3 -2
lines
sync with head.
Revision 1.16.2.1: download - view: text, markup, annotated - select for diffs
Wed Feb 1 14:51:31 2006 UTC (18 years, 11 months ago) by yamt
Branches: yamt-uio_vmspace
Diff to: previous 1.16: preferred, colored; next MAIN 1.17: preferred, colored
Changes since revision 1.16: +3 -2
lines
sync with head.
Revision 1.17: download - view: text, markup, annotated - select for diffs
Sun Jan 22 22:53:56 2006 UTC (19 years ago) by ross
Branches: MAIN
CVS tags: yamt-uio_vmspace-base5,
yamt-splraiseipl-base5,
yamt-splraiseipl-base4,
yamt-splraiseipl-base3,
yamt-splraiseipl-base2,
yamt-splraiseipl-base,
yamt-splraiseipl,
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,
wrstuden-fixsa-newbase,
wrstuden-fixsa-base-1,
wrstuden-fixsa-base,
wrstuden-fixsa,
simonb-timecounters-base,
simonb-timecounters,
simonb-timcounters-final,
rpaulo-netinet-merge-pcb-base,
rpaulo-netinet-merge-pcb,
post-newlock2-merge,
peter-altq-base,
peter-altq,
newlock2-nbase,
newlock2-base,
newlock2,
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,
gdamore-uart-base,
gdamore-uart,
elad-kernelauth-base,
elad-kernelauth,
chap-midi-nbase,
chap-midi-base,
chap-midi,
ad-audiomp-base,
ad-audiomp,
abandoned-netbsd-4-base,
abandoned-netbsd-4
Branch point for: yamt-idlelwp
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +3 -2
lines
Work around a PIBS bug: OF_write() doesn't get a returned count.
Revision 1.16: download - view: text, markup, annotated - select for diffs
Sun Dec 11 12:18:46 2005 UTC (19 years, 1 month ago) by christos
Branches: MAIN
Branch point for: yamt-uio_vmspace
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +2 -2
lines
merge ktrace-lwp.
Revision 1.12.2.4: download - view: text, markup, annotated - select for diffs
Thu Nov 10 13:58:26 2005 UTC (19 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.12.2.3: preferred, colored; next MAIN 1.13: preferred, colored
Changes since revision 1.12.2.3: +40 -40
lines
Sync with HEAD. Here we go again...
Revision 1.15: download - view: text, markup, annotated - select for diffs
Thu Jun 2 17:07:30 2005 UTC (19 years, 7 months ago) by matt
Branches: 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,
thorpej-vnode-attr-base,
thorpej-vnode-attr,
ktrace-lwp-base
Branch point for: yamt-lazymbuf
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +40 -40
lines
constify and adapt for newly enabled warnings.
Revision 1.12.2.3: download - view: text, markup, annotated - select for diffs
Tue Sep 21 13:20:49 2004 UTC (20 years, 4 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.12.2.2: preferred, colored
Changes since revision 1.12.2.2: +2 -2
lines
Fix the sync with head I botched.
Revision 1.12.2.2: download - view: text, markup, annotated - select for diffs
Sat Sep 18 14:39:20 2004 UTC (20 years, 4 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.12.2.1: preferred, colored
Changes since revision 1.12.2.1: +0 -0
lines
Sync with HEAD.
Revision 1.12.2.1: download - view: text, markup, annotated - select for diffs
Tue Aug 3 10:39:37 2004 UTC (20 years, 5 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +24 -71
lines
Sync with HEAD
Revision 1.14: download - view: text, markup, annotated - select for diffs
Sat Sep 27 04:44:42 2003 UTC (21 years, 3 months ago) by matt
Branches: MAIN
CVS tags: yamt-km-base4,
yamt-km-base3,
yamt-km-base2,
yamt-km-base,
yamt-km,
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,
kent-audio2-base,
kent-audio2,
kent-audio1-beforemerge,
kent-audio1-base,
kent-audio1
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +21 -72
lines
ANSIfy.
Revision 1.13: download - view: text, markup, annotated - select for diffs
Tue Jul 15 02:54:48 2003 UTC (21 years, 6 months ago) by lukem
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +5 -1
lines
__KERNEL_RCSID()
Revision 1.12: download - view: text, markup, annotated - select for diffs
Wed Apr 2 02:47:19 2003 UTC (21 years, 9 months ago) by thorpej
Branches: MAIN
Branch point for: ktrace-lwp
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +11 -9
lines
Use PAGE_SIZE rather than NBPG.
Revision 1.10.2.1: download - view: text, markup, annotated - select for diffs
Thu Jan 10 19:48:07 2002 UTC (23 years ago) by thorpej
Branches: kqueue
Diff to: previous 1.10: preferred, colored; next MAIN 1.11: preferred, colored
Changes since revision 1.10: +7 -3
lines
Sync kqueue branch with -current.
Revision 1.10.4.1: download - view: text, markup, annotated - select for diffs
Mon Oct 1 12:41:44 2001 UTC (23 years, 3 months ago) by fvdl
Branches: thorpej-devvp
Diff to: previous 1.10: preferred, colored; next MAIN 1.11: preferred, colored
Changes since revision 1.10: +7 -3
lines
Catch up with -current.
Revision 1.11.4.2: download - view: text, markup, annotated - select for diffs
Mon Sep 24 13:22:34 2001 UTC (23 years, 3 months ago) by wiz
Branches: nathanw_sa
Diff to: previous 1.11.4.1: preferred, colored; branchpoint 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11.4.1: +679 -0
lines
va_{start,end} audit:
Make sure that each va_start has one and only one matching va_end,
especially in error cases.
If the va_list is used multiple times, do multiple va_starts/va_ends.
If a function gets va_list as argument, don't let it use va_end (since
it's the callers responsibility).
Improved by comments from enami and christos -- thanks!
Heimdal/krb4/KAME changes already fed back, rest to follow.
Inspired by, but not not based on, OpenBSD.
Revision 1.11.4.1
Mon Sep 24 13:22:33 2001 UTC (23 years, 3 months ago) by wiz
Branches: nathanw_sa
FILE REMOVED
Changes since revision 1.11: +0 -679
lines
file openfirm.c was added on branch nathanw_sa on 2001-09-24 13:22:34 +0000
Revision 1.11: download - view: text, markup, annotated - select for diffs
Mon Sep 24 13:22:33 2001 UTC (23 years, 3 months ago) by wiz
Branches: MAIN
CVS tags: thorpej-mips-cache-base,
thorpej-mips-cache,
thorpej-devvp-base3,
thorpej-devvp-base2,
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,
nathanw_sa_end,
nathanw_sa_before_merge,
nathanw_sa_base,
kqueue-beforemerge,
kqueue-base,
kqueue-aftermerge,
ifpoll-base,
gmcgarry_ucred_base,
gmcgarry_ucred,
gmcgarry_ctxsw_base,
gmcgarry_ctxsw,
gehenna-devsw-base,
gehenna-devsw,
fvdl_fs64_base,
eeh-devprop-base,
eeh-devprop
Branch point for: nathanw_sa
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +7 -3
lines
va_{start,end} audit:
Make sure that each va_start has one and only one matching va_end,
especially in error cases.
If the va_list is used multiple times, do multiple va_starts/va_ends.
If a function gets va_list as argument, don't let it use va_end (since
it's the callers responsibility).
Improved by comments from enami and christos -- thanks!
Heimdal/krb4/KAME changes already fed back, rest to follow.
Inspired by, but not not based on, OpenBSD.
Revision 1.6.2.1: download - view: text, markup, annotated - select for diffs
Thu Jun 21 19:32:33 2001 UTC (23 years, 7 months ago) by nathanw
Diff to: previous 1.6: preferred, colored; next MAIN 1.7: preferred, colored
Changes since revision 1.6: +9 -8
lines
Catch up to -current.
Revision 1.10: download - view: text, markup, annotated - select for diffs
Tue Jun 19 12:02:58 2001 UTC (23 years, 7 months ago) by simonb
Branches: MAIN
CVS tags: thorpej-devvp-base,
pre-chs-ubcperf,
post-chs-ubcperf
Branch point for: thorpej-devvp,
kqueue
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +4 -5
lines
Add/change prototypes so that macpcc builds with -Wstrict-prototypes.
Revision 1.9: download - view: text, markup, annotated - select for diffs
Wed Jun 13 06:01:50 2001 UTC (23 years, 7 months ago) by simonb
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +3 -3
lines
Add a port to IBM's PPC405GP Reference Board (the "walnut")
by Eduardo Horvath and Simon Burge of Wasabi Systems.
IBM 4xx series CPU features:
- New pmap and revised trap handler.
- Support on-chip timers, PCI controller, UARTs
- Framework for on-chip ethernet and watchdog timer.
General PowerPC features:
- Add in-kernel PPC floating point emulation
- New in{,4}_cksum that is between 1.5 and 5 times faster than the
old version depending on CPU type.
General changes:
- Kernel support for generic dbsym-style symbols.
Revision 1.8: download - view: text, markup, annotated - select for diffs
Sun Jun 10 15:05:44 2001 UTC (23 years, 7 months ago) by tsubai
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +1 -3
lines
libkern.h is included in systm.h. Not needed here.
Revision 1.7: download - view: text, markup, annotated - select for diffs
Fri Jun 8 00:21:45 2001 UTC (23 years, 7 months ago) by matt
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +6 -2
lines
Fix warning about braces & if. Include libkern.h for strncpy prototype
Revision 1.4.8.2: download - view: text, markup, annotated - select for diffs
Fri Dec 8 09:30:18 2000 UTC (24 years, 1 month ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.4.8.1: preferred, colored; branchpoint 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4.8.1: +1 -1
lines
Sync with HEAD.
Revision 1.6: download - view: text, markup, annotated - select for diffs
Wed Nov 22 18:18:32 2000 UTC (24 years, 2 months ago) by wiz
Branches: MAIN
CVS tags: thorpej_scsipi_nbase,
thorpej_scsipi_beforemerge,
thorpej_scsipi_base
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +2 -2
lines
Change OF_nextprop to match prototype change to void *
(Please don't change prototypes without changing the corresponding
functions!)
Revision 1.4.8.1: download - view: text, markup, annotated - select for diffs
Wed Nov 22 16:01:29 2000 UTC (24 years, 2 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +31 -1
lines
Sync with HEAD.
Revision 1.5: download - view: text, markup, annotated - select for diffs
Tue Nov 14 21:22:44 2000 UTC (24 years, 2 months ago) by matt
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +31 -1
lines
Add support for /dev/openfirm.
Add OF_nextprop support.
Revision 1.4: download - view: text, markup, annotated - select for diffs
Sun Jan 10 10:24:16 1999 UTC (26 years ago) by tsubai
Branches: MAIN
CVS tags: wrstuden-devbsize-base,
wrstuden-devbsize-19991221,
wrstuden-devbsize,
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,
netbsd-1-4-base,
netbsd-1-4-RELEASE,
netbsd-1-4-PATCH003,
netbsd-1-4-PATCH002,
netbsd-1-4-PATCH001,
netbsd-1-4,
minoura-xpg4dl-base,
minoura-xpg4dl,
kame_14_19990705,
kame_14_19990628,
kame_141_19991130,
kame,
fvdl-softdep-base,
fvdl-softdep,
comdex-fall-1999-base,
comdex-fall-1999,
chs-ubc2-newbase,
chs-ubc2-base,
chs-ubc2
Branch point for: thorpej_scsipi
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +20 -18
lines
Fix void * arithmetic.
Revision 1.3: download - view: text, markup, annotated - select for diffs
Sun Nov 15 19:53:25 1998 UTC (26 years, 2 months ago) by tsubai
Branches: MAIN
CVS tags: kenh-if-detach-base,
kenh-if-detach
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +7 -1
lines
Restrict the length of return value within buflen.
Revision 1.2: download - view: text, markup, annotated - select for diffs
Mon Feb 2 21:02:30 1998 UTC (26 years, 11 months ago) by thorpej
Branches: MAIN
CVS tags: eeh-paddr_t-base,
eeh-paddr_t,
chs-ubc-base,
chs-ubc
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +27 -1
lines
Implement OF_getproplen().
Revision 1.1: download - view: text, markup, annotated - select for diffs
Mon Sep 30 16:34:52 1996 UTC (28 years, 3 months ago) by ws
Branches: MAIN
PowerPC port
CVSweb <webmaster@jp.NetBSD.org>