Commit Graph

1816 Commits

Author SHA1 Message Date
cherry
3b1622fa3c "Make NetBSD great again!"
Introduce uvm_hotplug(9) to the kernel.

Many thanks, in no particular order to:

TNF, for funding the project.

Chuck Silvers - for multiple API reviews and feedback.
Nick Hudson - for testing on multiple architectures and bugfix patches.
Everyone who helped with boot testing.

KeK (http://www.kek.org.in) for hosting the primary developers.
2016-12-23 07:15:27 +00:00
cherry
3a405f030d physmem should be of type psize_t
Also, use PRIxPSIZE when printf(9)ing physmem.
2016-12-22 16:05:14 +00:00
flxd
aea86e7b75 Fix typo "one the" and architecture where appropriate. 2016-12-17 14:36:29 +00:00
christos
ef2deb33e0 wildcard speaker attachments, now that we can handle many of them. 2016-12-13 20:42:15 +00:00
christos
219b8dae14 remove VAUDIOSPEAKER for now, will be done differently. 2016-12-10 23:03:22 +00:00
rin
585993030e Fix comment. We do not use the a.out format anymore... 2016-12-10 14:06:44 +00:00
rin
01217f1a0c Clear STRIPFLAG after include bsd.own.mk; it can be modified by mk.conf via
bsd.own.mk.
2016-12-10 14:03:34 +00:00
nat
03783bb56a Add a synthesized pc beeper and keyboard bell for platforms with an audio
device.
2016-12-08 11:31:08 +00:00
tsutsui
540167e84a Fix crashdump on machines with EXTENDED_MEMORY.
PR port-x68k/51663 from Rin Okuyama.
2016-12-02 12:43:07 +00:00
christos
dcf05cde50 bump 2016-09-18 14:20:23 +00:00
christos
cfff2ab0f5 Kill ssp 2016-09-17 18:08:33 +00:00
christos
86d52d2dc0 Kill the PIE 2016-09-17 17:18:14 +00:00
isaki
2c5968324f Revert a part of previous commit.
If addr is not specified as "zsc0 at intio0" in kernel config
(though it's not right of course), it will cause a panic.
intio_map_allocate_region() should be called after address check.
2016-08-05 05:32:02 +00:00
isaki
cd74788766 gets -> kgets. the last part of PR/51200.
It was using libsa's gets, so it's possible to change to kgets
as rev 1.23.  I've confirmed that it works.
2016-08-04 12:15:07 +00:00
msaitoh
8bc54e5be6 KNF. Remove extra spaces. No functional change. 2016-07-07 06:55:38 +00:00
isaki
0989c2e255 Add SCSI host adaptor selector to "boot" command of /boot.
By this function, /boot which booted from non-SCSI
(in other words, floppy) can load SCSI kernel.
Now, single /boot can load kernel of all supported filesystems
of all supported boot devices.

---
New "boot" command's syntax is: boot [hostadaptor@][dev:][file]

If you booted from SCSI, hostadaptor is already set (from IOCS)
and you can omit hostadaptor in this case.  You can type like
"boot sd0a:netbsd" as before.

If you booted from floppy (hostadaptor is not set) and want to
load the SCSI kernel (hostadaptor is needed), you have to select
your hostadaptor in boot command, like "boot spc0@sd0a:netbsd".
2016-06-26 04:17:17 +00:00
isaki
c3ca747d7e Fix my mistake of previous commit. 2016-06-25 16:05:43 +00:00
isaki
721fcb5753 Unify netboot and boot (into boot).
Now boot becomes to be able to load the NFS kernel and
netboot also becomes to be able to load the local kernel.
The only difference is the default kernel which loads.
I.e., netboot's default is nfs.

Bump boot_ustar's BOOT_MAXSIZE.
2016-06-25 14:35:58 +00:00
isaki
e44999df0a Define BOOT_MAXSIZE instead of magic number.
Present size 56832 is 65536 - 8192 - 0x200 and is the same size
as before.
2016-06-25 04:08:57 +00:00
isaki
fed1bd4c95 Display debug messages before loading the kernel.
It makes easy to read.
2016-06-19 09:42:28 +00:00
isaki
1c46f88df5 Split variable.
'dev' is the device number in devspec[] and
'bootdev' is the boot device parameter made from 'dev'.
2016-06-19 09:23:16 +00:00
isaki
527eb93c1e In XM6 TypeG (and original XM6), its version number is
represented by BCD, not decimal.
Reported by GIMONS (the author of XM6 typeG).
2016-06-14 07:51:10 +00:00
dholland
f86cea3851 Revert this one; I can't tell for sure if it's using libsa gets or its
own firmware one in ../libdos. If the latter, switching and bringing
in the libsa one (a) might not work and (b) might make the bootloader
overflow size limits.

PR 51200.
2016-06-11 06:57:46 +00:00
dholland
6349920086 PR 51200 gets in libsa considered harmful: use kgets 2016-06-11 06:50:21 +00:00
dholland
f56f9deac4 PR 51194 David Binderman: simplify redundant conditional 2016-05-31 04:12:10 +00:00
dholland
3e87dc22c2 PR 50759 David Binderman: fix out of bounds array access.
If we don't find one of the expected device addresses, reject the
match, but do it by checking whether the loop matched something rather
than by testing an array entry that might be one past the end.

Note: I have also moved the test to be with the loop; since the call
to intio_map_allocate_region had gotten placed in between them, I've
moved it to go before rather than after them as (a) it doesn't
interact with the loop itself and (b) this seems like the best choice
given the history as it was deliberately added before the original
test.

I have not tried running this, not having an x68k, but as best I can
tell by reading the intio code it seems like it should be harmless
even if it's not really correct.
2016-05-31 03:22:30 +00:00
dholland
06607d557a fix flagrantly wrong indent 2016-05-31 03:12:49 +00:00
skrll
4e8e66439e Merge nick-nhusb
- API / infrastructure changes to support memory management changes.
- Memory management improvements and bug fixes.
- HCDs should now be MP safe
- conversion to KERNHIST based debug
- FS/LS isoc support on ehci(4).
- conversion to kmem(9)
- Some USB 3 support - mostly from Takahiro HAYASHI (t-hash).
- interrupt transfers now get proper DMA operations
- general bug fixes
    - kern/48308
    - uhub status notification improvements
    - umass(4) probe fix (applied to HEAD already)
    - ohci(4) short transfer fix
2016-04-23 10:15:27 +00:00
christos
2a023ae6f4 PR/50859: David Binderman: Remove redundant code. 2016-02-26 18:19:16 +00:00
tsutsui
512eb09ee8 Enable LIBSA_CREAD_NOCRC. PR/50638
Bump version to denote user visible change.
 XXX: recent visible changes (memsize probe, SRAM switch command)
      were not denoted in versions
Tested on (real) X68030.
2016-01-17 04:47:59 +00:00
christos
d5137ecf34 fenv for m68k 2015-12-24 14:12:39 +00:00
isaki
b89c958e2e To turn off the power, it's necessary to turn off the alarm signal
of RTC before writing the system port.  This is a fix for rev 1.191.
Thanks to Y.Sugahara.
Should be pulled up to netbsd-7.
2015-09-16 05:48:52 +00:00
dholland
25d3b9e7cb Final bit of PR 41200: headers that declare ioctls should include sys/ioccom.h.
This covers most if not all of the MD headers.

XXX: a lot of the ioctl definitions in some of these files are cutpasted.
2015-09-07 03:49:44 +00:00
uebayasi
44e9385020 Declare dependency on fpsp.o via newly introduced ${MD_LIBS} instead of
${MD_OBJS}.

${MD_OBJS} should be used only for objects that must be linked first (i.e.,
start code).  Objects have to be compiled following common compile rules,
and have to be generated into common places (i.e., top of kernel build
directory).

${MD_LIBS} defines libraries that are built by separate makefiles, under
separate directories.  `Makefile.kern.inc' doesn't know intermediate library
objects.
2015-09-06 02:17:30 +00:00
christos
586ab73157 fix include filename. 2015-08-22 14:11:19 +00:00
christos
f432ba3f0a fix build (dholland) 2015-08-21 15:33:04 +00:00
christos
e7ae23fd9e include "ioconf.h" to get the 'void <driver>attach(int count);' prototype. 2015-08-20 14:40:16 +00:00
maxv
e99716e305 Remove KMEMSTATS. 2015-08-12 07:53:56 +00:00
maxv
b74522aae1 Remove KMEMSTATS. 2015-08-08 06:36:24 +00:00
christos
f9da13407d fix build 2015-07-28 16:51:25 +00:00
isaki
3d092e0f6e sysinst is 15*2 sect/cyl (fdXc), not 8*2 sect/cyl (it's fdXa,
DOS compatible).  It makes the loading of sysinst a bit faster.
Pointed out by Yosuke Sugahara.
2015-07-25 06:58:37 +00:00
isaki
8f16a95caf Add a comment on mnemonic that assembler cannot recognize. 2015-07-25 06:24:53 +00:00
kamil
f874bd0561 Improve spelling: regsiter -> register
This change is non-functional.

Approved by <riastradh>, <pgoyette>
2015-07-11 10:32:45 +00:00
ozaki-r
b8199900dc Remove leftover use of AF_NS and NS option
Unnecessary NETISR_NS is also removed.
2015-05-20 09:17:17 +00:00
mlelstv
6f00c789e1 Use C99-style initializers for struct dkdriver. 2015-04-26 15:15:19 +00:00
pgoyette
37202cb966 Update device dependency information - the sysmon major device now depends on the sysmon module itself, not on the individual components. 2015-04-23 23:22:51 +00:00
riastradh
445478ce67 MD rnd.h cleanups. Please let me know if I broke anything! 2015-04-13 21:18:40 +00:00
martin
79db564711 Handle EINVAL in the fault path and send SIGBUS on mmap'd access past EOF 2015-03-04 20:29:59 +00:00
christos
c182898b0d We have three sets of DTYPE_ constants in the kernel:
altq		Drop 		Type
	disklabel	Disk 		Type
	file		Descriptor	Type
(not to mention constants that contain the string DTYPE).
Let's make them two, by changing the disklabel one to be DisK TYPE since the
other disklabel constants seem to do that. Not many userland programs use
these constants (and the ones that they do are mostly in ifdefs). They will
be fixed shortly.
2015-01-02 19:42:05 +00:00
christos
ad0f8520fc restore part decl. 2015-01-02 15:53:25 +00:00