On Wed, Dec 05, 2018 at 06:14:34AM +0200, Lars Noodén wrote:
> I'm noticing some trouble with branching in sed(1) now. Leaving the
> label empty should branch to the end of the script:
>
> [2addr]b [label]
> Branch to the : function with the specified label. If the label
> is not specified, branch to the end of the script.
>
> However, in practice, when I try branching without a label, I get an
> error about an undefined label instead of it branching to the end of
> the script:
>
> $ echo -e "START\nfoo\nbar\nEND\nbaz\n" | sed -n '/^START/,/^END/b;p;'
> sed: 1: "/^START/,/^END/b;p;": undefined label ''
>
> Adding a label works as expected:
>
> $ echo -e "START\nfoo\nbar\nEND\nbaz\n" | sed -n '/^START/,/^END/ba;p;:a;
No, adding the newlines makes it work. The label has nothing to do with
it.
The label (empty or not) has to be delimited by a newline. In your
first script, you could also have used
sed -n -e '/^START/,/^END/b' -e p
(each -e inserts a newline in the script), or more simply
sed '/^START/,/^END/d'
This is AFAIK standard behaviour.
>From POSIX:
Command verbs other than {, a, b, c, i, r, t, w, :, and # can be
followed by a <semicolon>, optional <blank> characters, and
another command verb.
Andreas
>
> If I have not made a mistake with the short script above then there
> seems to be a discrepancy between the behavior described in the manual
> and the actual behavior.
>
> dmesg below
> /Lars
>
> 1 dev 0 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 10, address
> 00:00:24:d1:fa:50
> ukphy4 at vr4 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI
> 0x004063, model 0x0034
> vr5 at pci1 dev 1 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 6,
> address 00:00:24:d1:fa:51
> ukphy5 at vr5 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI
> 0x004063, model 0x0034
> vr6 at pci1 dev 2 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 10,
> address 00:00:24:d1:fa:52
> ukphy6 at vr6 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI
> 0x004063, model 0x0034
> vr7 at pci1 dev 3 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 6,
> address 00:00:24:d1:fa:53
> ukphy7 at vr7 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI
> 0x004063, model 0x0034
> ral0 at pci0 dev 17 function 0 "Ralink RT2561S" rev 0x00: irq 15,
> address 00:12:0e:61:54:68
> ral0: MAC/BBP RT2561C, RF RT5225
> pcib0 at pci0 dev 20 function 0 "AMD CS5536 ISA" rev 0x03
> pciide0 at pci0 dev 20 function 2 "AMD CS5536 IDE" rev 0x01: DMA,
> channel 0 wired to compatibility, channel 1 wired to compatibility
> wd0 at pciide0 channel 0 drive 0: <SanDisk SDCFH-004G>
> wd0: 1-sector PIO, LBA48, 3825MB, 7835184 sectors
> wd1 at pciide0 channel 0 drive 1: <ELITE PRO CF CARD 4GB>
> wd1: 1-sector PIO, LBA, 3823MB, 7831152 sectors
> wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
> wd1(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 2
> pciide0: channel 1 ignored (disabled)
> ohci0 at pci0 dev 21 function 0 "AMD CS5536 USB" rev 0x02: irq 7,
> version 1.0, legacy support
> ehci0 at pci0 dev 21 function 1 "AMD CS5536 USB" rev 0x02: irq 7
> usb0 at ehci0: USB revision 2.0
> uhub0 at usb0 configuration 1 interface 0 "AMD EHCI root hub" rev
> 2.00/1.00 addr 1
> isa0 at pcib0
> isadma0 at isa0
> com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
> com0: console
> com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
> pckbc0 at isa0 port 0x60/5 irq 1 irq 12
> pckbc0: unable to establish interrupt for irq 12
> pckbd0 at pckbc0 (kbd slot)
> wskbd0 at pckbd0: console keyboard
> npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
> usb1 at ohci0: USB revision 1.0
> uhub1 at usb1 configuration 1 interface 0 "AMD OHCI root hub" rev
> 1.00/1.00 addr 1
> softraid0 at root
> scsibus0 at softraid0: 256 targets
> sd0 at scsibus0 targ 1 lun 0: <OPENBSD, SR RAID 0, 006> SCSI2 0/direct fixed
> sd0: 2054MB, 512 bytes/sector, 4208128 sectors
> sd1 at scsibus0 targ 2 lun 0: <OPENBSD, SR RAID 0, 006> SCSI2 0/direct fixed
> sd1: 5181MB, 512 bytes/sector, 10610944 sectors
> root on rd0a swap on rd0b dump on rd0b
> syncing disks... done
> OpenBSD 6.4-current (GENERIC) #1024: Wed Nov 28 22:33:13 MST 2018
> [email protected]:/usr/src/sys/arch/i386/compile/GENERIC
> real mem = 536363008 (511MB)
> avail mem = 511528960 (487MB)
> mpath0 at root
> scsibus0 at mpath0: 256 targets
> mainbus0 at root
> bios0 at mainbus0: date 20/70/03, BIOS32 rev. 0 @ 0xfac40
> pcibios0 at bios0: rev 2.0 @ 0xf0000/0x10000
> pcibios0: pcibios_get_intr_routing - function not supported
> pcibios0: PCI IRQ Routing information unavailable.
> pcibios0: PCI bus #1 is the last bus
> bios0: ROM list: 0xc8000/0xa800
> cpu0 at mainbus0: (uniprocessor)
> cpu0: Geode(TM) Integrated Processor by AMD PCS ("AuthenticAMD"
> 586-class) 500 MHz, 05-0a-02
> cpu0: FPU,DE,PSE,TSC,MSR,CX8,SEP,PGE,CMOV,CFLUSH,MMX,MMXX,3DNOW2,3DNOW
> mtrr: K6-family MTRR support (2 registers)
> amdmsr0 at mainbus0
> pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
> 0:20:0: io address conflict 0x6100/0x100
> 0:20:0: io address conflict 0x6200/0x200
> pchb0 at pci0 dev 1 function 0 "AMD Geode LX" rev 0x33
> glxsb0 at pci0 dev 1 function 2 "AMD Geode LX Crypto" rev 0x00: RNG AES
> vr0 at pci0 dev 6 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 11,
> address 00:00:24:cb:a9:24
> ukphy0 at vr0 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI
> 0x004063, model 0x0034
> vr1 at pci0 dev 7 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 5,
> address 00:00:24:cb:a9:25
> ukphy1 at vr1 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI
> 0x004063, model 0x0034
> vr2 at pci0 dev 8 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 9,
> address 00:00:24:cb:a9:26
> ukphy2 at vr2 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI
> 0x004063, model 0x0034
> vr3 at pci0 dev 9 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 12,
> address 00:00:24:cb:a9:27
> ukphy3 at vr3 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI
> 0x004063, model 0x0034
> ppb0 at pci0 dev 14 function 0 "TI PCI2250" rev 0x02
> pci1 at ppb0 bus 1
> vr4 at pci1 dev 0 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 10,
> address 00:00:24:d1:fa:50
> ukphy4 at vr4 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI
> 0x004063, model 0x0034
> vr5 at pci1 dev 1 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 6,
> address 00:00:24:d1:fa:51
> ukphy5 at vr5 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI
> 0x004063, model 0x0034
> vr6 at pci1 dev 2 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 10,
> address 00:00:24:d1:fa:52
> ukphy6 at vr6 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI
> 0x004063, model 0x0034
> vr7 at pci1 dev 3 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 6,
> address 00:00:24:d1:fa:53
> ukphy7 at vr7 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI
> 0x004063, model 0x0034
> ral0 at pci0 dev 17 function 0 "Ralink RT2561S" rev 0x00: irq 15,
> address 00:12:0e:61:54:68
> ral0: MAC/BBP RT2561C, RF RT5225
> glxpcib0 at pci0 dev 20 function 0 "AMD CS5536 ISA" rev 0x03: rev 3,
> 32-bit 3579545Hz timer, watchdog, gpio, i2c
> gpio0 at glxpcib0: 32 pins
> iic0 at glxpcib0
> pciide0 at pci0 dev 20 function 2 "AMD CS5536 IDE" rev 0x01: DMA,
> channel 0 wired to compatibility, channel 1 wired to compatibility
> wd0 at pciide0 channel 0 drive 0: <SanDisk SDCFH-004G>
> wd0: 1-sector PIO, LBA48, 3825MB, 7835184 sectors
> wd1 at pciide0 channel 0 drive 1: <ELITE PRO CF CARD 4GB>
> wd1: 1-sector PIO, LBA, 3823MB, 7831152 sectors
> wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
> wd1(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 2
> pciide0: channel 1 ignored (disabled)
> ohci0 at pci0 dev 21 function 0 "AMD CS5536 USB" rev 0x02: irq 7,
> version 1.0, legacy support
> ehci0 at pci0 dev 21 function 1 "AMD CS5536 USB" rev 0x02: irq 7
> usb0 at ehci0: USB revision 2.0
> uhub0 at usb0 configuration 1 interface 0 "AMD EHCI root hub" rev
> 2.00/1.00 addr 1
> isa0 at glxpcib0
> isadma0 at isa0
> com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
> com0: console
> com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
> pckbc0 at isa0 port 0x60/5 irq 1 irq 12
> pckbc0: unable to establish interrupt for irq 12
> pckbd0 at pckbc0 (kbd slot)
> wskbd0 at pckbd0: console keyboard
> pcppi0 at isa0 port 0x61
> spkr0 at pcppi0
> nsclpcsio0 at isa0 port 0x2e/2: NSC PC87366 rev 9: GPIO VLM TMS
> gpio1 at nsclpcsio0: 29 pins
> npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
> usb1 at ohci0: USB revision 1.0
> uhub1 at usb1 configuration 1 interface 0 "AMD OHCI root hub" rev
> 1.00/1.00 addr 1
> vscsi0 at root
> scsibus1 at vscsi0: 256 targets
> softraid0 at root
> scsibus2 at softraid0: 256 targets
> sd0 at scsibus2 targ 1 lun 0: <OPENBSD, SR RAID 0, 006> SCSI2 0/direct fixed
> sd0: 2054MB, 512 bytes/sector, 4208128 sectors
> sd1 at scsibus2 targ 2 lun 0: <OPENBSD, SR RAID 0, 006> SCSI2 0/direct fixed
> sd1: 5181MB, 512 bytes/sector, 10610944 sectors
> root on wd0a (9ea76622cbdc8473.a) swap on wd0b dump on wd0b
> vr5: restarting
> syncing disks... done
> OpenBSD 6.4-current (RAMDISK_CD) #1018: Mon Dec 3 22:07:19 MST 2018
> [email protected]:/usr/src/sys/arch/i386/compile/RAMDISK_CD
> real mem = 536408064 (511MB)
> avail mem = 517574656 (493MB)
> mainbus0 at root
> bios0 at mainbus0: date 20/70/03, BIOS32 rev. 0 @ 0xfac40
> pcibios0 at bios0: rev 2.0 @ 0xf0000/0x10000
> pcibios0: pcibios_get_intr_routing - function not supported
> pcibios0: PCI IRQ Routing information unavailable.
> pcibios0: PCI bus #1 is the last bus
> bios0: ROM list: 0xc8000/0xa800
> cpu0 at mainbus0: (uniprocessor)
> cpu0: Geode(TM) Integrated Processor by AMD PCS ("AuthenticAMD"
> 586-class) 500 MHz, 05-0a-02
> cpu0: FPU,DE,PSE,TSC,MSR,CX8,SEP,PGE,CMOV,CFLUSH,MMX,MMXX,3DNOW2,3DNOW
> pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
> 0:20:0: io address conflict 0x6100/0x100
> 0:20:0: io address conflict 0x6200/0x200
> pchb0 at pci0 dev 1 function 0 "AMD Geode LX" rev 0x33
> "AMD Geode LX Crypto" rev 0x00 at pci0 dev 1 function 2 not configured
> vr0 at pci0 dev 6 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 11,
> address 00:00:24:cb:a9:24
> ukphy0 at vr0 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI
> 0x004063, model 0x0034
> vr1 at pci0 dev 7 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 5,
> address 00:00:24:cb:a9:25
> ukphy1 at vr1 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI
> 0x004063, model 0x0034
> vr2 at pci0 dev 8 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 9,
> address 00:00:24:cb:a9:26
> ukphy2 at vr2 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI
> 0x004063, model 0x0034
> vr3 at pci0 dev 9 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 12,
> address 00:00:24:cb:a9:27
> ukphy3 at vr3 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI
> 0x004063, model 0x0034
> ppb0 at pci0 dev 14 function 0 "TI PCI2250" rev 0x02
> pci1 at ppb0 bus 1
> vr4 at pci1 dev 0 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 10,
> address 00:00:24:d1:fa:50
> ukphy4 at vr4 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI
> 0x004063, model 0x0034
> vr5 at pci1 dev 1 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 6,
> address 00:00:24:d1:fa:51
> ukphy5 at vr5 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI
> 0x004063, model 0x0034
> vr6 at pci1 dev 2 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 10,
> address 00:00:24:d1:fa:52
> ukphy6 at vr6 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI
> 0x004063, model 0x0034
> vr7 at pci1 dev 3 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 6,
> address 00:00:24:d1:fa:53
> ukphy7 at vr7 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI
> 0x004063, model 0x0034
> ral0 at pci0 dev 17 function 0 "Ralink RT2561S" rev 0x00: irq 15,
> address 00:12:0e:61:54:68
> ral0: MAC/BBP RT2561C, RF RT5225
> pcib0 at pci0 dev 20 function 0 "AMD CS5536 ISA" rev 0x03
> pciide0 at pci0 dev 20 function 2 "AMD CS5536 IDE" rev 0x01: DMA,
> channel 0 wired to compatibility, channel 1 wired to compatibility
> wd0 at pciide0 channel 0 drive 0: <SanDisk SDCFH-004G>
> wd0: 1-sector PIO, LBA48, 3825MB, 7835184 sectors
> wd1 at pciide0 channel 0 drive 1: <ELITE PRO CF CARD 4GB>
> wd1: 1-sector PIO, LBA, 3823MB, 7831152 sectors
> wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
> wd1(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 2
> pciide0: channel 1 ignored (disabled)
> ohci0 at pci0 dev 21 function 0 "AMD CS5536 USB" rev 0x02: irq 7,
> version 1.0, legacy support
> ehci0 at pci0 dev 21 function 1 "AMD CS5536 USB" rev 0x02: irq 7
> usb0 at ehci0: USB revision 2.0
> uhub0 at usb0 configuration 1 interface 0 "AMD EHCI root hub" rev
> 2.00/1.00 addr 1
> isa0 at pcib0
> isadma0 at isa0
> com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
> com0: console
> com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
> pckbc0 at isa0 port 0x60/5 irq 1 irq 12
> pckbc0: unable to establish interrupt for irq 12
> pckbd0 at pckbc0 (kbd slot)
> wskbd0 at pckbd0: console keyboard
> npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
> usb1 at ohci0: USB revision 1.0
> uhub1 at usb1 configuration 1 interface 0 "AMD OHCI root hub" rev
> 1.00/1.00 addr 1
> softraid0 at root
> scsibus0 at softraid0: 256 targets
> sd0 at scsibus0 targ 1 lun 0: <OPENBSD, SR RAID 0, 006> SCSI2 0/direct fixed
> sd0: 2054MB, 512 bytes/sector, 4208128 sectors
> sd1 at scsibus0 targ 2 lun 0: <OPENBSD, SR RAID 0, 006> SCSI2 0/direct fixed
> sd1: 5181MB, 512 bytes/sector, 10610944 sectors
> root on rd0a swap on rd0b dump on rd0b
> syncing disks... done
> OpenBSD 6.4-current (GENERIC) #1028: Mon Dec 3 21:49:53 MST 2018
> [email protected]:/usr/src/sys/arch/i386/compile/GENERIC
> real mem = 536363008 (511MB)
> avail mem = 511528960 (487MB)
> mpath0 at root
> scsibus0 at mpath0: 256 targets
> mainbus0 at root
> bios0 at mainbus0: date 20/70/03, BIOS32 rev. 0 @ 0xfac40
> pcibios0 at bios0: rev 2.0 @ 0xf0000/0x10000
> pcibios0: pcibios_get_intr_routing - function not supported
> pcibios0: PCI IRQ Routing information unavailable.
> pcibios0: PCI bus #1 is the last bus
> bios0: ROM list: 0xc8000/0xa800
> cpu0 at mainbus0: (uniprocessor)
> cpu0: Geode(TM) Integrated Processor by AMD PCS ("AuthenticAMD"
> 586-class) 500 MHz, 05-0a-02
> cpu0: FPU,DE,PSE,TSC,MSR,CX8,SEP,PGE,CMOV,CFLUSH,MMX,MMXX,3DNOW2,3DNOW
> mtrr: K6-family MTRR support (2 registers)
> amdmsr0 at mainbus0
> pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
> 0:20:0: io address conflict 0x6100/0x100
> 0:20:0: io address conflict 0x6200/0x200
> pchb0 at pci0 dev 1 function 0 "AMD Geode LX" rev 0x33
> glxsb0 at pci0 dev 1 function 2 "AMD Geode LX Crypto" rev 0x00: RNG AES
> vr0 at pci0 dev 6 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 11,
> address 00:00:24:cb:a9:24
> ukphy0 at vr0 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI
> 0x004063, model 0x0034
> vr1 at pci0 dev 7 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 5,
> address 00:00:24:cb:a9:25
> ukphy1 at vr1 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI
> 0x004063, model 0x0034
> vr2 at pci0 dev 8 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 9,
> address 00:00:24:cb:a9:26
> ukphy2 at vr2 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI
> 0x004063, model 0x0034
> vr3 at pci0 dev 9 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 12,
> address 00:00:24:cb:a9:27
> ukphy3 at vr3 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI
> 0x004063, model 0x0034
> ppb0 at pci0 dev 14 function 0 "TI PCI2250" rev 0x02
> pci1 at ppb0 bus 1
> vr4 at pci1 dev 0 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 10,
> address 00:00:24:d1:fa:50
> ukphy4 at vr4 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI
> 0x004063, model 0x0034
> vr5 at pci1 dev 1 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 6,
> address 00:00:24:d1:fa:51
> ukphy5 at vr5 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI
> 0x004063, model 0x0034
> vr6 at pci1 dev 2 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 10,
> address 00:00:24:d1:fa:52
> ukphy6 at vr6 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI
> 0x004063, model 0x0034
> vr7 at pci1 dev 3 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 6,
> address 00:00:24:d1:fa:53
> ukphy7 at vr7 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI
> 0x004063, model 0x0034
> ral0 at pci0 dev 17 function 0 "Ralink RT2561S" rev 0x00: irq 15,
> address 00:12:0e:61:54:68
> ral0: MAC/BBP RT2561C, RF RT5225
> glxpcib0 at pci0 dev 20 function 0 "AMD CS5536 ISA" rev 0x03: rev 3,
> 32-bit 3579545Hz timer, watchdog, gpio, i2c
> gpio0 at glxpcib0: 32 pins
> iic0 at glxpcib0
> pciide0 at pci0 dev 20 function 2 "AMD CS5536 IDE" rev 0x01: DMA,
> channel 0 wired to compatibility, channel 1 wired to compatibility
> wd0 at pciide0 channel 0 drive 0: <SanDisk SDCFH-004G>
> wd0: 1-sector PIO, LBA48, 3825MB, 7835184 sectors
> wd1 at pciide0 channel 0 drive 1: <ELITE PRO CF CARD 4GB>
> wd1: 1-sector PIO, LBA, 3823MB, 7831152 sectors
> wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
> wd1(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 2
> pciide0: channel 1 ignored (disabled)
> ohci0 at pci0 dev 21 function 0 "AMD CS5536 USB" rev 0x02: irq 7,
> version 1.0, legacy support
> ehci0 at pci0 dev 21 function 1 "AMD CS5536 USB" rev 0x02: irq 7
> usb0 at ehci0: USB revision 2.0
> uhub0 at usb0 configuration 1 interface 0 "AMD EHCI root hub" rev
> 2.00/1.00 addr 1
> isa0 at glxpcib0
> isadma0 at isa0
> com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
> com0: console
> com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
> pckbc0 at isa0 port 0x60/5 irq 1 irq 12
> pckbc0: unable to establish interrupt for irq 12
> pckbd0 at pckbc0 (kbd slot)
> wskbd0 at pckbd0: console keyboard
> pcppi0 at isa0 port 0x61
> spkr0 at pcppi0
> nsclpcsio0 at isa0 port 0x2e/2: NSC PC87366 rev 9: GPIO VLM TMS
> gpio1 at nsclpcsio0: 29 pins
> npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
> usb1 at ohci0: USB revision 1.0
> uhub1 at usb1 configuration 1 interface 0 "AMD OHCI root hub" rev
> 1.00/1.00 addr 1
> vscsi0 at root
> scsibus1 at vscsi0: 256 targets
> softraid0 at root
> scsibus2 at softraid0: 256 targets
> sd0 at scsibus2 targ 1 lun 0: <OPENBSD, SR RAID 0, 006> SCSI2 0/direct fixed
> sd0: 2054MB, 512 bytes/sector, 4208128 sectors
> sd1 at scsibus2 targ 2 lun 0: <OPENBSD, SR RAID 0, 006> SCSI2 0/direct fixed
> sd1: 5181MB, 512 bytes/sector, 10610944 sectors
> root on wd0a (9ea76622cbdc8473.a) swap on wd0b dump on wd0b
--
Andreas Kusalananda Kähäri,
National Bioinformatics Infrastructure Sweden (NBIS),
Uppsala University, Sweden.