Commit Graph

26128 Commits

Author SHA1 Message Date
enami bd7db8ba8a Enable early probe stage printf's not by DIAGNOSTIC but more driver
specific macro constants.
1998-10-07 04:58:06 +00:00
jtk 568398bad2 regen data files 1998-10-07 01:08:57 +00:00
jtk 3067a16f6e update for a broken variant of the Linksys E-CARD 1998-10-07 01:08:37 +00:00
tron 8362affa14 Add a few "nop" instructions to make the memory size probe more reliable. 1998-10-06 22:26:42 +00:00
thorpej d374462dfc Move the code that does the deferred (post-autoconfiguration) buffer
cache allocation to its own function, and call it at the end of configure().
1998-10-06 21:42:08 +00:00
thorpej abaeca8063 Move the calls to hwrpb_restart_setup() and cpu_run_spinup_queue() to the
end of configure().
1998-10-06 21:19:05 +00:00
thorpej 2038eb830c Split hwrpb_restart_setup(), putting the code that initializes the vtpb
and primary hwpcb into hwrpb_primary_init().  Call the latter before
performing autoconfiguration().
1998-10-06 21:10:46 +00:00
thorpej 5a687aeb55 cold is already set to false at the end of configure(). 1998-10-06 20:55:38 +00:00
thorpej d681cf055a configure() prototype is in <sys/device.h> 1998-10-06 20:50:15 +00:00
thorpej fedd39b57d Provide configure(), rather than open-coding it in cpu_startup(). 1998-10-06 20:46:01 +00:00
thorpej e3672cdf8a Prototype configure() here, and make it a machine-dependent call that
MI code expects to exist.
1998-10-06 20:44:40 +00:00
pk 2727683a09 more DIAGNOSTIC sanity checks 1998-10-06 19:24:03 +00:00
thorpej 0729240c88 Move the "XXX re-zero proc0 user area" to the end of configure(), before
interrupts are enabled.
1998-10-06 18:58:09 +00:00
kleink 44b31a4395 Use #error instead of causing parse errors; noticed by Heiko. 1998-10-06 18:38:08 +00:00
dante 423c1d8dd3 Make AdvanSys narrow driver compile on BIG_ENDIAN machines.
Thanks to Izumi Tsutsui
1998-10-06 14:44:21 +00:00
leo 3e8b7d3139 Only return COMPLETE when polling. 1998-10-06 09:32:44 +00:00
leo 05ebc10205 Disable SCSI interrupts while polling for the transfer to finish. This
fixes spurious panics while booting my Hades. This bug could also occur
on a TT030.
1998-10-06 09:29:44 +00:00
leo 8a20859c2e Some DEBUG fixups 1998-10-06 09:22:01 +00:00
leo e3704a8e0b Fix DEBUG printf 1998-10-06 09:19:36 +00:00
thorpej 53b61ccd14 Avoid a compiler warning. 1998-10-06 08:51:14 +00:00
perry e7340f0ed3 Fix a potential Y2K bug on some clock chips: we were loading invalid
BCD into the year field of the RTC in years > 1999. It seems to have
worked just fine on my old broken down test machine, but apparently
some others actually get hurt. Suckage. We now make sure that we load
valid BCD.

Other ports should check for variations on this theme.
1998-10-06 05:52:23 +00:00
eeh cd0dd24713 It seems taht 64-bit kernels need bigger stacks. 1998-10-06 05:18:55 +00:00
eeh d0d18d5a83 Fix PIC code initialization. 1998-10-06 05:16:34 +00:00
matt 75f5ffdf21 Change backplace0 to mainbus0 (for consistency with other ports).
Remove unused function protocols from ka410.h and ka43.h
Fix some ka46 missing references
1998-10-06 04:04:30 +00:00
sakamoto 72e565d9b1 Fix unassigned minaddr for uvm_km_suballoc.
Eliminate space at end of line, and so on.
1998-10-06 03:48:12 +00:00
mark 6465aead84 Use braces instead of brackets to surround the SET_ICUS macro. 1998-10-06 02:43:26 +00:00
mark de39833622 Add wsdisplay, wsmouse and wskbd devices. 1998-10-06 02:41:22 +00:00
mark 2bcc60adc6 Add declarations for wsdisplay, wsmouse and wskbd. 1998-10-06 02:40:13 +00:00
mark edbbf502ab Add wscons devices and options. 1998-10-06 02:39:00 +00:00
mark 8a012b843b Include files.wscons
Add files.pckbc (commented out, pending fixing SHARK configs).
1998-10-06 02:37:59 +00:00
matt af8a94ec80 Code references should use movab, not moval. Fix gas-2.9.1 complaints
with intvec.s
1998-10-06 02:07:30 +00:00
mark 08fbcdd506 Fix bug with the return value in filecore_label_locate(). This bug caused
an assertion to fail in disksubr.c if a label was written to a disk with
a filecore partition at the start of the disk.
1998-10-06 01:47:53 +00:00
rvb 71a653d388 Add Coda 1998-10-06 01:44:11 +00:00
mark c0dc3eb90b ADFS -> FILECORE
ADFS is a IDE instance of the filecore filesystem so rename ADFS to FILECORE
to reflect the underlaying filesystem and to bring this in line with the
filecore filesystem in the tree.
1998-10-06 01:17:27 +00:00
matt bf4e491879 Fix boolean dyslexic test. Duh! 1998-10-06 00:41:13 +00:00
matt 8e8f38e0f2 Add a sysctl for newreno (default to off). 1998-10-06 00:20:44 +00:00
thorpej 5006dbf868 cpu_set_kpc() prototype is already in <sys/systm.h>. 1998-10-05 22:11:15 +00:00
tron 29c8a3aa85 Regen. 1998-10-05 20:38:17 +00:00
tron 1469dc411b Correct vendor 0x1191 to "ACARD", add missing Matrox boards.
Fixes PR kern/6251 by Soren S. Jorvang.
1998-10-05 20:34:39 +00:00
pk 40beab6ad6 If a lock is held do not spin in a read/write loop but just read the lock
until it is released. This is easier on the bus cache coherency logic.
1998-10-05 19:58:19 +00:00
thorpej 11bc54234b In epic_init(), attempt to start output on the interface once the interface
is initialized.
1998-10-05 19:10:22 +00:00
mark b4dba57069 Footbridge based kernels do not need constab. 1998-10-05 16:03:04 +00:00
mark e605a01dce Footbridge based kernels don't use dev/cninit.c 1998-10-05 15:41:19 +00:00
lukem a1ea50ee45 * in_pcblookup_port(): deprecate INPLOOKUP_WILDCARD and flags in favour
of a lookup_wildcard arg; simplifies the logic a bit.
* when assigning ephemeral ports in in_pcbbind(), always call
  in_pcblookup_port() with lookup_wildcard=1, so that ephemeral port
  allocation on sockets with SO_REUSEADDR set won't potentially bind to a
  port in use by something else (principle of least surprise).
1998-10-05 14:33:14 +00:00
augustss ce47e78c84 Make MIDI input work again.
Fix from Torsten Duwe <duwe@ns.lst.de>.
1998-10-05 09:21:41 +00:00
christos 550ee6b308 rename getprop routine to avoid conflict with the one in bsd_openprom.h 1998-10-05 07:13:07 +00:00
ross ddde128de9 Track compat/linux/arch/* reorg. 1998-10-05 05:55:35 +00:00
nisimura 8778509c45 * Make cpu_identify() routine table-driven.
* MIPS3 sanity check now allow MIPS1 models to boot.
1998-10-05 05:26:00 +00:00
ross b9fef4b8ad The 2-disk install floppy allows us to add:
* 3000-series CPU support, plus all the tc devices
	* 4100-series CPU support
	* misc SCSI HBA support (removed earlier for space reasons)
1998-10-05 05:04:46 +00:00
ross 4d17a0bfee Reserve an 8K label area on every disk, not just the first. Rewrite the block
addressing and disk changing code. Separate disk addressing into three layers.
(virtual: ustar format space spanning volumes, logical: format space relative
to current volume, and physical: standard meaning). Compute a checksum of the
disk 0 8k label area, and define a label for disk 2, 3.... Detect incorrect
disk changing order and attempt to recognize our disk 0 from its checksum.
1998-10-05 04:56:36 +00:00
mark 5d9338a24b Don't put the fcom device in constab. 1998-10-05 02:46:31 +00:00
mark 664d0f374c Base configuration for CATS kernels. 1998-10-05 02:43:43 +00:00
mark 35f31dce6e Implement consinit() here instead of using the arm32/machdep.c version.
Use information passed from via the boot arguments to determine which
device to use as the console.
Add support for initialising the CATS ISA subsystem.
During the early bootstrapping use fcomcnattach()/fcomcndetach to enable
debug and diagnostic information to be sent to the diagnostic serial
port. This is only used during the early part of initarm() until things
have been relocated and the real console can be initialised().
1998-10-05 02:40:26 +00:00
mark 8909a4e529 Define both EBSA285 and CATS bootinfo structure magic numbers. 1998-10-05 02:36:49 +00:00
mark 4d8d0f4e6d Define fcomcnattach() and fcomcndetach() functions for the diagnostic
serial port.
Disable the old probe and init functions as we no longer use constab and
cninit().
1998-10-05 02:36:02 +00:00
mark 0d3d74ceeb Footbridge based systems don't use cninit() so don't use the version of
consinit() defined here.
1998-10-05 02:33:46 +00:00
mark ed54968bff Regenerate from usbdevs. 1998-10-05 02:31:13 +00:00
mark 0f505e03ac Add Cypress Semiconductor vendor ID and Cypress Mouse product ID. 1998-10-05 02:30:17 +00:00
sakamoto c9937d0234 cleanup. 1998-10-05 02:01:57 +00:00
sakamoto 9f317a1a9d Add syncicache after text loading. 1998-10-05 01:58:03 +00:00
mark 86a0875460 Add dsrtc device and associated file. 1998-10-05 01:21:39 +00:00
mark f452e15aff Add a driver for the Dallas Semiconductor RTC found on CATS motherboards. 1998-10-05 01:20:57 +00:00
mark 18ccba3b4e Make sure ISA interrupts have been setup prior to configuring devices.
This is not nice and a better solution is needed. Really this should be
done when the PCI-ISA bridge is discovered but it is possible that
some PCI interrupts may be routed via the ISA interrupt controller
and thus this needs setting up first.
1998-10-05 01:17:55 +00:00
mark 91eeeff347 Add support for interrupts that are actually routed via an ISA interrupt
controller.
(I'm not happy with this approach but it works so I'll use it for the
moment until I complete run-time selection of the interrupt handling based
on recognised hardware).
1998-10-05 01:09:38 +00:00
mark 197c78db08 Prototype isa_intr_alloc() (Needed by ISA PnP code) and sysbeep(). 1998-10-05 01:05:00 +00:00
mark 100a13e50a Add ISA legacy mode support. Currently this is used by CATS kernels
which routes the PCI IDE interrupts in a similar fashion to i386 machines
(i.e. on ISA irq14 & 15).
1998-10-05 01:03:52 +00:00
mark dda219af66 Add file arm32/isa/isa_cats_machdep.c.
Build isa/isa_io.c and isa/isa_io_asm.S for both SHARK and ISA systems.
1998-10-05 01:01:43 +00:00
mark c2d2dca344 Initial commit of ISA bus support for CATS machines (DC21285 based
motherboards).
1998-10-05 01:00:57 +00:00
mark 60e0cbbab8 Use sysbeep() rather than beep_generate for consistancy and the sysbeep
device.
KNF a chunk of this file.
1998-10-05 00:53:47 +00:00
mark 67d78e486f Remove beep related stub code now we have a sysbeep device. 1998-10-05 00:51:21 +00:00
matt 4a1b880605 Add files.usb. It should work. 1998-10-05 00:49:15 +00:00
mark 8eca271694 Add sysbeep device. 1998-10-05 00:49:13 +00:00
mark ae4624b175 Add sysbeep device with ISA and VIDC attachments. 1998-10-05 00:44:45 +00:00
mark 6f5d4c52a1 sysbeep device attachments for vidc based audio systems. 1998-10-05 00:42:41 +00:00
mark 5f37409d37 Implement sysbeep device for ISA systems. This just hooks into the pcppi
code.
1998-10-05 00:41:31 +00:00
mark 20122120a2 Add arm32/isa/joy_isa.c and arm32/isa/joy_isapnp.c 1998-10-05 00:39:44 +00:00
mark 5fe09f2a80 Add ISA and ISAPNP attachments for joysticks. 1998-10-05 00:35:40 +00:00
thorpej ec897ee047 Fix a problem reported by Michael Hitch. Basically, our libc relies on the
non-standard way of invoking sigreturn, specifically a side-effect that I
overlooked.  Thus, longjmp's return value was getting clobbered.

Sigh, so burn trap #3 just as sigreturn.

XXX We need an SVR4-style {get,set}context(2) to avoid wasting new
XXX trap vectors in the future.
1998-10-05 00:00:17 +00:00
thorpej c1e5866bbe Fix a typo in a comment. 1998-10-04 23:56:17 +00:00
tron 2aac65de87 Regen. 1998-10-04 23:52:43 +00:00
tron a6a06368ce Add S3 Virge/DX, fixes PR kern/6245 by Steve Allen. 1998-10-04 23:50:05 +00:00
thorpej c01f29bdf1 Sigh, we are going to have to burn a vector for Just Sigreturn again,
for now, until we have a more generic {get,set}context().  Update the
comment for trap #3 accordingly.
1998-10-04 23:38:55 +00:00
matt 25054b5cf7 Adapt the NEWRENO changes from the UCSB diffs of BSDI 3.0's TCP
to NetBSD.  Ignore the SACK & FACK stuff for now.
1998-10-04 21:33:52 +00:00
mark 7a9e6fd3f7 Remove dead FPE option. 1998-10-04 19:03:37 +00:00
christos b2b0497860 Regen 1998-10-04 18:31:14 +00:00
christos ea1107f4c7 Add another soundblaster compatible card (Steve Allen) 1998-10-04 18:30:50 +00:00
christos e62c8fd824 Missed a conditional for FFS_EI; appears when we compile without -Ox 1998-10-04 18:07:57 +00:00
christos 9ec65653f5 unobfuscate: !strncmp() != 0 -> strncmp() == 0 1998-10-04 16:51:18 +00:00
christos 18632b9779 Regen. 1998-10-04 16:22:47 +00:00
christos 9fabaa0ca6 Add a few more unimplemented syscall name placeholders. 1998-10-04 16:21:58 +00:00
christos 227ea85cf0 Don't return EINVAL when nset is NULL in sigprocmask and the command is
invalid.
1998-10-04 16:21:13 +00:00
christos c413c43664 add hasremotelocks, but no support yet. 1998-10-04 16:20:16 +00:00
christos 0c025c7e61 fix fdup2 implementation; it passes the file descriptor itself, not a pointer
to it in arg.
1998-10-04 16:19:50 +00:00
bouyer cf5be93206 Add ext2fs. 1998-10-04 11:45:44 +00:00
veego 952dd0f6bc There is no need to include ../linux/linux_ioctl.h. 1998-10-04 11:25:28 +00:00
fvdl 26c9084f20 Fix pointer fuckup that made getdents() stop working. 1998-10-04 10:17:54 +00:00
fvdl 19f71dc8ff Fix wrong strncmp test. 1998-10-04 09:40:09 +00:00
fvdl 8096c25afc Assign my copyright to TNF. Merge with others were appropriate.
Regen syscall files after script change.
1998-10-04 00:02:23 +00:00
fvdl e6145e36a2 Correct Linux compat include file names. 1998-10-03 23:38:32 +00:00
fvdl 2b727ad9e9 The linux compat i386 "files" file moved into arch/ 1998-10-03 23:17:03 +00:00
christos 6524452816 Fix confusion about about service types (from FreeBSD). Now dns resolution
works.
1998-10-03 22:03:07 +00:00
scw acce9b3b1b Make this compile again when DEBUG is defined. 1998-10-03 21:58:52 +00:00
thorpej 49a45fed9b If the memory range of the machine is such that no bouncing is necessary,
or if the device is capable of 32-bit DMA (specified by ISABUS_DMA_32BIT),
clear the map's bounce threshold at map creation time.
1998-10-03 21:53:04 +00:00
thorpej 01a1588265 Initialize the DMA map's bounce threshold to the tag's at map creation time,
and use the map's threshold when loading the map.
1998-10-03 21:38:48 +00:00
christos 913cee1069 Merge in lite2 changes, and fix a typo that caused pool memory corruption. 1998-10-03 21:29:07 +00:00
thorpej 10557b15d7 Add a private bounce threshold to the DMA map, initialized in a bus-dependent
fashion.
1998-10-03 21:24:00 +00:00
christos accc6fd407 Fix bug in TIOCLGET 1998-10-03 21:22:57 +00:00
christos 10b5900f45 update for linux file move. 1998-10-03 20:39:32 +00:00
christos 155e9efe9c Don't install includes 1998-10-03 20:30:50 +00:00
christos af8c2a82b9 Remove this file. 1998-10-03 20:30:37 +00:00
christos 96dc2f3c56 Remove stray debugging printfs 1998-10-03 20:28:03 +00:00
christos 5f13e45116 Forgot those two. 1998-10-03 20:20:04 +00:00
christos 908291d2fe Attempt to fix the mess. 1998-10-03 20:17:36 +00:00
christos e00e31dcab Integrated in common. 1998-10-03 20:02:26 +00:00
eeh 0a89614e93 Fixup big-endian syscall args. 1998-10-03 19:45:37 +00:00
eeh fc6c67ff5d Fixup big-endian syscall args. 1998-10-03 19:33:32 +00:00
eeh 1281be6b0e Fix big-endian syscall args. 1998-10-03 19:31:24 +00:00
eeh 68458c66e4 Fixup big-endian syscall args. 1998-10-03 19:25:36 +00:00
eeh 903d20a930 Fix big-endian syscall args. 1998-10-03 19:21:11 +00:00
christos 49b61257dc Moved via repository copy. 1998-10-03 18:50:20 +00:00
christos 5bc85e96b4 Moved via repository copy 1998-10-03 18:47:24 +00:00
christos a7ed63d0ee moved via repository copy. 1998-10-03 18:45:22 +00:00
christos 6e98c7aef2 Moved via repository copy 1998-10-03 18:44:32 +00:00
christos 6e31782a3f moved via repository copy. 1998-10-03 18:43:28 +00:00
christos c0f54daf70 Add em_alpha_exp 1998-10-03 18:17:14 +00:00
christos db12fcacf2 Add a few new machine numbers and aux vectors. 1998-10-03 18:13:58 +00:00
christos e24d09740e call gate for solaris-2.6 syscalls [from frank] 1998-10-03 18:08:39 +00:00
christos 36f308f4cc Add an LDT for Solaris-2.6 syscalls [from Frank] 1998-10-03 18:05:25 +00:00
drochner 304929e7ff regen 1998-10-03 16:15:39 +00:00
drochner 720885a1e9 Use a private implementation of sys_sigvec(). Ultrix uses an sv_flags bit
unknown to NetBSD and sigaction1() does (now?) complain about it.
1998-10-03 16:13:20 +00:00
fvdl 192330fdc1 Assign to TNF completely. 1998-10-03 15:48:38 +00:00
drochner 835d1b736c Make contsigmask, stopsigmask, sigcantmask kernel private. 1998-10-03 14:29:02 +00:00
drochner b429e319fb french keymap, from Matthieu Herrb <matthieu@mipnet.fr> per PR kern/6231 1998-10-03 12:02:45 +00:00
drochner bdb85f9116 add definition for french keyboard 1998-10-03 11:59:44 +00:00
jtk 787fcfeac7 copyright has been assigned to TNF, update notice 1998-10-03 02:14:30 +00:00
kleink c68106edad Use #error instead of causing a parse error. 1998-10-02 21:21:04 +00:00
drochner 4a2e6e52a9 need "compat" dir to get emulation headers installed (for kdump) 1998-10-02 20:20:29 +00:00
matt d9cb3415b1 Fix typo (pointed by Matthias Drochner). 1998-10-02 20:00:28 +00:00
is 66d6e30a1b Yet another workaround for pmap bugs. Several reports on the port-amiga
list claim this helps with some big-machine situations.
1998-10-02 19:29:49 +00:00
drochner 41c0179c3c use old sigmask in sigcontext and old sigreturn syscall in Ultrix
emulation mode
1998-10-02 19:25:33 +00:00
hwr 0959469679 Also install if_gre.h in /usr/include/net/ 1998-10-02 19:23:55 +00:00
drochner 18a5d4ffc6 set up old style sigmask on COMPAT_ULTRIX too 1998-10-02 18:59:56 +00:00
drochner 6b079d1e82 repair signal handling:
-use own sigcode since the native one uses a sigreturn syscall not present
 in Ultrix
-route sigreturn to compat_13_sigreturn
1998-10-02 18:53:23 +00:00
drochner 5bcf824ff0 change debugging output in compat_13_sigreturn to distinguish from native
sigreturn
1998-10-02 18:49:00 +00:00
drochner a366b483ec compat_13_sigreturn is needed for compat_ultrix too 1998-10-02 18:46:58 +00:00
drochner 4345019cc0 implement a separate ultrix_sigcode[] 1998-10-02 18:44:32 +00:00
leo a30987cbf6 Re-arrange networking options a bit (Julian Coleman) 1998-10-02 12:50:35 +00:00
christos af5667d954 We have SA_NOCLDWAIT now, and for SA_SIGINFO, we ignore the bit, but we
always construct siginfo_t and pass it to the handler. So kill the printfs..
1998-10-02 11:54:16 +00:00
mrg 9cf8633378 back out previous. 1998-10-02 08:00:57 +00:00
sakamoto c5aade90a8 Oops, ofppc don't have wscons. 1998-10-02 07:12:25 +00:00
thorpej ab915f7483 Oops, missing immediate qualifier, pointed out by Chas Williams. 1998-10-02 02:02:46 +00:00
matt e19b4629ab Use wd.h, not wdc.h -- we are checking for the presence of disks, not
controllers.  (there may be a controller which has only an atapibus
but no wd disks).
1998-10-02 01:37:51 +00:00
ross e1b25b7bd6 Make spec_write() process errors and return them, otherwise we don't even
notice things like hitting the end of a partition or device.  (To be sure,
writes to block special files are rare, but as long as we support them...)
1998-10-02 00:21:39 +00:00
fvdl b28935cee3 Add missing field to le_softc structure, missed in previous commit. Name
it consistently with the other fields.
1998-10-02 00:20:52 +00:00
fvdl 5dbf12a22a Regen. 1998-10-01 23:33:25 +00:00
fvdl b7957e0200 Fix typo in 905BT4 product name. 1998-10-01 23:32:41 +00:00
ross 78492e307a If not MULTIPROCESSOR then identify the interrupt target cpu by hwrpb id (%d)
rather than attachment name, and hence avoid referencing `cpus'.
1998-10-01 22:57:30 +00:00
christos 0bf5ff6ade make this compile with DIAGNOSTIC again. 1998-10-01 21:26:55 +00:00
matthias 49c778c3b5 Use __LIBC12_SOURCE__, not __LIBC12_SOURCE :-) 1998-10-01 21:16:06 +00:00
thorpej 9e2b536bef Update for signal changes. 1998-10-01 20:41:29 +00:00
drochner a81796636f support media selection / full duplex 1998-10-01 20:39:01 +00:00
thorpej 8253135408 Update for bcopy/bzero -> memcpy/memset changes. 1998-10-01 20:05:09 +00:00
kleink 629696b60c Recognize two additional feature test macros for a reentrant errno declaration. 1998-10-01 19:53:54 +00:00
christos 4a904760a4 the pool boy forgot to convert this to use pool stuff. Goodbye long uptime! 1998-10-01 19:26:30 +00:00
matt 259cf4c4a1 Don't include <machine/mouse.h>. Some platforms (e.g. alpha) don't one. 1998-10-01 19:10:26 +00:00
thorpej c37cc930f4 Fix a couple of printf formats. 1998-10-01 19:08:05 +00:00
christos cfd3302aa1 Need more room for signal mask 1998-10-01 19:00:06 +00:00
perry 036f631693 shut up egcs complaints by adding braces 1998-10-01 18:58:28 +00:00
perry 4a2f07c9cd shut up egcs complaints about braces 1998-10-01 18:57:05 +00:00
perry 5535f2a14b Add braces to shut up egcs 1998-10-01 18:53:37 +00:00
drochner 1693b8b4a6 minor changes to console handling in zstty_attach():
-wait 20ms between printf() and reconfiguring the hardware
-set cn_tab->cn_dev here because this is the place where the real minor
 number is known
1998-10-01 18:52:42 +00:00
erh 33dacac36e linux_machdep.h has moved. 1998-10-01 18:32:33 +00:00
christos 627091bd84 Provide a suitable default so that kdump compiles on architectures
not supported yet.
1998-10-01 18:23:37 +00:00
erh 270a2b8bc4 Enable linux for includes and syscall building. 1998-10-01 16:23:25 +00:00
erh b0367216c1 Macros to call a linux syscall. 1998-10-01 16:19:59 +00:00
erh 79a9d0776d Add linux compat includes. 1998-10-01 16:18:53 +00:00
erh b9e8494b1d Add linux signal trampoline code. 1998-10-01 16:18:46 +00:00
erh 8c963d5a04 Move elf function name macros to exec_elf.h. COMPAT_LINUX is no longer limited to ELFSIZE==32. 1998-10-01 16:06:24 +00:00
erh 3f05212f07 Move elf function name building macros here (ELFNAME, ELFNAME2, etc...) Add defines related to elf note sections for use in determining executable type/emulation. 1998-10-01 16:04:37 +00:00
erh f8bca8bacd Add SA_SIGINFO flag for linux compat use. 1998-10-01 15:58:53 +00:00
erh a0480f4f57 Only include linux a.out makecmds if EXEC_AOUT is defined. 1998-10-01 15:55:34 +00:00
erh d954a84b41 Linux emul_* structures chahged names. 1998-10-01 15:53:33 +00:00
eeh 0aa87c38cc Overhaul. Now will run simple things like /bin/sh and /bin/echo. 1998-10-01 14:27:56 +00:00
drochner 5ddf423985 print reason for arplookup() failure (ala FreeBSD) 1998-10-01 11:04:24 +00:00
frueauf ce58a65013 Sync comments for REALBASEMEM/REALEXTMEM with GENERIC. 1998-10-01 10:01:20 +00:00
thorpej ed03ee06e1 Update for signal changes. 1998-10-01 08:28:30 +00:00
thorpej 6a7b0ca257 Adapt to signal changes. 1998-10-01 06:35:09 +00:00
erh 502a65c40d Add linux real-time signal trampoline. 1998-10-01 04:37:15 +00:00
erh 8ada127535 Path to linux_machdep.h changed. 1998-10-01 04:36:05 +00:00
erh 6a0907d521 linux_machdep.c has been moved. It is now included from compat/linux/i386/files.linux_i386. 1998-10-01 04:34:54 +00:00
erh fd21ba4d9b Add info on things left to do. 1998-10-01 04:27:33 +00:00
erh 5199a97864 Add the architechture-wise multiplexing header files. These are the files that should be included by anything that needs a linux compat header. These will then include the appropriate architechture dependent and common header file(s). 1998-10-01 04:20:16 +00:00
erh 4dc8295a26 Enable "includes" and "all"(=makesyscalls.sh) targets for alpha, common and i386. 1998-10-01 04:16:33 +00:00
erh 5dbbd9e2d1 Architechture-wise multiplexer for linux_syscalls.c. This exists because kdump, et al. include this file. 1998-10-01 04:13:25 +00:00
erh df1521ebe1 Modified to reflect new file layout. arch/<arch>/conf/files.<arch> should include this file and the appropriate compat/linux/<arch>/files.linux_<arch> file. 1998-10-01 04:11:26 +00:00
erh 9eef4e2e35 Kinda moved to compat/linux/Makefile.sc. 1998-10-01 04:08:38 +00:00
erh 19e9e9c2ef These syscall table files have been regenerated in compat/linux/i386. 1998-10-01 04:07:34 +00:00
erh d70c9cdbc9 Wheeee!: 8-way split of compat/linux/linux_misc.c into common code and multi-architechture functions. 1998-10-01 04:05:54 +00:00
erh c0a539a588 Define structures needed for these functions. 1998-10-01 04:00:20 +00:00
erh 46f5ff0021 Move compat/linux/linux_util.h to common. 1998-10-01 03:54:36 +00:00
erh 29217a6082 Move compat/linux/linux_sockio.h to common. 1998-10-01 03:53:00 +00:00
erh fe99a5c47e Add a couple function prototypes from linux_misc.c. 1998-10-01 03:49:59 +00:00
erh b64f5d3b1a Move IPC headers to common. The msg, sem and shm files, in addition to other common structures and to avoid creating several more machine dependent header files, include the syscall arguments for several system calls which don't exist on all architechtures. 1998-10-01 03:48:31 +00:00
erh e6ad366c04 Moved from compat/linux/linux_dirent.h to common. 1998-10-01 03:37:51 +00:00
erh e6a3796d67 Moved from compat/linux/linux_termios.c to common. 1998-10-01 03:36:27 +00:00
erh 658c307a1a Move compat/linux/linux_socketcall.h to multiarch. Defines for the socketcall multiplexer. 1998-10-01 03:34:50 +00:00
erh 81cc399a4d Split linux/compat/linux_socket.c into common and multi-architechture parts. linux_socketcall.c contains the socketcall multiplexer. 1998-10-01 03:33:17 +00:00
erh 4ab27f44f9 Move linux/compat/linux_ipccall.h to multiarch. Defines for the IPC multiplexerand associated functions. 1998-10-01 03:29:45 +00:00
thorpej c5b8d42e66 Need 14 longs for jmp_buf now (sigcontext has 128-bit signal mask at the
end).
1998-10-01 03:28:11 +00:00
erh d4649701f2 Split compat/linux/linux_ipc.c into common and multi-architechture parts. The IPC multiplexer and associated functions are now in linux_ipccall.c 1998-10-01 03:27:38 +00:00
thorpej 370d14060a Adapt to signal changes. 1998-10-01 03:26:18 +00:00
erh f7ec994736 Move compat/linux/linux_ioctl.c to common. 1998-10-01 03:24:28 +00:00
erh 0060940d40 Split compat/linux/linux_file.c into common and multi-architechture parts. 1998-10-01 03:22:11 +00:00
erh f7ac1bd375 Split compat/linux/linux_exec.c into common, elf and a.out parts. 1998-10-01 03:11:33 +00:00
thorpej d15a64c38b Adapt to signal changes. 1998-10-01 02:53:53 +00:00
erh 5b06d1ed0b Move compat/linux/linux_error.c to common. 1998-10-01 02:32:24 +00:00
erh a20d9dce3e Moved compat/linux/linux_cdrom to common. 1998-10-01 02:30:36 +00:00
erh fcaf5df8c2 Split compat/linux/linux_signal.c into i386, common and multi-architecture parts. 1998-10-01 02:27:33 +00:00
erh 7588fef564 Moved here from arch/i386/include/linux_machdep.h. 1998-10-01 02:22:01 +00:00
erh ccea47d790 Moved to compat/linux/i386/linux_machdep.h. 1998-10-01 02:20:52 +00:00
erh ecb2c14c6e Moved here from arch/i386/i386/linux_machdep.c. 1998-10-01 02:17:31 +00:00
erh 3466d00034 Moved to compat/linux/i386/linux_machdep.c. 1998-10-01 02:15:50 +00:00
erh 2637ab656d Move compat/linux/linux_exec.h to common. 1998-10-01 02:11:00 +00:00
erh 0b412af4e1 Add linux i386 machine type. 1998-10-01 02:09:12 +00:00
erh 39fa21b763 Regen. 1998-10-01 02:05:32 +00:00
erh 14b1e271b5 Move compat/linux/syscalls.master to i386. Add a few syscalls while I'm here. 1998-10-01 02:03:17 +00:00
jtk 358521eba1 add prototype for bioscall() 1998-10-01 02:00:37 +00:00
erh 9c4b9e9840 Split compat/linux/linux_termios.h into i386 and common parts. 1998-10-01 01:52:58 +00:00
erh 5139d084ba Split compat/linux/linux_ioctl.h into i386 and common parts. 1998-10-01 01:33:03 +00:00
erh ecdc99eb5f Split linux_types.h into i386, common and multi-architechture parts. 1998-10-01 01:31:10 +00:00
erh 79905dc1f3 Split linux_socket.h into i386 and common parts. 1998-10-01 01:19:07 +00:00
erh 45c3ba3edb Split linux_fcntl.h into i386 and common parts. 1998-10-01 01:16:42 +00:00
thorpej 586b0b3d1b Implement compat_13_sys_sigreturn(). 1998-10-01 01:03:56 +00:00
erh a3f5b4f0e7 Split compat/linux/linux_errno.h into i386 and common parts. 1998-10-01 01:03:37 +00:00
erh a7f2aff0a7 Split compat/linux/linux_signal.h into i386 and common parts. 1998-10-01 00:57:29 +00:00
erh b8454a0669 Split compat/linux/linux_mmap.h into i386 and common parts. 1998-10-01 00:53:44 +00:00
jonathan 379c9be4a8 More patches for ARC from Noriyuki Soda:
* commit isapnpvar.h changes required for ARC to support plain isa.
  * fixup mistake over mips/include/cpuregs.h.
  * mips/mips_machdep.c:
     set L2 cache-size for arc, cleanup use of L2cache present
     vs L2 cache-size variables. check for no L2 cache on kernels
     configured to require one. misc cleanups.
  * mips/mpis/trap.c: more locore stack-traceback  label cleanup.
XXX  Locore callbacks for mips3, mips4, r4600 cacheflush need more work.
1998-10-01 00:42:37 +00:00
erh 948d228b24 Moved from compat/linux. 1998-10-01 00:42:01 +00:00
erh 18c41cce3e Moved to compat/linux/i386. 1998-10-01 00:37:53 +00:00
erh 72041f8e72 Alpha version of the linux compat machdep signal and machdep ioctl stuff. 1998-10-01 00:34:22 +00:00
erh b513364563 Alpha specific version of sys_pipe and signal translation array. 1998-10-01 00:32:27 +00:00
thorpej 8b220e1148 Define SYS_compat_13_sigreturn13. 1998-10-01 00:29:51 +00:00
erh 1a0a0103aa New list of files for the i386. 1998-10-01 00:29:11 +00:00
erh 293ccb5512 New makefiles for includes, syscall gen. 1998-10-01 00:28:33 +00:00
thorpej ae2fcdc40a Oops, typo. 1998-10-01 00:22:02 +00:00
thorpej c227be8efc Expect the syscall number to push to be in register d0. 1998-10-01 00:11:11 +00:00
thorpej fa582abe7f Move trap #1 and trap #2 handlers here. Trap #1 handler now places
the cpmpat_13_sigreturn13 syscall number into d0 before calling the
sigreturn stub.
1998-09-30 23:52:32 +00:00
thorpej bcf14a99e2 Garbage collect trap #1 and trap #2 handlers; they're moved to
trap_subr.s
1998-09-30 23:47:33 +00:00
thorpej 1e62485c23 If !COMPAT_13, make trap #1 produce an illegal instruction. Fix the comment
for trap #2 to reflect that it's the trace trap.
1998-09-30 23:13:58 +00:00
thorpej a11e6632a8 Pull in opt_compat_netbsd.h 1998-09-30 23:01:28 +00:00
thorpej db9f3cbe30 Use the new special syscall entry point, and specify SYS___sigreturn14.
Makes the sigcode grow by 4 bytes.

Note that we are no longer able to use the HP-UX breakpoint "sigcodetrap"
hack here, as a result.  This means that BSD programs can no longer be
debugged by HP-UX debuggers.  *Sniff*  Don't break my heart...
1998-09-30 22:38:17 +00:00
thorpej f52431f2a3 Use the symbolic constant SYS_exit. 1998-09-30 22:26:28 +00:00
thorpej 35d282c8d5 Make sure SYS_exit and SYS___sigreturn14 are defined. Garbage collect
SYS_sigreturn.
1998-09-30 22:23:13 +00:00
thorpej 38084c6615 Note that trap #1 is compat_13_sigreturn, and give trap #3 to syscalls
which require special handling, e.g. sigreturn on m68k.

This differs from the old sigreturn trap in that we require the syscall
number to be in register d0, just like the regular syscall entry point.
This will allow sigreturn to be versioned in the future without the need
to allocate another trap vector.
1998-09-30 22:14:11 +00:00
erh ad1f9288a2 Stubs for future development of linux compat architechtures. 1998-09-30 21:55:57 +00:00
thorpej 1ce207046d Adapt to signal changes. 1998-09-30 21:55:02 +00:00
thorpej aaec09ab91 Pull in <m68k/frame.h> if __M68K_SIGNAL_PRIVATE, for sigstate. 1998-09-30 21:52:45 +00:00
tls c4730d65cf Switch order of TNF and UCB copyrights so UCB copyright is first; this seems more appropriate since UCB wrote the original code, after all. 1998-09-30 21:52:24 +00:00
erh cb71edeaa4 Common makefile to process syscalls.master files. 1998-09-30 21:38:46 +00:00
erh a919a6b4a8 New header files for Linux compat on the Alpha. 1998-09-30 21:36:23 +00:00
erh 69ebd14bba Generate. 1998-09-30 21:34:32 +00:00
thorpej f6ea7521d7 Put the sigstate and sigframe definitions in signal.h, protected by
__M68K_SIGNAL_PRIVATE.
1998-09-30 21:04:48 +00:00
matthias 777ffc95a2 Fix a small type in sendsig.
Fix some esym typeclash lossage.
1998-09-30 20:20:03 +00:00
matthias 5267ada16a use __sigreturn14 in sigcode. 1998-09-30 20:17:29 +00:00
matthias d067796204 config doesn't like c-style comments. 1998-09-30 20:16:17 +00:00
pk f382e91b5e Add a field to identify the processor that has a process' FPU context. 1998-09-30 18:40:58 +00:00
ragge 6530a14556 Typo. 1998-09-30 18:40:04 +00:00
pk 4826aac9cf Make the current FPU owner (`fpproc') a per-CPU entity. Unresolved issue
as yet: lazy FPU context switching may require co-operation from other
CPUs.
1998-09-30 18:38:57 +00:00
erh 847d4565e9 Initial support for linux compat on the alpha. Not quite working. 1998-09-30 18:01:53 +00:00
mrg fdc5499c5f back out previous. 1998-09-30 15:44:10 +00:00
ragge c0b9fc5616 Make kernel compile after recent signal changes. 1998-09-30 14:09:59 +00:00
tv 8219f068e2 Declare silent success on madvise(). As an advisory call, it is harmless
to pretend success even though it's not supported, and some emulations
rely on its success.
1998-09-30 12:07:51 +00:00
bouyer 5440442505 Not time to #include <machine/bswap.h>m, it will come with the move
of bswap*() from libutil to libc.  Sorry !
1998-09-30 09:08:16 +00:00
jonathan fcf7a78c02 Workaropund fix for PR #5239 from <minoura@kw.netlaputa.ne.jp>:
stop  null_node_create() from locking the nullfs mountpoint  multiple
  times. Avoids a guaranteed, repeatably "locking against myself" panic
  during mount of a nullfs filesystem.  nullfs filesystems are still as
  buggy as ever (e.g., see PR# 4907) but this you at least mount them.
1998-09-30 06:50:10 +00:00
hwr eaccb9cd8d Start supporting IPPROTO_MOBILE (55) encapsulation. This is yet
another tunneling protocol used by the Mobile-IP people. See RFC 2004
for this.
1998-09-30 05:59:27 +00:00
thorpej 21adfe5c18 Oops, brain'o. 1998-09-29 23:45:25 +00:00
matt cf95587273 Sync with GENERIC. 1998-09-29 23:18:57 +00:00
matt 6e32aa4af4 Invert the RXCOPY test. Note that most new platforms will not
have relaxed alignment so the de driver should just work on them.
1998-09-29 22:40:52 +00:00
thorpej 16b0d8f1e4 Disable the code that halts secondary processors in cpu_reboot(). Halting
the secondary works, but not when called from here?!  XXX!
1998-09-29 21:59:33 +00:00
thorpej d46253f21c Implement vsprintf(). 1998-09-29 21:03:02 +00:00
thorpej ce57c93ef5 some temporary debugging printfs in the IPI code. 1998-09-29 19:40:33 +00:00
drochner fb345194ad document CLOCK_COMPAT_OSF1 1998-09-29 18:25:54 +00:00
drochner 70d1e71ea0 Allow to use the RTC chip in a way compatible to OSF/1: use an offset
of 52 years between RTC and UNIX time.
This is controlled by "option CLOCK_COMPAT_OSF1".
1998-09-29 18:23:55 +00:00
pk 25e37f3b97 In addition to the spinlock, use the lockmgr() to serialize access to
the back-end page allocator. This allows the back-end to sleep since we
now relinquish the spin lock after acquiring the long-term lock.
1998-09-29 18:09:29 +00:00
drochner 88b626a585 make compile w/o MULTIPROCESSOR 1998-09-29 15:55:47 +00:00
tv b8aba69399 Bracket stray printf()s by #ifdef DEBUG. 1998-09-29 14:15:49 +00:00
bouyer ecb13d449a LKM for ext2fs ... better late than never :) 1998-09-29 10:26:58 +00:00
bouyer b10470bc11 #include opt_uvm.h only if _KENREL and !_LKM
Make ext2fs_init() call ufs_init(). it was doing the init by itself,
testing for extern done != 0. This bug was hidden by the fact that
ext2fs_init() is called before ffs_init().
1998-09-29 10:24:57 +00:00
thorpej 55df520938 Can't use -traditional; __RENAME() breaks due to a limitation in the
"traditional" C preprocessor.
1998-09-29 08:28:20 +00:00
thorpej 5a5380b92b This program is icky, and will die soon. So, don't put a whole lot of
effort into it, but make it build again by casting the second arg to signal().
1998-09-29 08:27:36 +00:00
thorpej 005af97f9e Use "print-objdir". 1998-09-29 08:16:11 +00:00
thorpej ac0d359bcb Initialize the CPU ID in the simplelock. 1998-09-29 07:29:53 +00:00
thorpej cf06751120 - Add a CPU identifier to the simplelock if LOCKDEBUG.
- Arrange for <machine/lock.h> to provide LOCKDEBUG functionality if
  LOCKDEBUG && MULTIPROCESSOR.
1998-09-29 07:29:15 +00:00
thorpej 69d81d8df1 Prototype cpu_halt_secondary(). 1998-09-29 07:07:36 +00:00
thorpej 30e4de5632 In cpu_reboot(), halt the secondary CPUs. 1998-09-29 07:07:09 +00:00
thorpej 1b8e855f2a First try at a HALT interprocessor interrupt handler. 1998-09-29 07:06:02 +00:00
thorpej 94b97dce9b CPUF_HATCHED is dead, replaced by cpus_running bitmask. 1998-09-29 07:05:30 +00:00
thorpej 99698d1a1a - Use a bitmask for "running CPUs", rather than a flag in the softc.
- Add a function to halt a secondary CPU.
- Enable interrupts on secondary CPUs once they've hatched.
1998-09-29 07:04:58 +00:00
thorpej 469f020ae3 Don't process CLOCK or DEVICE interrupts if we're not the primary CPU. 1998-09-29 07:02:04 +00:00
thorpej 30ec5015b1 In exception_return(), if MULTIPROCESSOR, skip software interrupts, ASTs,
and floating point handling if we're not the primary CPU.
1998-09-29 07:01:16 +00:00