Age | Commit message (Collapse) | Author |
|
/cpus openfirmware node of the new world macs, and only have one cpu node.
We look at a register of the memory controller called hammerhead for the
arbitration bit being set indicating a two way machine. Quad processor
old worlds made by e.g. Daystar Digital would require a different heurisitic.
This heuristic comes from linux/netbsd.
ok kettenis@ and drahn@
|
|
ok gwk@
|
|
didn't commit this bit, so it is still ok drahn@, gwk@.
|
|
ok drahn@, gwk@
|
|
|
|
correctly match target 19.
ok deraadt@
|
|
least) "scsi" controllers give a target/port number, not a kernel sd#.
So, translate. We might later want to do the same translation for IDE as
well, but perhaps not until after people test a bit more; ok dlg
|
|
dbdma_alloc, and mapiodev, and some whitespace/long line cleanup.
Tested on 9500MP and 9600MP.
ok martin@
|
|
deraadt@.
"reads right" deraadt@
|
|
of new fields in the future is less disruptive. This is done similar
to how struct proc is handled for ps(1). ok jmc (man page changes)
tested fkr simon, and more suggestions from millert
|
|
MULTIPROCESSOR. From now on sprg0 holds a pointer to struct cpuinfo, which
is used to spill registers to during trap instead of the globals we used to
use for that purpose. Bits and pieces from NetBSD. Help from drahn@ and art@.
Tested by xsa@, thib@, miod@, gwk@, deraadt@.
ok drahn@, gwk@
|
|
routine, and check the return of the mapiodev, and dbdma_create functions.
Tested on Power Macintosh 9500MP and a 9600MP.
"the diff looks fine to me." dlg@
|
|
ok miod@
|
|
tested by Alastair Poole.
|
|
while there, remove explicit global variable initializations to zero,
and appease the gods by removing the most ludicrous spurious casts.
No functional change (except for code shrinkage).
|
|
commands are set; also add a delay between adb_intr_cuda() and adb_soft_intr()
while polling, as this seems to be necessary on some models;
ok gwk@ drahn@
|
|
rpm-fans.
|
|
|
|
Tickling the SMU when we don't set the fans running is bad since this
prevents the fans to spin up automatically causing the machine to overheat.
|
|
mpf@ on pppoe; drahn@ ok
|
|
Aaron Linville <aaron@linville.org> in PR 5398.
|
|
and is he trying to emulate them?
|
|
|
|
if we attempt to clear the wake on ac loss bit just before shutting down it
yo-yo's found by claudio@, tested by drahn@ on early imac, and myself on
a 9600.
ok drahn@
|
|
machine for the purposes of printing model information durring boot and
the hw.vendor/product sysctls. Turns out the apple didnt use the same
format in the early imacs as they did in the latter new world machines
resulting in NULL strings as found by drahn@. In this case and all future
cases where we dont understand the format the default is to print whats
found in the name property without interpertation.
ok drahn@
|
|
rt and such; tested and ok miod drahn
|
|
Apparently some machines don't detect a clean (i.e. software initiated)
shutdown; and ignore the 'wake on AC loss' bit, meaning they wake up
immediatly after being told to shutdown e.g. via shutdown -hp.
So now we continue preserve the wake on AC loss behaivour, howerver if we
initiate a clean shutdown we clear this bit so that it the machine does not
immediately power back up again.
ok kettenis@
|
|
for a bare FAT12/16/32 filesystem. If one is found, spoof it as 'i'.
This enables iPod shuffles and other umass devices that are shipped
with a bare FAT32 filesystem to be used as install media. And
generally makes things easier for the user just trying to mount some
media, e.g. floppies.
Does not make it safe to write a disklabel or MBR on such a device!
That will still obliterate the FAT filesystem.
Help and suggestions from tom@ and deraadt@. Feedback and suggestions
for future enhancements from espie@ mickey@ and peter@.
ok tom@ deraadt@
|
|
|
|
the openfirmware tree as found in old world macs. Also utilize the
compatible property to print nice model information in the dmesg
and the sysctl hw.vendor/product fields.
mainbus0 (root): model Power Macintosh 9500
hw.vendor=Apple Computer, Inc.
hw.product=Power Macintosh 9500
Note this is from a 9600, this information will reflect the architecture in
this case both the 9500 and 9600 are from tsunami architecture and differ
only in the processor daughtercard.
Tested by myself and martin@ on old world machines, and by martin@ on
a new world.
ok martin@, drahn@
|
|
on AC loss feature of the power management IC. Make this the default
behaviour when booting OpenBSD from now on.
This will only affect machines that have the power suddenly cut, Performing
a shutdown requesting power down will clear this mode and its then possible
to remove the power cord, and plug it back in without the machine comming
back on automatically.
Tested by myself, drahn
ok kettenis, drahn.
|
|
|
|
ok drahn@
|
|
ok drahn@
|
|
operating on as bytes, not as the number of words or dwords.
ok drahn@ kettenis@
|
|
definition. switch amd64 and i386 to the conf.h version, and add it to
macppc.
original diff ok gwk@ tweaks and ok miod@
|
|
right now that are supposed to be atomic with respect to interrupts and
SMP: atomic_setbits_int and atomic_clearbits_int.
All architectures other than i386 and amd64 get dummy implementations
since at first we'll be replacing operations that are done with
"a |= bit" and "a &= ~bit" today. More proper implementations will follow
kettenis@, miod@ ok
|
|
otherwise if openfirmware has not touched the device yet, the kernel
faults on the alternate mappings that are created. ok dlg@
|
|
of the disk. Fixes the creation of spurious 'i' partitions on new iPod
Shuffle. And other devices with no MBR, just a FAT32 filesystem.
Pointed out most recently by Stephan A. Rickauer for his sixth
generation, clip-on iPod shuffle.
Fix tested by Stephan.
ok pedro@ tom@ miod@ 'nice' deraadt@
|
|
|
|
some whitespace nits. No binary change.
ok drahn@
|
|
|
|
|
|
0 -> NULL fixes.
From brad@
Tested on PM 9600MP.
|
|
While here fix some spacing too.
Bus probing and some commands such as eject tested on a Power
Macintosh 9600, still unable to mount a cdrom on a SONY CD-ROM
model CDU-8003A.
|
|
From brad@. Lots more spacing cleanup by myself.
Tested on Power Macintosh 9600
|
|
|
|
|
|
ok deraadt
|
|
|