Commit Graph

3819 Commits

Author SHA1 Message Date
uebayasi
97b488fb90 PCI controller doesn't rely on (depend on) AGP bus, but provide it. If one
specific architecture is known to have some specific AGP implementation, such
suggestion must be done in the "selection" part, not the "definition" part.

This is also an indirect (across bus attachment), circular dependency.
2014-10-17 18:31:07 +00:00
uebayasi
c731d93b71 Fix build of RAWHIDE kernel. 2014-10-17 18:14:42 +00:00
uebayasi
69e0a515c4 Missing agp attachment. 2014-10-11 09:16:15 +00:00
apb
497135b74d Avoid splitting sed programs over multiple lines with
<backslash><newline><indentation>.  Use multiple -e options instead.
2014-08-24 18:27:16 +00:00
dholland
4acb6306f5 Systematize (and in many cases, fix) the comments on options COMPAT_NN.
There are quite a few configs that are missing some COMPAT_NN options
in ways that don't make sense; this should probably get cleaned up
too, but for the time being I've not added or removed anything.
2014-08-23 20:26:56 +00:00
apb
30a0368950 Add "options COMPAT_70" to all kernel configuration files that
already had "options COMPAT_60".
2014-08-16 17:56:30 +00:00
matt
82a12988ef Include <sys/common_int_types.h> if __UINTPTR_TYPE__ is defined. 2014-08-13 22:56:56 +00:00
matt
0b2cac531b Include <sys/common_int_const.h> if __INTMAX_C_SUFFIX__ is defined. 2014-08-13 22:51:58 +00:00
matt
7c5094c243 Include <sys/common_init_limits.h> if __SIG_ATOMIC_MAX__ is defined. 2014-08-13 22:31:06 +00:00
matt
2534797f07 include <sys/common_int_mwgwtypes.h> if __UINT_FAST64_TYPE__ is defined. 2014-08-13 22:25:39 +00:00
matt
efe99ca41d include <sys/common_int_fmtio.h> if __INTPTR_FMTd__ is defined 2014-08-13 19:48:17 +00:00
joerg
eb6cc7528a Consistently define WARN in a way that passes format string checks, i.e.
always uses the same number of arguments as given in the format string.
2014-08-06 21:57:48 +00:00
dholland
f9228f4225 Add d_discard to all struct cdevsw instances I could find.
All have been set to "nodiscard"; some should get a real implementation.
2014-07-25 08:10:31 +00:00
rmind
8011b285c0 Implement MI IPI interface with cross-call support. 2014-05-19 22:47:53 +00:00
matt
6534f89c77 Update PCU_REENABLE for MP. For UP, add a KASSERT to make sure it's never
present.
2014-05-19 07:09:10 +00:00
matt
3d185b2591 When completing a FP trap, only load the FPU if we don't already own it.
While the FPU is on, disable kernel preemption.
2014-05-19 06:55:54 +00:00
martin
13bd467664 No need to re-set MDLWP_FPACTIVE in the REENABLE case - it should be
set already.
2014-05-18 11:04:51 +00:00
martin
e16f12d468 Properly handle PCU_REENABLE in fpu_state_load. Hint from Nick Hudson.
This seems to help PR port-alpha/48782 a lot.
2014-05-18 10:43:54 +00:00
matt
a035e18049 Cleanup and simplify PCU FP support. Nuke MDLWP_FPUSED. 2014-05-16 19:18:21 +00:00
martin
bb4ae2c566 When creating a SIGFPE siginfo for a gentrap, we have no additional info
(ucode) available, and the pal interface does not provide additional
details either. Hardcode the si_code value to FPE_INTDIV, since the only
callers of gentrap in our kernel seem to be the division routines in libkern.
2014-05-16 06:11:21 +00:00
rmind
d67ab12c1d pcu(9):
- Remove PCU_KERNEL (hi matt!) and significantly simplify the code.
  This experimental feature was tried on ARM did not meet the expectations.
  It may be revived one day, but it should be done in a much simpler way.
- Add a message structure for xcall function, pass the LWP ower and thus
  optimise a race condition: if LWP is discarding its state on a remote CPU,
  but another LWP already did it - do not cause an unecessary re-faulting.
- Reduce the variety of flags for PCU operations (only PCU_VALID and
  PCU_REENABLE are used now), pass them only to the pcu_state_load().
- Rename pcu_used_p() to pcu_valid_p(); hopefully it is less confusing.
- pcu_save_all_on_cpu: SPL ought to be used here.
- Update and improve the pcu(9) man page; it needs wizd(8) though.
2014-05-16 00:48:41 +00:00
matt
8ed9a6d892 Since all our compilers support __DBL_* and __FLT_*, use them to define
{DBL,FLT}_{DIG,MIN,MAX}
2014-04-21 10:53:47 +00:00
christos
3ff79dba35 adjust to new signature; return consistent stuff. 0 is ok -1 is error 2014-04-05 18:44:32 +00:00
christos
e58a356cba make pci_intr_string and eisa_intr_string take a buffer and a length
instead of relying in local static storage.
2014-03-29 19:28:24 +00:00
christos
db89e006d6 kill sprintf 2014-03-26 08:04:19 +00:00
christos
b2543b9136 use cpu_{g,s}etmodel 2014-03-24 20:06:31 +00:00
christos
977edcc000 gc sprintf; reduce local static usage of interrupt strings that are only
used once for autoconf printing.
2014-03-21 16:39:29 +00:00
christos
55e6983cb7 kill sprintf 2014-03-20 20:51:40 +00:00
christos
805326e6ff Make all __ALIGNBYTES macros return the same type (size_t) 2014-03-18 17:11:19 +00:00
dholland
a68f9396b6 Change (mostly mechanically) every cdevsw/bdevsw I can find to use
designated initializers.

I have not built every extant kernel so I have probably broken at
least one build; however I've also found and fixed some wrong
cdevsw/bdevsw entries so even if so I think we come out ahead.
2014-03-16 05:20:22 +00:00
martin
25a68bc40b Allow kernels without tsciic to build. 2014-02-22 18:42:47 +00:00
jdc
ad145e06bc Add tsciic and more (commented out) DS20L i2c devices. 2014-02-21 12:24:31 +00:00
jdc
5c7ee0a0a0 Add tsciic, a driver for the DECchip 21272 Core Logic chipset I2C controller.
Tested on DS20L.
2014-02-21 12:23:30 +00:00
martin
21f00ef559 Add raid to the install kernel 2014-01-24 23:59:53 +00:00
christos
17b7583f61 undo rump workaround 2014-01-22 22:52:04 +00:00
tsutsui
b258288c6b Add pseudo-device bpfilter to use DHCP client. 2014-01-22 11:45:16 +00:00
christos
433a91548a rumpkernel needs ci_pcc_freq 2014-01-21 20:18:46 +00:00
tsutsui
bf03bc8b76 Add and enable radeonfb(4) at pci with options RADEONFB_DEPTH_32.
Requested and tested (with wsfb Xorg server) by Naruaki Etomi in PR/48431.
2014-01-20 15:32:23 +00:00
tsutsui
c0061b6a8b Check and set "is_console" property to PCI displays for framebuffer drivers.
Tested on DS15 with radeonfb(4) and XP1000 with vga(4)
by Naruaki Etomi in PR/48431.
2014-01-20 15:05:13 +00:00
tsutsui
183c2ca81d Set a proper address for PCI memspace to make bus_space_mmap(9) work correctly.
Reported and confirmed with radeonfb(4) by Naruaki Etomi in PR port-48431.
2014-01-19 03:44:13 +00:00
christos
2b043c75b6 eliminate use of bsd.sys.mk from Makefiles 2014-01-16 01:15:32 +00:00
tsutsui
50048dbc5e Revert previous. PR/48431 claims ALPHA_PHYS_TO_K0SEG() is necessary.
Actually CHIP_MEM_SYS_START(v) seems a physical address per *_mem_map()
function, but I don't think mmap() function should return K0SEG address
(it should return PA cookie IIUC) so I guess there is something wrong
in Titan's bus space functions.  I'll investigate them later.
2014-01-15 14:27:49 +00:00
tsutsui
fb53ad091b bus_space_mmap(9) function should return alpha_btop(PA), not alpha_btop(VA).
Pointed out in PR port-alpha/48431 from nullnilaki.
2014-01-13 15:48:09 +00:00
tsutsui
8c436a9898 Add empty LIBCRTI= as LIBCRT0 to build sa programs without installed DESTDIR.
XXX: probabry we should have bsd.saprog.mk or something.
2014-01-12 15:26:28 +00:00
dsl
95739e63cd Remove __HAVE_PROCESS_XFPREGS and add the extra parameter for the size
of the fp save area to all the process_read_fpregs() and
  process_write_fpregs() functions.
None of the functions have been modified to use the new parameters.
The size is set for all the writes, but some of the arch-specific reads
  just pass NULL.
The amd64 (and i386) need variable sized fp register save areas in order
  to support AVX and other enhanced register areas.
These functions are rarely called - so the extra argument won't matter.
2014-01-04 00:10:02 +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
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
skrll
c6f4b22b79 Revert previous commit. It was an accident. 2013-12-23 13:08:00 +00:00
skrll
cfac49f5f3 Silence gcc 4.8 2013-12-18 12:43:59 +00:00