Commit Graph

163553 Commits

Author SHA1 Message Date
macallan
56fd80e18a pull in ofw_subr.c for some convenience OpenFirmware routines 2007-11-19 03:26:04 +00:00
macallan
3cb71681aa do as macppc does and pass a bunch of parameters to PCI console framebuffers
With this we no longer need machine-dependent code in framebuffer console
drivers and we can use genfb at pci for otherwise unsupported graphics
chips as long as there's firmware support.
2007-11-19 02:52:56 +00:00
macallan
f8e81531fa put the physical address of each psycho's memory range into a device
property so we can look it up in device_register() later on
ok'ed by martin
2007-11-19 02:45:50 +00:00
ad
2783731b63 Set curlwp for the boot CPU before entering main(). 2007-11-19 02:12:11 +00:00
agc
fe6dd62563 Note to self - document in comments the reasons for doing certain things.
Revert Max LBA calculation when returning the Maximum LBA from the target
to the iinitiator, following an email conversation with Jonathan Kollasch,
who points out a number of things:

+ the NetBSD scsipi driver reads the value returned by the drive and adds
one to it, so that standard SCSI drives return the 0-based Max LBA in a
READ CAPACITY command.

+ it is up to the initiator to add 1 to the Max LBA to find out the size
of the LUN (Jonathan verified this by using the UNH iSCSI initiator on
to a NetBSD target)

+ an analogous change to the NetBSD initiator (revision 1.4 of
iscsifs.c) is needed.
2007-11-18 23:52:19 +00:00
agc
8b0e0ddc0d The iSCSI target returns the 0-based Max LBA in the READ_CAPACITY command,
and we need to add 1 to it to get the size of the LUN.

Revert Max LBA calculation when returning the Maximum LBA from the target
to the iinitiator, following an email conversation with Jonathan Kollasch,
who points out a number of things:

+ the NetBSD scsipi driver reads the value returned by the drive and adds
one to it, so that standard SCSI drives return the 0-based Max LBA in a
READ CAPACITY command.

+ it is up to the initiator to add 1 to the Max LBA to find out the size
of the LUN (Jonathan verified this by using the UNH iSCSI initiator on
to a NetBSD target)

+ an analogous change to the NetBSD target (revision 1.34 of
disk.c) is needed.
2007-11-18 23:52:13 +00:00
yamt
563b4c7f95 add newfs_ext2fs.debug 2007-11-18 22:45:02 +00:00
apb
02c42d6bae Remove unwanted ">" from a printed message. 2007-11-18 19:19:00 +00:00
bouyer
29d8eba17f Properly setup the IO APIC for ISA and pciide compat interrupts too.
Makes ACPI kernels works again with pciide controllers in compat mode.
2007-11-18 18:44:17 +00:00
ad
2795528241 #include <sys/atomic.h> instead of local prototypes. 2007-11-18 18:09:10 +00:00
ad
928d0fee5e Pull in atomic.h from the thorpej-atomic branch. 2007-11-18 18:08:35 +00:00
christos
eb90df6853 From Marco Trillo (marcotrillo at gmail dot com):
Add Advanced power management in atactl(8)
2007-11-18 17:48:21 +00:00
pooka
8dd9b67755 Don't bother tracking opencount and try to close file handles in
the close method - simply just wait for inactive and do it there.
2007-11-18 17:41:55 +00:00
ad
82a0bcef97 Work around issues with pool_cache on sparc. 2007-11-18 16:27:42 +00:00
skrll
4f3467d61e Remove unused include.
Fix unwind info with S/ENTRY/LEAF_&/
2007-11-18 14:11:25 +00:00
he
842094660b Add an overlooked define of IPL_ZS, matching with splzs(). 2007-11-18 14:01:28 +00:00
he
3d297e5d56 Ensure that file ends with a newline. 2007-11-18 13:52:44 +00:00
skrll
8ed2bd6ec6 Generate correct unwind info for syscall stubs by using LEAF_ENTRY instead
of ENTRY(foo,0) so that gdb can backtrace through the stubs.
2007-11-18 13:25:39 +00:00
skrll
ea7265c03e First cut at hppa gdb support. Not enabled yet. 2007-11-18 12:45:25 +00:00
jnemeth
237d2dd7e7 fix 'm' used unitialized 2007-11-18 12:40:15 +00:00
skrll
caacd2c467 Typo in comment. From OpenBSD. 2007-11-18 12:18:21 +00:00
jnemeth
280ec9339f remove Adam Glass as a developer as per his request 2007-11-18 10:53:03 +00:00
jdc
ca32a8e578 We don't need to call __init_getch here, as it is called from
screen.c:newterm().
2007-11-18 10:01:04 +00:00
agc
f0f1785f5a Long, long ago, in a galaxy close to hand, a typo was made. Fix it. 2007-11-18 09:48:49 +00:00
tsutsui
b069af69e5 Remove complete items and a non cobalt specific one. 2007-11-18 07:14:57 +00:00
tsutsui
67c9d310f8 Several minor fixes:
- replace a magic number with a macro
- fix several printf format
- fix possble block sizes for zap_old_sblock()
- use err(3) rather than errx(3) + strerror(errno)
- fix a typo
- misc cosmetics
2007-11-18 07:11:39 +00:00
isaki
6ab6aa4fcf Use the same prototypes as libx68k.h. 2007-11-18 05:00:08 +00:00
isaki
ed972ce998 Correct filename in a comment. 2007-11-18 04:59:51 +00:00
wiz
af2d5d85c1 Replace references to it(4) with ones for itesio(4). 2007-11-18 01:58:19 +00:00
agc
3d98641f85 Fix from Jonathan Kollasch - avoid an intermediate 32-bit value in the
calculation of the size of the storage file.

Remove some dead code.
2007-11-17 23:35:28 +00:00
xtraeme
8ac95dc8e2 Improve description of sme_refresh and state. 2007-11-17 23:10:00 +00:00
pooka
61b1e9a615 Make puffs_updatenode() take a puffs_node instead of a vnode. This
way we don't need to worry if a vnode has been reclaimed from under
us.
2007-11-17 21:55:29 +00:00
pooka
63e9f065b3 Start playing around with vnode locks. For now, do the very easy
thing and release locks before the userspace wait for operations
which release the lock before exit from the method in any case.
However, releasing the lock after inserting the request on the
operation queue gives us proper ordering possibilities in userspace
(at least if that bit were implemented, but I don't think there
any file system in userspace that depends on kernel locking and
probably there never should be one).

inspired by a conversation with Nacho Navarro
2007-11-17 21:30:48 +00:00
pooka
2632ba6df4 Implement cv_timedwait(), requested by Reinoud. 2007-11-17 20:50:18 +00:00
dsl
6748a0d09a Remove syscall_fancy.
Use MI code for SYS_SYSCALL and SYS___SYSCALL.
Optimise code to minimise normal path.
2007-11-17 19:48:40 +00:00
ad
705e179fb2 Reserve the top 4 bits of `boothowto' for MD flags. 2007-11-17 18:12:31 +00:00
oster
d5020b9a35 Nuke debugging output that is a) misleading at best, and
b) often just wrong.  Thanks to wiz for catching this.
2007-11-17 18:11:19 +00:00
pooka
ac5e27103d Implement a biodone callback for async writes similar to reads and
use that when possible.
2007-11-17 18:09:04 +00:00
pooka
803c088ce0 fix some debug prints 2007-11-17 18:03:15 +00:00
macallan
376f378895 deal with macppc not defining OPENPIC 2007-11-17 18:02:42 +00:00
pooka
dac2b0c689 fix request size 2007-11-17 17:12:11 +00:00
macallan
a11007a5fa have uninorth and bandit pull in their resp. IPI support stuff 2007-11-17 17:07:57 +00:00
tsutsui
2bb17347c8 Note newfs_ext2fs(8). 2007-11-17 17:05:04 +00:00
macallan
40e17603bf sprinkle #ifdef OPENPIC so SMP-kernels without OpenPIC support build again. 2007-11-17 17:02:55 +00:00
tsutsui
cd3d4b7684 Add newfs_ext2fs(8). 2007-11-17 17:00:15 +00:00
tsutsui
d047ce663b Descend into newfs_ext2fs(8). 2007-11-17 16:58:30 +00:00
tsutsui
f8b02b9cdf Add a dumb but BSD-licensed newfs_ext2fs(8) command.
This is based on the newfs(8) command for ffs, but
most ext2fs specific part is written from scratch.

Tested on alpha, cobalt, i386 and sgimips with some disks and vnd(4),
and at least cobalt's firmware can load boot files from an ext2fs
E2FS_REV0 partition created by this native newfs_ext2fs(8) command.

Closes PR bin/16175.
2007-11-17 16:50:25 +00:00
pooka
4b2334142b puffs_mount():
* initialize values better
* always go through "fail" to see if puffs_daemon() needs to be
  woken up
* open device r/w instead of r/o
2007-11-17 16:06:18 +00:00
ad
e15eca1b5a Make it compile. 2007-11-17 15:28:37 +00:00
jmmv
ba0cf3bfa8 Fix ATF's entry to reflect the 0.3 release. Noted by wiz@. 2007-11-17 13:53:51 +00:00