Commit Graph

68910 Commits

Author SHA1 Message Date
imp
86d5a7e1dd Revert change that breaks the joy module. joydevclass must not be static. 2002-01-08 18:27:49 +00:00
jhb
6e3fd09860 Fix some 32/64-bit bugs. IPv4 addresses are 32-bits, not longs. On the
alpha these bugs didn't cause any problems because it was little endian,
but on sparc64, we ended up with garbage for the IP address when we tried
to contact the server.  (Usually 3.253.0.0)

Not objected to by:	wpaul
2002-01-08 18:05:03 +00:00
phantom
4749f26598 Add ru_SU locale aliases for nls area also 2002-01-08 17:23:03 +00:00
kuriyama
f9f992a19e Merge the changes in the English version (1.248 --> 1.250). 2002-01-08 17:18:22 +00:00
sheldonh
30db7d7338 (null delta)
The previous delta was taken from:

PR:		bin/33070
2002-01-08 16:41:15 +00:00
tmm
8418dee397 Add upa.h, which I had previously forgotten, to unbreak the sparc64
kernel build.

Pointy hat to:	tmm
2002-01-08 16:25:51 +00:00
phantom
d744687f6e Actually make aliases for ru_SU locales. 2002-01-08 15:30:56 +00:00
ache
f3a2722774 Add ro_RO
PR:		33343
Submitted by:	Adrian Penisoara <ady@warpnet.ro>
2002-01-08 15:20:13 +00:00
ache
f8e44654c5 Add ro_RO
PR:		33343
Submitted by:	Adrian Penisoara <ady@warpnet.ro>
2002-01-08 15:06:42 +00:00
ache
08094777af ISO 8859-1 -> ISO 8859-5 for ru_* 2002-01-08 15:01:48 +00:00
phantom
024413e7ac Correctly handle cases of deprecated locales which are supposed
to have backward compatibility symbolic links.

This code should check existence of deprecated locales and
fix them using following scheme:

. if new locale directory exisists and is a symlink -- remove it
. if old locale directory exists and not a symlink -- rename it to
  its new name

This should allow to mtree(1) and existing locale aliases make(1)
rules to setup locale dirs correctly (avoid self-referenced symlinks)

BTW, this commit brings in backward compatibility support for ru_SU
locales (aliased to appropriate ru_RU ones).
2002-01-08 13:42:52 +00:00
brian
94cf97175f When authenticating a name containing a ``\'', attempt to autenticate
using the part after the ``\'' if the original name is not found.

This allows M$ clients to use domain\user as their authname.

Reviewed by: Ian West <ian@niw.com.au>
2002-01-08 11:24:39 +00:00
msmith
bc66986ff8 Staticise pfs_vncache, it's not used anywhere else.
Reviewed by:	des
2002-01-08 11:15:57 +00:00
jhb
a7132b44c4 Replace -I${.OBJDIR} with -I. and split the CFLAGS line up into two lines.
Requested by:	bde
2002-01-08 11:08:20 +00:00
msmith
ea9c5a8d4c Initialise the intrq_present fields at runtime, not link time. This allows
us to load protocols at runtime, and avoids the use of common variables.

Also fix the ip6_intrq assignment so that it works at all.
2002-01-08 10:34:03 +00:00
joe
825021e8a0 Staticise a couple of things that shouldn't be leaked into the
kernel namespace.

Submitted by:	msmith
2002-01-08 10:32:33 +00:00
msmith
2b4f430bb7 Staticise the fw chain. 2002-01-08 10:30:55 +00:00
msmith
19aab9d410 Staticise the socket list. 2002-01-08 10:30:34 +00:00
msmith
e814937e0b Staticise private interface lists. 2002-01-08 10:30:09 +00:00
msmith
c2a5e58c01 Gut this header; since physio_proc_init is never called, the code never does
anything more than multiply declare some unused variables.
2002-01-08 10:26:44 +00:00
msmith
a456a9e083 Staticise the flash buffer, since it isn't needed anywhere else. 2002-01-08 10:25:12 +00:00
msmith
7ff97afb06 Staticise the con_bios and digi_devclass variables, since they aren't needed
by anything else.
2002-01-08 10:24:34 +00:00
jhb
2cbaa6fc05 Remove gcc specific compiler flags, at least one of which doesn't work with
gcc 3.0.2.  (-fstrict-prototypes)
2002-01-08 08:53:12 +00:00
jhb
ff81f861a6 Use -I${.OBJDIR} -I${.CURDIR} rather than -I. so that this compiles in a
cross-build environment.
2002-01-08 08:13:23 +00:00
msmith
02828a5597 Staticise the device node pointers. 2002-01-08 06:50:17 +00:00
msmith
4dc53ad8f8 Staticise the joy devclass. 2002-01-08 06:49:06 +00:00
msmith
e6a5f9545c Fix a couple of bogus enums. 2002-01-08 06:47:55 +00:00
msmith
e868bf2df8 Staticise the amr devclass. 2002-01-08 06:47:02 +00:00
msmith
a855b09ad9 Staticise devclasses and some unnecessarily global variables. 2002-01-08 06:46:01 +00:00
jake
c8fe4def6b Connect smp support to the kernel build. 2002-01-08 05:55:46 +00:00
jake
9304ac0dfd Catch up to the latest and greatest. 2002-01-08 05:53:31 +00:00
jake
c6fae03058 Add initial smp support. This gets as far as allowing the secondary
cpu(s) into the kernel, and sync-ing them up to "kernel" mode so we can
send them ipis, which also work.

Thanks to John Baldwin for providing me with access to the hardware
that made this possible.

Parts obtained from:	bsd/os
2002-01-08 05:50:26 +00:00
jake
68d3ae71f6 Setup the normal global pcb register as well on entry from user land.
Call critical_enter/critical_exit around (fast) interrupt handlers.  All
non-threaded interrupts are fast, and the threaded interrupt scheduler is
itself a fast interrupt.
Assert that an interrupt handler we are about to call is non-zero.
Be paranoid about restoring the users global registers.  Do it as the
last thing before switching to alternate globals (when we magically get
our preloaded registers back), and do it with interrupts disabled.  Any
kind of kernel trap when the globals are not setup properly is bad news.
Don't save and restore the kernel g6, it invariably points to the current
pcb now.
2002-01-08 05:37:52 +00:00
jake
f4c697794d Adapt the vectored interrupt handler for receiving ipis. If the second
data word in an interrupt packet is non-zero, it points to code to execute
to handle the ipi, so jump to it instead of enqueueing the packet.  It
is unclear if we will need queued ipis.
Interrupt g7 now points to pcpu, instead of to the per-cpu interrupt queue
itself, so use that instead.  Interrupt g6 is no longer reserved.
2002-01-08 05:27:13 +00:00
jake
a6184c4ddb Use the per-cpu panic stack in the case of a fault with a bad kernel
stack.
2002-01-08 05:20:40 +00:00
jake
0d87bee2b4 Remove ATOMIC_INC_INT macro which has moved elsewhere. 2002-01-08 05:17:28 +00:00
jake
0d46a69b72 Catch up to change in compile time assertion interface. 2002-01-08 05:15:31 +00:00
jake
28332fb455 Make this code more robust in the event of stray interrupts. Handle
stray level interrupts as well.
2002-01-08 05:13:29 +00:00
jake
c013d39a80 Use cpufunc macros instead of using inline asm directly. 2002-01-08 05:10:58 +00:00
jake
509c1e6c75 Set the normal global pcb register when context switching. 2002-01-08 05:10:07 +00:00
jake
eb9c7712df Add a macro for getting the tlbs (itlb and/or dtlb) which the given
tte may be mapped by.
2002-01-08 05:07:58 +00:00
jake
2fdfe48a88 Prototype pmap_map_tsb(). 2002-01-08 05:06:39 +00:00
jake
38396563c7 Remove PANIC_STACK_PAGES which is no longer used.
Redefine the compile time assertion macro to take one parameter.
2002-01-08 05:05:42 +00:00
jake
bb32d5779c Add declarations needed by last commit. 2002-01-08 05:03:36 +00:00
jake
712c074db3 Update comments about _start, the kernel entry point, to reflect new
parameters needed for smp support.
If we are not the boot processor, jump to the smp startup code instead.
Implement a per-cpu panic stack, which is used for bootstrapping both
primary and secondary processors and during faults on the kernel stack.
Arrange the per-cpu page like the pcb, with the struct pcpu at the end
of the page and the panic stack before it.
Use the boot processor's panic stack for calling sparc64_init.
Split the code to set preloaded global registers and to map the kernel
tsb out into functions, which non-boot processors can call.
Allocate the kstack for thread0 dynamically in pmap_bootstrap, and give
it a guard page too.
2002-01-08 05:02:13 +00:00
jake
9424335541 Fix qsort callouts used for sorting memory regions during boot. vm_offset_t
is unsigned, so we can't use signed arithmetic.

Tripped over by:	jhb
2002-01-08 04:43:04 +00:00
jake
29ddfd4ed0 Add a md field to pcpu for the upa module id.
Remove the alt_stack field.
Use the defines for the register variables declared in C, so that they
don't get out of sync with the assembler.
2002-01-08 04:40:13 +00:00
jake
777d499906 Define CKLF_PC in terms of TRAPF_PC. 2002-01-08 04:36:53 +00:00
jake
3e20261f8a Add a mov() macro, which is used in conjunction with the register defines
for setting reserved global registers from c.
2002-01-08 04:36:01 +00:00
jake
36aea0f17e Update comments and defines to reflect that normal and alternate g6 point
to the current pcb.
Remove interrupt global defines; they use PCPU_REG now.
Move ATOMIC_INC_INT here from exception.s, add ATOMIC_DEC_INT.
Add a KASSERT macro for use in assembler.
2002-01-08 04:34:20 +00:00