Commit Graph

2377 Commits

Author SHA1 Message Date
christos
abc81f7c5e use __unused instead of __USE and void cast to mark iterator variable unused
where needed (from phone)
2013-11-10 00:50:13 +00:00
christos
25dc998745 fix unused variable warnings 2013-11-09 21:41:03 +00:00
christos
abff20964c bump md image size 2013-11-09 21:32:55 +00:00
christos
7500b90ae1 __USE cii 2013-11-09 20:32:59 +00:00
christos
d0dae2300a remove unused 2013-11-09 18:31:53 +00:00
martin
7c79fd6cfc Mark a diagnostic-only variable 2013-10-25 16:23:46 +00:00
martin
5a6d54e60d Simplify (and remove now unused variable) 2013-10-25 14:44:25 +00:00
martin
1faf8b0f37 Mark a potentially unused variable 2013-10-24 13:16:33 +00:00
christos
86b6b2fef2 make cpu_need_resched() macros consistent; __USE flags 2013-10-19 19:20:59 +00:00
martin
6f0493943e Bump MAXTSIZ to 32 MB (it is an arbitrary limit anyway) 2013-09-18 13:31:39 +00:00
martin
8d16ae7d3d Change __isinf and __isnan from macros to inline functions. The macros do
collide with newer gcc libstdc++.
2013-09-16 15:56:24 +00:00
matt
74c41226fe add #define __HAVE_MD_SOFTINT_TRIGGER to <vax/types.h>
Only define a function prototype for softint_trigger
if __HAVE_MD_SOFTINT_TRIGGER is undefined.
2013-08-25 03:08:56 +00:00
matt
77ab2cf35d Use <bsd.klinks.mk> 2013-08-21 06:15:41 +00:00
joerg
8dce5128ed Explicitly disable unwind tables for the boot loader. 2013-07-18 12:15:15 +00:00
rmind
666e919182 G/C PFIL_HOOKS from the kernel configs. 2013-06-30 21:38:55 +00:00
matt
9d2720c820 ufs -> ffsv1 (ffsv2 is commentout due to size limitations) 2013-06-28 01:13:40 +00:00
matt
8b42139220 Use sy_invoke 2013-06-26 06:31:53 +00:00
christos
e46f5f0078 remove obsolete networking options 2013-06-05 23:07:59 +00:00
christos
1cc8b68d4b the bogus number police 2013-04-27 21:43:10 +00:00
christos
dc14ae835f remove confusing numeric locators where they are unused. 2013-04-27 18:19:19 +00:00
christos
caafbf4e1b add missing SSIZE_MIN 2013-04-11 00:57:34 +00:00
martin
35d9a96a44 Drop MAXPARTITIONS down to 12 - we do not have more space to store a
larger disklabel in the bootblocks at least on some supported machines.
Keep the extended major/minor sheme compatible with the 6.0 release and
note that we had a bigger MAXPARTITIONS in between.
2013-04-04 12:50:03 +00:00
martin
b59d36a97c Rearrange primary bootstrap slightly to free up all space between the disk
label and the uVAX rom boot parameter block.
2013-04-04 12:48:07 +00:00
martin
f1a3f8c095 Minor cosmetic tweaks for cpu attach messages 2013-03-26 20:52:29 +00:00
christos
2c1aa36c3d Under FAST_IPSEC, IPSEC_ESP is mandatory; GC it. 2013-03-02 02:42:07 +00:00
joerg
e240adbd0b Retire OSI network stack. OK core@ 2013-03-01 18:25:13 +00:00
martin
5cd4dadf69 Make this compile with TRAPDEBUG enabled.
Pointed out by Holm Tiffe.
2013-01-15 10:18:38 +00:00
chs
0e005595b8 fix compile problems. 2012-10-29 12:55:41 +00:00
chs
cbab9cadce split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
2012-10-27 17:17:22 +00:00
apb
f3929b106b Add "options COMPAT_60" to all kernel configuration files
that already had "options COMPAT_50".
2012-10-17 14:48:07 +00:00
martin
607e109c16 Kernel crash dumps are not properly implemented - so do not pretend they
would exist and set dumplo to 0 if dumpsize is 0. This makes savecore
happy.
XXX - implement real dumps, most of the needed code seems to be in place
already.
2012-08-27 22:25:09 +00:00
abs
3267a6b9fe Update all kernel configs mentioning WSEMUL_* but not already including
WSDISPLAY_COMPAT_USL using the following rules:
- If WSEMUL_ is commented out, add commented out out WSDISPLAY_COMPAT_USL
- If INSTALL or obviously memory constrained, add WSDISPLAY_DEFAULTSCREENS=1
  and commented out WSDISPLAY_COMPAT_USL
- Otherwise add WSDISPLAY_COMPAT_USL

Some of the INSTALL configs for larger memory machines are probably suitable
for adding WSDISPLAY_COMPAT_USL.

Now wsconscfg(8) should be able to switch VTs when expected.

Implemented after no objection from tech-kern to the following:

On 5 June 2012 09:47, David Brownlee <abs@absd.org> wrote:
> wsconscfg(8) requires WSDISPLAY_COMPAT_USL in order to switch virtual
> terminals.
>
> Except when in an exceptionally memory or space constrained
> environment (INSTALL being the obvious case), is there any reason why
> all GENERIC and GENERIC-like kernels which have wscons enabled
> shouldn't also have WSDISPLAY_COMPAT_USL?
2012-08-17 20:11:37 +00:00
matt
333fcdec75 Supress print fatal traps if the process is being debugged of it the signal
will be caught by a signal handler.
2012-08-02 14:03:22 +00:00
mlelstv
8ce4433821 Do not call setroot() from MD code and from MI code, which has
unwanted sideeffects in the RB_ASKNAME case. This fixes PR/46732.

No longer wrap MD cpu_rootconf(), as hp300 port stores reboot information
as a side effect. Instead call MI rootconf() from MD code which makes
rootconf() now a wrapper to setroot().

Adjust several MD routines to set the global booted_device,booted_partition
variables instead of passing partial information to setroot().

Make cpu_rootconf(9) describe the calling order.
2012-07-29 18:05:39 +00:00
abs
9560c9d7a4 Sync devices with GENERIC, and include bpfilter to allow dhcpcd to work 2012-07-03 22:42:47 +00:00
abs
bd1c4855ff All apply to vax only:
- Drop KERNFS from INSTALL kernel
- Add dmesg to sysinst ramdisk
- Add 'ramdisk' target to MAKEDEV and use
- Add dhcpcd to sysinst ramdisk
- Drop old install.md script
- Misc install image cleanup (reduce diff to zaurus of all things)
2012-07-03 21:49:55 +00:00
abs
36d6d3048d - Increase MAXPARTITIONS for vax from 8 to 16, using the standard NetBSD
mechanism to ensure all existing /dev nodes continue to work
- Adjust boot block layout to fit additional partitions
- Adjust number of inodes on install media
2012-07-02 22:42:18 +00:00
abs
927d767b2b drop some blank lines - no functional change 2012-06-28 13:59:55 +00:00
abs
d58ef031eb dependent not dependend 2012-06-28 13:59:25 +00:00
abs
0a805bc0a7 Define and use VS_REGS_KA49 rather than magic numbers. From OpenBSD. 2012-06-28 13:58:21 +00:00
abs
351c7b5d8f - Add racd* devices for MSCP based CD-ROM drives (RRD40s), as opposed
to mixing them in with the ra* disks, modelled loosely on how MSCP
  rx* floppies are handled
- racd* defaults to the same single iso9660 partition as cd*
- Cleanup config option handling slightly so any combination of ra*,
  rx* (and now raccd*) can be defined without build errors.
- Avoid ugly printf when disks have all zero disklabel magic number
2012-06-22 20:42:22 +00:00
abs
37d94841fa If a port is going to have wscons for virtual terminals then it really makes
sense to enable WSDISPLAY_COMPAT_USL so the system can switch between the
virtual terminals...
2012-06-05 08:41:36 +00:00
matt
2ff5436688 Really fix polyf/polyd macros. Now returns expected results. 2012-06-01 06:26:38 +00:00
matt
b2993e8d16 Remove an unneeded indirect access from polyd/polyf macros 2012-05-29 17:25:38 +00:00
matt
e950a585b9 Implement __HAVE_RAS. Unlike most implementation, this is done in userret
instead of cpu_switchto since we already accessing the proc structure so
the additional overhead of check p_raslist is minimal.
2012-05-25 12:32:48 +00:00
martin
6c3cc552c2 Calling _lwp_create() with a bogus ucontext could trigger a kernel
assertion failure (and thus a crash in DIAGNOSTIC kernels). Independently
discovered by YAMAMOTO Takashi and Joel Sing.

To avoid this, introduce a cpu_mcontext_validate() function and move all
sanity checks from cpu_setmcontext() there. Also untangle the netbsd32
compat mess slightly and add a cpu_mcontext32_validate() cousin there.

Add an exhaustive atf test case, based partly on code from Joel Sing.

Should finally fix the remaining open part of PR kern/43903.
2012-05-21 14:15:16 +00:00
abs
a64e443af7 Revert hax to fix boot blocks for gcc 4.5, accudently committed in last 2012-05-14 10:05:50 +00:00
abs
326f063e60 From the "why was this not done before" box:
Implement WSDISPLAYIO_LINEBYTES so xwsfb works
2012-05-14 08:44:13 +00:00
christos
7484a2dbbe - Normalize inclusion protection (remove)
- Move CHAR_{MIN,MAX} to a common file.
- Fix broken comments
2012-03-28 17:03:27 +00:00
he
136d71a66c Bump the ramdisk size so that the contents fits again. 2012-03-18 14:12:55 +00:00