Commit Graph

31895 Commits

Author SHA1 Message Date
fvdl
e4eac0d964 Fix rdtsc and rdpmc inlines, and fixup rnd.h to do the right thing. 2002-06-04 17:52:46 +00:00
fvdl
9c71037485 Remove all i386 host bridges, as they don't apply. Remove pchb_rndattach
call for now (may be back later).
2002-06-04 17:51:30 +00:00
fvdl
99193cfa98 Woops, pass the correct argsize to ktrsyscall. 2002-06-04 15:45:05 +00:00
fvdl
ab19cd2899 Clear P_32 on native exec (from eeh in the sparc64 port). 2002-06-04 15:44:34 +00:00
ragge
2f48a39412 Need longer delay while waiting for mscp packets, otherwise it times out
on VAX8650.
2002-06-04 15:13:55 +00:00
eeh
4ff7000d80 Fix the fork trampoline to properly use the supplied tstate. 2002-06-04 15:04:08 +00:00
eeh
abb7b6a965 Clear the P_32 flag when exec-ing native binaries. 2002-06-04 14:48:09 +00:00
eeh
587856dfdd Make the code that matches boot devices much more flexible so it handles
device classes as well as funny names for matching.  This should allow
us to properly recognize we're booted from a SCSI disk on a PCI controller.
2002-06-04 14:44:34 +00:00
fvdl
c029f886c8 Propagate P_32 flag on fork. Use correct trampoline for 32bit return. 2002-06-04 12:58:13 +00:00
fvdl
2c7bad720d For 32bit execs, frob the stackframe to return via the old system call
return path.
2002-06-04 11:14:21 +00:00
fvdl
90c2a2ddc1 Fix up argument passing to ktr_syscall. 2002-06-04 11:12:18 +00:00
simonb
4a852aed2d Add smbus@sbobio and rtc@smbus. 2002-06-04 08:35:05 +00:00
simonb
f4e42e7eb6 Add an extremely rough SMBus handler and RTC driver. This will be
cleaned up significantly when we have an MI SMBus framework, but at
least we can see the RTC on the swarm now.
2002-06-04 08:32:41 +00:00
simonb
349831dcf6 Use "cpu*" and not "cpu0" to attach all CPUs.
Add PROCFS and fix a whitespace nit while we're here.
2002-06-04 05:53:31 +00:00
simonb
a1572a6b96 Match all possible CPUs, but print warnings that the processors after
the first are offline due to the lack of SMP support in the kernel.
2002-06-04 05:49:26 +00:00
simonb
9cc65a96d0 3 ports are now using the reciprocal count divisor code now, move it
to <mips/cpu.h>, and add MIPS_SET_CI_RECIPRICAL and MIPS_COUNT_TO_MHZ
macros to use it.
2002-06-04 05:42:41 +00:00
fvdl
01fbe9c413 Drink the swapgs kool-aid.
Enable the use of syscall/sysret as the default system cal entry
point.
2002-06-03 18:23:16 +00:00
fvdl
619aaa1337 Set COPTS to -O by default. 2002-06-03 18:18:43 +00:00
eeh
30cc4dc796 Pass on the P_32 flag on fork and support fork syscall returns using
%g7 as the completion address.
2002-06-03 18:08:43 +00:00
simonb
8b4906e391 Add prototypes for the 64-bit pagezero functions.
Bracket some function prototypes with #ifdef/#endif.
2002-06-03 01:51:05 +00:00
fredette
bcd8676e8a Reverted previous commit. It was meant to fix a problem that
was already fixed by nathanw, had I bothered to check.
2002-06-03 00:56:55 +00:00
fredette
e0b7d8c222 Now make a machine/ directory with symlinks to a small number
of machine-specific headers.  When ${MACHINE} is sun2, this
allows building the sun3 and sun3x parts of libsa, which need
things like <machine/param3.h> and <machine/param3x.h> to be
#includeable.
2002-06-03 00:29:04 +00:00
fredette
180293c7b7 exit() is now declared in libsa's stand.h, and takes an int. 2002-06-03 00:18:26 +00:00
drochner
d2b9876081 move initialization of the "struct pglist" returned by uvm_pglistalloc()
from the calling code into uvm_pglistalloc() itself for consistency
and easier error handling
2002-06-02 14:44:35 +00:00
lukem
06de426449 SIMPLEQ rototill:
- implement SIMPLEQ_REMOVE(head, elm, type, field).  whilst it's O(n),
  this mirrors the functionality of SLIST_REMOVE() (the other
  singly-linked list type) and FreeBSD's STAILQ_REMOVE()
- remove the unnecessary elm arg from SIMPLEQ_REMOVE_HEAD().
  this mirrors the functionality of SLIST_REMOVE_HEAD() (the other
  singly-linked list type) and FreeBSD's STAILQ_REMOVE_HEAD()
- remove notes about SIMPLEQ not supporting arbitrary element removal
- use SIMPLEQ_FOREACH() instead of home-grown for loops
- use SIMPLEQ_EMPTY() appropriately
- use SIMPLEQ_*() instead of accessing sqh_first,sqh_last,sqe_next directly
- reorder manual page; be consistent about how the types are listed
- other minor cleanups
2002-06-01 23:50:52 +00:00
bjh21
b3dd6235ca Since we don't have a wsmouse attachment for the ARM7500 PS/2 mouse, turn
on the pre-wscons device for it instead.  This allows X to work on my NC.
2002-06-01 23:43:48 +00:00
bjh21
40a8771d1e Using -N (OMAGIC) when linking the kernel seems to avoid BtNetBSD's doing
stupid things when loading it on an NC, so do that.  Fixing (or replacing)
BtNetBSD would be better, of course.
2002-06-01 23:24:15 +00:00
simonb
339203767f Remove some unused debug cruft.
Only print out the registers passed to us from CFE #ifdef DEBUG.
2002-06-01 16:14:23 +00:00
simonb
dbae8649c2 Remove the unneeded early memsize/physmem calculations.
KNF, ANSIfy.
2002-06-01 16:12:01 +00:00
ragge
7a69e342b6 Add 11/780 and 8600 to list for who to create a RPB. 2002-06-01 15:33:22 +00:00
simonb
9f6638d8c1 Add statclock and todr function arguments to the systemsw.
Add a system_set_todrfns() function.
2002-06-01 14:38:27 +00:00
simonb
e8aaf3c28b Stop using the _MIPS_BSD_API_LP32_64CLEAN ABI. This causes a few problems
and it's easier/better to wait for true N32/N64.
2002-06-01 14:29:32 +00:00
simonb
4cb13fbec6 There's two SMBuses in the BCM1250; list them both on the on-board device
list.
Get rid of some magic numbers.
2002-06-01 13:56:56 +00:00
simonb
51a91ebabb KNF; make some function static; other minor cleanups. 2002-06-01 13:55:48 +00:00
simonb
1e10b4d4ad Split USE_64BIT_FUNCTIONS into USE_64BIT_INSTRUCTIONS and
USE_64BIT_CP0_FUNCTIONS.
Add 64-bit pagezero function.
2002-06-01 13:52:23 +00:00
simonb
341ed8c0d3 Use CPU_MIPS_USE_WAIT and CPU_MIPS_NO_WAIT in the CPU table, and use
the generic name "mips_wait_idle" for the old function that had both
rm52xx_idle and mipsNN_idle entry points.
2002-06-01 13:45:45 +00:00
simonb
3611959ac8 Remove some unnecessary nops after some mfc0's. 2002-06-01 13:16:44 +00:00
simonb
cf5f852d1c Standardise on the name "MIPS_SR_BEV" instead of a couple of different
#defines for the same status bit.
2002-06-01 12:27:03 +00:00
simonb
5b5cc1ebb8 Add two new cpu capability flags: CPU_MIPS_USE_WAIT for CPUs that use a
"wait" instruction based cpu_idle(), and CPU_MIPS_NO_WAIT for specific
CPUs that don't use this (applicable to mips32/64 mainly).
2002-06-01 12:10:45 +00:00
simonb
d75c18b050 Use the current MIPS in_cksum for in4_cksum too. 2002-06-01 11:41:33 +00:00
itojun
937b671271 use exit(int), not exit(void), consistently - even if the arg has no meaning. 2002-06-01 11:40:31 +00:00
simonb
e5aff46bc6 Add evbmips and sbmips. 2002-06-01 09:37:30 +00:00
tsubai
5fcd112b3a Add gcc 3.x version. 2002-06-01 09:22:44 +00:00
nathanw
23d9c4fc27 Explicitly include <arch/sun3/include/param3{,x}.h> rather than
<machine/param3{,x}.h>, so that this file can be included on non-sun3 builds.
2002-06-01 06:20:37 +00:00
thorpej
c49ac7a5a6 Use __mips__ instead of mips. 2002-05-31 21:43:49 +00:00
thorpej
e50420de38 Statements must follow labels. 2002-05-31 21:40:49 +00:00
thorpej
144cc23985 Use __mips__ instead of mips. 2002-05-31 21:19:03 +00:00
thorpej
80f6433965 Fix printf format issues. 2002-05-31 21:09:03 +00:00
thorpej
698df788fc Add -ffreestanding. 2002-05-31 20:57:41 +00:00
thorpej
fca656f5b2 Don't use multi-line string literal. 2002-05-31 20:52:14 +00:00