Commit Graph

120982 Commits

Author SHA1 Message Date
tsutsui d28b149862 Pull more cleanups from OpenBSD/luna88k:
- remove unused declarations
- rename struct scsi_fmt_cdb to scsi_generic_cdb
2014-01-03 07:17:19 +00:00
mlelstv aafa26eec9 Fix allocator routines. Instead of abusing CIRCLEQ pointers, add an explicit
type field to tag memory nodes that are or are not on the free list.
2014-01-03 07:14:20 +00:00
tsutsui 795bcb0d40 Pull more fixes from OpenBSD/luna88k:
- Bring getline() - a.k.a libsa gets() with a prompt prefix - in par with libsa
  gets(), featurewise; this means support for ^u to clear the input.
- constify
2014-01-03 06:37:13 +00:00
tsutsui 86c3ed96a4 Pull more fixes from OpenBSD/luna88k:
- accept empty controller and partition numbers, as well as empty filenames,
  and use defaults (0, 0 and "netbsd") instead of complaining the boot path
  is invalid
- move a macro where actually necessary

Also bump version to denote the user visible change.
2014-01-03 06:15:10 +00:00
tsutsui 4929bf22e1 Disable unnecessary boot device check. From OpenBSD/luna88k. 2014-01-03 03:44:41 +00:00
tsutsui 7f7c7f9b34 Misc cleanup from OpenBSD/luna88k.
- remove unused code
- use proper prefix for structure members for readability
2014-01-03 03:25:25 +00:00
tsutsui 681c174ae4 Remove unused code (from OpenBSD/luna88k). Some KNF. 2014-01-03 02:03:12 +00:00
rkujawa d8300310a1 Rework handling of Commodore Gayle chip. Avoid ugly struct casts, introduce
proper bus_space accesses and some abstraction layer. All drivers that utilised
Gayle also had to be refactored.

I tried not to break anything more, but this clearly needs more testing...
2014-01-03 00:33:06 +00:00
tsutsui d0e171ad99 Misc cleanup. Mostly from OpenBSD/luna88k.
- fix isprint() macro
- hight -> height
- remove an unused function
- adjust tabs/spaces
- constify the bitmap font
- consistently use #define<space>
- use #if 0/#endif to disable code block
- u_long -> uint32_t, u_short -> uint16_t
- some KNF
2014-01-02 20:02:00 +00:00
tsutsui 67183ad6ce Replace broken (by SCCS) ISO-2022-JP comments with UTF-8.
Recovered and decoded by isaki@.
2014-01-02 19:50:03 +00:00
christos 024e870a52 Add more gnu sections 2014-01-02 19:15:07 +00:00
joerg 9b97293f31 Fix const use. 2014-01-02 19:00:39 +00:00
pooka 97e7a6dce3 need atomic.h, from uwe 2014-01-02 18:52:04 +00:00
tsutsui 4efa8769d7 Add bound check of a controller number in scrun().
Noticed by miod@openbsd.
2014-01-02 18:45:24 +00:00
pooka acb676442c Allow kernels compiled with INET+INET6 to be booted as IPv4-only or IPv6-only. 2014-01-02 18:29:01 +00:00
tsutsui 273c5b9bba Change the SCSI select timeout from 2ms to 250ms as kernel spc(4) driver does.
Noticed by miod@openbsd.
2014-01-02 17:43:32 +00:00
skrll 197d83126f Protect access of urb->hcpriv by adapting the following change from the
Raspberry PI dwc_otg driver.

38753ce72d

dwc_otg: prevent OOPSes during device disconnects

The dwc_otg_urb_enqueue function is thread-unsafe. In particular the
access of urb->hcpriv, usb_hcd_link_urb_to_ep, dwc_otg_urb->qtd and
friends does not occur within a critical section and so if a device
was unplugged during activity there was a high chance that the
usbcore hub_thread would try to disable the endpoint with partially-
formed entries in the URB queue. This would result in BUG() or null
pointer dereferences.

Fix so that access of urb->hcpriv, enqueuing to the hardware and
adding to usbcore endpoint URB lists is contained within a single
critical section.
2014-01-02 15:54:10 +00:00
tsutsui 96fe424ce9 Remove initialization of unused t_softc in struct tty (to make pullup easier). 2014-01-02 03:32:35 +00:00
matt ab1f27dd20 Define kernel_pmap_store as a pmap followed by ALPHA_MAXPROCS pmap_asn_info.
kernel_pmap_ptr now points to the pmap in kernel_pmap_store.
2014-01-01 22:35:54 +00:00
christos a791c1b86a remove commented out -fno-reorder-functions 2014-01-01 22:07:54 +00:00
christos f211905aff Use a custom ldscript so that we can keep boot_start at 0. 2014-01-01 22:06:13 +00:00
christos eb2d28f6ce Provide a boot ldscript that puts the text.unlikely section after the text
section so that boot_start gets placed first. We also set the entry and the
start address, although we still override them from the command line.
This is a copy of elf_i386.xbn
2014-01-01 22:05:48 +00:00
dsl be74e0a9c9 Change the type of the 'cookie' that holds the state of the core dump file
from 'void *' to the actual type 'struct coredump_iostate *'.
In most of the code the contents of the structure are still unknown.
This just stops the wrong type of pointer being passed to the 'void *'
parameter.
I hope I've found everything, amd64 GENERIC and i386 GENERIC & ALL compile.
2014-01-01 18:57:15 +00:00
matt d2a0d9efc4 Fix PMAP_SIZEOF() to deal with that the pmap has 0 pmap_asn_info now.
Addresses PR/48488.
2014-01-01 16:09:04 +00:00
pgoyette 2dd4f4d91a Modularize the opencrypto components and link to the build 2014-01-01 16:06:00 +00:00
pgoyette f45c6e8a3c Create modules for software crypto components. 2014-01-01 15:18:57 +00:00
tsutsui 51c2df58e8 Enable file-system CD9660 to make cd(4) actually usable. 2014-01-01 08:41:52 +00:00
msaitoh b20d0e739e regen. 2014-01-01 08:33:31 +00:00
msaitoh 9d4e4bce46 Change description from ASPEED2000 to ASPEED Graphics Family because
the IP is used on AST1000,2050 and 2100, too.
2014-01-01 08:33:00 +00:00
isaki 2b1afc88b6 indent fix in a comment. 2014-01-01 05:23:40 +00:00
isaki 3eedc36da9 Fix a sign when a source or destination is either (plus/minus)zero
or (plus/minus)infinity.  Found by XM6i.
2014-01-01 05:22:22 +00:00
jnemeth 524c82e251 Welcome to 2014! 2014-01-01 00:33:34 +00:00
skrll 3546eea784 Remove unused variable.
OK rkujawa
2013-12-31 14:51:46 +00:00
tsutsui bc63cd47b4 Use softint(9) properly to process TX/RX data between tty(4) layer.
It could cause possible locking issue to call tty(4) layer functions
from IPL_SERIAL interrupt handlers.

Changes details (mostly similar to com(4) and z8530tty(4)):
 - allocate RX buffer and put data and status into it in the interrupt handler
 - call t_linesw->l_rint from the software interrupt handler
 - set the only first byte in siottystart() and use t_outq buffer to send
   multiple TX data
 - call the next t_linesw->l_start on TX complete in the software interrupt
   handler

Also put more changes:
 - handle cnmagic(9) properly (now entering ddb(4) by console BREAK works)
 - allocate tty in the attach function as other drivers rather than first open
 - use proper variable types
2013-12-31 14:24:09 +00:00
skrll ab8b74b3ab KASSERT that the transfer callout is not pending.
Removes a XXX
2013-12-31 09:10:43 +00:00
christos ad495e7046 Now that our yacc supports providing yytname[] and does the name protection
automatically (as it should, unlike bison), elide the name protection hacks.
2013-12-30 22:32:45 +00:00
jakllsch ba3004d138 Zero out on-stack 'marks' array before first use.
This is needed so the MARK_DATA index is properly filled in.
2013-12-30 21:45:51 +00:00
tsutsui 837223a076 Pull a fix of Bt458 (8bpp framebuffer) initialization from OpenBSD/luna88k.
http://marc.info/?l=openbsd-cvs&m=138838884202196
>> Correct initialization of Bt458, used in LUNA's 8bpp frame buffer.
>>
>> According to the manual, the address register does not automatically
>> increment when we access to the control registers.  Also we disable
>> overlay planes, because we do not use them.
2013-12-30 13:14:48 +00:00
martin 2e67acc4d6 Improve debugging output 2013-12-30 08:47:50 +00:00
martin 750e958278 Avoid buffer overruns (no practical difference for any sane firmware
properties, but better be safe).
2013-12-30 08:43:28 +00:00
msaitoh a86fd0ccac regen. 2013-12-30 07:08:47 +00:00
msaitoh a9e0b043d1 Add ASPEED AST2000. 2013-12-30 07:08:24 +00:00
christos 178126fa8a Simplify previous, don't even set the variables if they are not going to
be used.
2013-12-29 23:26:00 +00:00
christos 5aa89cd133 ifdef unused variables 2013-12-29 23:07:34 +00:00
msaitoh bcf70d1755 Add support For I354(C2000 interna Ethernet controller):
- Add I354 support.
 - Fix SGMII+MDIO case. SGMII+I2C is not supported yet.
 - Not tested well.
 - Sprinkle "XXX" to check later.
2013-12-29 21:28:41 +00:00
pgoyette 09c7634540 Start modularizing the opencrypto framework. 2013-12-29 18:20:42 +00:00
pgoyette 77b8800e73 Re-sort in alphabetic sequence. 2013-12-29 16:32:32 +00:00
nakayama 08b2d996d1 Make buildable w/o options SUN4V. 2013-12-29 12:36:30 +00:00
pgoyette 1b0023ef9a Modularize net/zlib so it can be used by the vnd module (and, eventually,
by an opencrypto module).
2013-12-29 08:09:44 +00:00
pgoyette 1b9d1cab87 Descend into ccd 2013-12-28 19:45:13 +00:00