Commit Graph

26833 Commits

Author SHA1 Message Date
perry 098ba22210 1) Add infrastructure to generate lint stub files from stylized
comments in .S files.
2) Update "make lint" target to use generated lint stubs.
2001-05-15 22:34:36 +00:00
perry e69a194db2 1) Add stylized comments (used by new lint stub generation
infrastructure) to indicate what C stubs should be generated for
   various entry points.
2) Add comments noting various artifacts discovered while performing
   task 1), including a bunch of stuff that may very well no longer be
   used.
2001-05-15 22:31:38 +00:00
simonb a411a63d8e Add the processor IDs for the 4Kc and 5Kc CPUs and some MIPS32/64
coprocessor 0 registers.
2001-05-15 21:48:50 +00:00
ragge 825165a54a Octal numbers _must_ have a heading '0'! 2001-05-15 18:59:45 +00:00
toshii fd61423f9b Change _ARM32_*_H_ to _HPCARM_*_H_. 2001-05-15 16:15:22 +00:00
lukem 103a49d158 delint: don't try & return something from void eisa_intr_disestablish() 2001-05-15 15:07:37 +00:00
lukem 33e8c1a04f delint: don't try & return something from void pci_intr_disestablish() 2001-05-15 14:48:57 +00:00
tsutsui 8f3dc26a16 Don't forget to set dma_count register in picaDmaStart().
XXX fd still does not work. (no longer hangs, but causes data_overrun)
2001-05-15 14:29:17 +00:00
leo 68f5fe6e81 Split pci_machdep into a generic/hades/milan part. There is much difference
in configspace and interrupt handling.
2001-05-15 14:14:48 +00:00
leo 3ac9086605 Add an NMI handler for the Milan. 2001-05-15 13:57:43 +00:00
leo 4a1227bb56 Add some Milan support functions:
- Low level isa interrupt handler
  - NMI fault handler - catches PLX access errors
  - PCI configspace read/write functions
2001-05-15 13:49:56 +00:00
leo 6d7aa9b12e Enable NMI for Milan. It is used for signalling PLX faults. 2001-05-15 13:46:23 +00:00
minoura 4bff72882b Missings from the previous commit.
From Izaki-san.
2001-05-15 09:10:05 +00:00
msaitoh 9ae59f3041 convert two consecutive "shll"s with one "shll2" 2001-05-15 08:54:56 +00:00
nisimura 96398342f4 Rather better to have |= to make sure spl0 condition, allowing to preserve
processor model specific SR bit pattern on pcb0 initialization.
2001-05-15 06:01:23 +00:00
bjh21 f44b12db52 Make microtime properly monotonic, with code derived from the /alpha
implementation.
2001-05-14 23:45:39 +00:00
jdolecek a97bf5e6b4 Change biosmca() to export the model number via biosmca_ps2model
variable, if the machine has a MCA bus according to info returned
by BIOS (i.e. on machines without MCA bus, biosmca_ps2model would be zero).

biosmca() is expected to be called on beginning the initialization,
and biosmca_ps2model is then used for further checks.
2001-05-14 22:14:47 +00:00
fredette 0c48999192 Rewrote a variable constraint to make gcc 2.95 happy. 2001-05-14 20:39:52 +00:00
fredette c5feae5dbf Now always define PGSHIFT. Thanks to the ELF move, note the new
larger msgbuf size and different KERNBASE.
2001-05-14 20:35:58 +00:00
ross 26882092f4 o Deal with stray machine checks
o Add for alpha a security-sensitive rate-limiting printf(9) wrapper based
  on ratecheck(9):  void rlprintf(struct timeval *t, const char *fmt, ...);
2001-05-14 19:56:22 +00:00
ross f62f237fde Fix new DEBUGLIST feature. 2001-05-14 19:49:03 +00:00
drochner e047259a1f Initial import of the known working kernel bits for the NetBSD/cesfic
port. cesfic is a VME board with one or two mc68040 processors. See
the README file for details.
The port is working well with a.out userland, there are some problems
with ELF still, like applications running out of memory where it is not
expected. Some parts, in particular the pmap (which was taken from hp300
four years ago), need updating, but this is easier done within the NetBSD
CVS tree.
2001-05-14 18:22:58 +00:00
matt 4eaed60c97 Add IP32 2001-05-14 17:59:22 +00:00
matt 50522d3e8f Add null ip32_bus_reset. Add cpu_intr_establish which calls
crime_intr_establish.  XXX cpu_intr_establish needs to have the
"normal" intr_establish arguments.
2001-05-14 17:56:36 +00:00
matt 4cf3bc7ebc Define splserial to be the same as spltty(). 2001-05-14 17:55:03 +00:00
toshii c939f00e98 Abandon disabled_mask and spl_mask, and use only current_spl_level to
manage interrupt masking.

This change is necessary for straightforward implementation of coming IPL
support for cascaded intrs, and it should not impair performance.
2001-05-14 16:19:30 +00:00
fredette 1ef476f4a4 As a side-effect of the ELF conversion, the msgbuf
can now be 8K large.  Removed more 68881 code that
is only useful if you have the real silicon, which
the 68010 never will.
2001-05-14 15:36:42 +00:00
fredette 9ec520c479 Now, instead of swapping in and out the PROM's segment zero,
swap in and out the mappings for virtual pages zero through three,
which are what the PROM really uses.  This is tied to the
move to ELF and the low memory usage changes.
2001-05-14 15:12:39 +00:00
fredette b49df54c83 One bonus of moving to ELF is that the boot loader on the sun2
now loads the kernel into physical memory at the linked address.
So we link the kernel a little lower virtually, but the bootloader
actually will load it higher in physical memory than before.
This allows us to quadruple the size of the msgbuf to 8K, and
we also shuffle around tmp_vpages and the temporary stack.
2001-05-14 15:07:23 +00:00
fredette d36a2c2284 Made changes to support ELF. Highlights include:
To find the kernel symbol table, instead of expecting
the old a.out struct exec from locore.s, use the
ELF headers found after the kernel text.
2001-05-14 15:00:28 +00:00
fredette f7c1abe426 Many changes to support ELF. Highlights include:
Added % to all register names.  The boot loader now
loads us exactly where we're linked, so no PIC or
remapping funny business.  Removed more 68881 code
that is only needed with the real silicon, which
a 68010 will never have.
2001-05-14 14:44:11 +00:00
ragge 74d7e1ecfa Write support for TU58 tapes written. 2001-05-14 14:43:45 +00:00
jdolecek 6c225c676c Compact the BIOS CFG printout 2001-05-14 14:14:09 +00:00
leo b38e85279e Allow attachment of a pc-keyboard at console attach time. 2001-05-14 13:18:47 +00:00
leo 6f308f43e8 Add wscons related includes. 2001-05-14 13:10:45 +00:00
leo b522de8af5 Adapt for the Milan. 2001-05-14 11:58:30 +00:00
leo 4eec72908c Regen. 2001-05-14 10:41:03 +00:00
leo f284e82b99 Add (ws)console stuff. 2001-05-14 10:35:30 +00:00
scw 94225b1490 port-mac68l/12931 by Dave Huang:
Add an itepoll() function. This one slipped through my recent sweep
of line-disciplines...
2001-05-14 09:27:06 +00:00
ragge 73b901c711 Add checksum calculation, busy-wait loops for receive packets and use
correct interrupt levels (spl7). Reading tapes now work reliable.
2001-05-13 21:19:44 +00:00
tshiozak b1c2276feb Correct a simple bug in the recent commit (pmap.c:1.19) by thopej.
I guess he indents to prepare a temporary variable for saving the next
pointer of a list element, but he seems to forget to substitute the
pointer for the variable.  This often causes my dreamcast panic.
2001-05-13 19:41:17 +00:00
scw 7e86548d5c doh, make the last fix compile for '147. 2001-05-13 18:35:19 +00:00
chs b98b7c2224 turn on printf format-string checking and -Werror. fix all warnings. 2001-05-13 16:55:37 +00:00
matt ed4e69766c Add VAX640 2001-05-13 15:37:28 +00:00
ragge 68d0ed5c0c Add bus type. 2001-05-13 15:24:18 +00:00
bjh21 330163a77f Include opt_cputypes.h, since we use CPU_*. 2001-05-13 14:41:56 +00:00
bjh21 ba2ed3776e Refer to the Risc PC IOMD by its real name (which appears to be IOMD20). 2001-05-13 14:30:00 +00:00
bjh21 b9ded015f4 strstr() is no longer used in the kernel. G/C it. 2001-05-13 14:17:36 +00:00
bjh21 e2b24925d1 Use get_bootconf_option() to find boot options, rather than home-grown
strstr()-based hacks.
2001-05-13 13:53:08 +00:00
bjh21 0ea71ec5ea Make use of a.out or ELF symbols dependent on the compile-time definition of
__ELF__.
2001-05-13 13:51:08 +00:00