Commit Graph

66561 Commits

Author SHA1 Message Date
peter
e6400f83f7 Mostly cosmetic. Use indentation that is reasonably close to other
ia64 *.S files in our tree (eg: locore.s).  Put the rest of the args
in the .section lines.

Reviewed by:	dfr
2001-10-29 10:18:58 +00:00
peter
43153baeec Update for the new toolchain. ld doesn't provide _GLOBAL_OFFSET_TABLE_
in 2.11.2, so use a relocatable method of calculating gp.

Reviewed by:	dfr
2001-10-29 10:14:51 +00:00
peter
7f637f2bb2 Update rtld for the "new" ia64 ABI. In the old toolchain, the
DT_INIT and DT_FINI tags pointed to fptr records.  In 2.11.2, it points
to the actuall address of the function.  On IA64 you cannot just take
an address of a function, store it in a function pointer variable and
call it.. the function pointers point to a fptr data block that has the
target gp and address in it.  This is absolutely necessary for using
the in-tree binutils toolchain, but (unfortunately) will not work with
old shared libraries.  Save your old ld-elf.so.1 if you want to use
old ones still.  Do not mix-and-match.

This is a no-op change for i386 and alpha.

Reviewed by:	dfr
2001-10-29 10:10:10 +00:00
peter
0135add4a6 Fix a dependency violation (branch after alloc) 2001-10-29 10:05:32 +00:00
sumikawa
6a5252c5e1 Fix fragmented packet handling.
Obtained from:	KAME
MFC after:	3 weeks
2001-10-29 07:55:57 +00:00
marcel
2a8a0474b8 o Send a test IPI from the BSP to itself at the same time APs
are woken up.
o  Make IPIs synchronuous by default. If we want asynchronuous
   IPIs, we may want to make the memory fence controllable.
2001-10-29 07:34:48 +00:00
marcel
f735e80481 Add an IPI used for testing proper operation of delivering IPIs. 2001-10-29 07:30:37 +00:00
mike
a75e5415d5 Use a more sophisticated check that works better with older versions
of GCC when setting __func__ to NULL.  This also better supports GCC
when using C++.  Move the definition to a better location.

Submitted by:	bde
2001-10-29 07:29:03 +00:00
mike
c435f30d71 Make the output from assert() look more like the example in the C99
standard.

Requested by:	bde
2001-10-29 07:07:25 +00:00
marcel
a98296919f Make the clock vector 255 instead of 240. On Lion boxes, 240 is
the AP wake-up vector. We probably want a more dynamic approach
to assigning vectors in the future...
2001-10-29 05:17:36 +00:00
bmah
d75bc0329f Forced commit: Previous diff removed the UserConfig section from
the alpha hardware notes.
2001-10-29 05:17:21 +00:00
bmah
a850181167 Add infrastructure for an ia64 hardware list. It's a long way from
being usable at this point, so it's not even hooked up to the rest
of the RELNOTESng build; however it will be helpful for testing the content
as it approaches reality.
2001-10-29 05:08:52 +00:00
marcel
5a7378a40b Small correction in the LOCAL_SAPIC structure. The Flags field
starts at offset 8; not 6. Hence the structure is 12 bytes and
not 10 bytes. Adjust the definition so that the ProcessorEnabled
flag is moved from bit 15 to bit 31 in the Flags field.

The definition now matches ACPI 2.0 Errata 1.5.
2001-10-29 04:59:35 +00:00
bmah
74882d806a Start to unravel some of the mess in the Ethernet NIC section. The
original hardware list was mostly organized by driver except for the
case of NICs by Intel, DEC, and 3Com, whose NICs tended to be
organized by manufacturer.  Most of these entries are now organized by
driver, except for a few 3Com NICs; also the multitude of ed(4)
drivers needs to be coalesced.

While I'm here, fix a markup glitch in the ISDN section that caused
any non-i386 hardware list to be incorrectly numbered.
2001-10-29 04:45:08 +00:00
joe
c78b92c237 Clean up the style of this header file. 2001-10-29 04:41:28 +00:00
bmah
b038ecb117 Clarify a release note entry about fe(4)-supported PC Cards. 2001-10-29 04:14:40 +00:00
joe
57e1d6d8b2 More white space changes. 2001-10-29 03:46:28 +00:00
joe
258d90583a More stylistic tidying. 2001-10-29 03:25:49 +00:00
dillon
e167c75ed7 log routine called w/ %ld and int argument, cast argument to long 2001-10-29 02:22:49 +00:00
dillon
981dfd6cd9 fix int argument used in printf w/ %ld (cast to long) 2001-10-29 02:19:19 +00:00
dillon
c7f4e76847 promote tv_sec in printf to make it type agnostic 2001-10-29 02:17:41 +00:00
marcel
830dbf12d9 o Do not parse the MADT as a side-effect in AcpiOsGetRootPointer,
do it as a side-effect of probing for MP hardware. This allows
   us to scan for local SAPICs early (especially before MBUF
   initialization).
o  Fix the Local SAPIC structure so that matches the Local SAPIC
   table entry. Now that the Local SAPIC info is the same as the
   Local APIC info, stop dumping the Local APIC entries.
o  For every Local SAPIC entry in the MADT that's not disabled,
   let the SMP code know about it. They represent actual CPUs.
o  Register the OS_BOOT_RENDEZ entry point and provide a (bogus)
   implementation for the entry point.
o  Provide a mapping for internal IPI numbers to ExtINT vectors.
o  In a MP system, announce the CPUs and start them by sending
   IPI_AP_WAKEUP to each of them. Not that it makes a difference
   at this time :-)
o  Miscellaneous style fixes and other adjustments.
2001-10-29 02:16:02 +00:00
dillon
5d44d9cff1 Make ttyprintf() of tv_sec value type agnostic. 2001-10-29 01:23:28 +00:00
dillon
2dd07e734e cast dev_t to int in printf to fix warning. 2001-10-29 01:22:15 +00:00
marcel
ff26515539 Set RB_MULTIPLE (multiple console support) if the kernel is booted
with the -D flag.
2001-10-29 01:11:40 +00:00
dillon
7c3ce536c4 Fix ctime(&int) due to change to lastlog->ll_time 2001-10-29 00:40:05 +00:00
joe
7745d91e4f Remove training white spaces, and some other style violations. 2001-10-29 00:37:24 +00:00
dillon
1b3d4db687 localtime() was being called with an int-pointer due to recent utmp
fixes.
2001-10-29 00:36:01 +00:00
dillon
d9ab71bc3b localtime() was being called on an int pointer (due to recent
utmp-related commits).  fixed.
2001-10-29 00:34:20 +00:00
dillon
9547eabc59 Fix long format mismatch with int arg 2001-10-29 00:32:58 +00:00
ache
eefa4f61d3 1) In devclass_alloc_unit(), skip duplicated wired devices (i.e. with fixed
number) instead of allocating next free unit for them.  If someone needs
fixed place, he must specify it correctly. "Allocating next" is especially bad
because leads to double device detection and to "repeat make_dev panic" as
result.  This can happens if the same devices present somewhere on PCI bus,
hints and  ACPI.  Making them present in one place only not always
possible, "sc" f.e.  can't be removed from hints, it results to no console at
all.

2) In make_device(), detect when devclass_add_device() fails, free dev and
return. I.e. add missing error checking. This part needed to finish fix in 1),
but must be done this way in anycase, with old variant too.
2001-10-28 23:32:35 +00:00
rwatson
4037e00a24 o Restore previous inconsistent style to login_fbtab.c, following its
modification to add glob support.  The submitted patch used a degraded
  form of KNF.

Reviewed by:	bde
2001-10-28 22:54:16 +00:00
dillon
6a075cd07b Adjust printfs to be time_t agnostic. 2001-10-28 22:53:45 +00:00
dillon
532052c2b0 Do not assume that sizeof(tv_sec) is sizeof(time_t) - it will be, but
it isn't yet because our tv_sec is currently a long (so 64 bit architectures
are already broken to a degree).
2001-10-28 20:53:17 +00:00
dillon
18ba58febf Fix int vs time_t, convert int to time_t 2001-10-28 20:40:58 +00:00
dillon
044c1da2a5 Convert time_t to/from 32 bit representations for transmission over
a network and storage.
2001-10-28 20:33:07 +00:00
dillon
a3b99516b8 Fix time_t == int assumption, convert protocol int to time_t. 2001-10-28 20:26:54 +00:00
dillon
f698090450 Fix time_t == int assumption, properly convert protocol int to time_t. 2001-10-28 20:24:51 +00:00
dillon
3e277dbdb4 Properly convert long to time_t 2001-10-28 20:19:14 +00:00
dillon
cdd5ebd3b2 Add time_to_int(), int_to_time(), time_to_long(), long_to_time(). 2001-10-28 20:13:16 +00:00
dillon
41f4e0eb17 Make the protocol/dumprestore.h header match restore's idea of the dump
header for the case where sizeof(time_t) != sizeof(int).  dumprestore.h
was embedding time_t when it should have been embedding int32_t.

Use time_to_time32() and time32_to_time() to convert between the
protocoll/file-format time and time_t.
2001-10-28 20:01:38 +00:00
dillon
5b521f3c4f Add routines to convert time_t to/from fixed-bit fields. These routines
serve two purposes: (1) so we can maintain backwards compatibility with
protocols (rwhod, dump, etc...) that either assume time_t is 32 bits or
assume sizeof(time_t) == sizeof(int), or make other similar assumptions.
(2) To tag such routines (by the presence of these calls) for future
cleanup/extension work.

The 32->64 routine, time32_to_time() (when time_t is 64 bits, that is),
is defined specifically to implement temporal locality to properly set the
msb bits of a 64 bit time_t quantity, using the 50 year rule.  The locality
code has not been implemented yet (and doesn't need to be for a while),
but that is the intent.   This will allow us to maintain backwards protocol
compatibility past 2038.

These routines are intended to be platform and time_t agnostic.

MFC after:	1 week
2001-10-28 19:54:49 +00:00
schweikh
ff38fb0e73 Make this compile cleanly when warnings are enabled:
- ANSIfy function declarations
 - braces around initializers structs within structs
 - add parens in complicated expressions
 - disambiguate dangling elses
 - no more implicit int
 - make functions static where possible
 - use prototypes
 - don't use varargs hack for diag()

Requested by: joerg
MFC after:	2 weeks
2001-10-28 18:35:32 +00:00
n_hibma
9b2eb27d34 Typo. 2001-10-28 16:47:06 +00:00
n_hibma
571320567f Add a Xref to dumpon. 2001-10-28 16:41:56 +00:00
jhb
8d090c3143 Revert the reindentation of struct task's definition from rev 1.4.
Requested by:	bde
2001-10-28 16:19:34 +00:00
jhb
63c9c8e607 - More whitespace and comment cleanups.
- Remove unused sw1a label.  A breakpoint can be set in choosethread() for
  the same effect.

Reviewed by:	bde
Submitted by:	bde (partly)
2001-10-28 16:18:22 +00:00
asmodai
718649e606 Explain that /var/log/all.log needs to be touched and chmod'd 'ere it
can be used.

PR:		17022
Submitted by:	Niels Christian Bank-Pedersen <ncbp@bank-pedersen.dk>
MFC after:	1 week
2001-10-28 13:41:30 +00:00
asmodai
f517ba785f Correct attribution.
PR:		30500
Submitted by:	Drew Derbyshire <ahd@kew.org>
2001-10-28 13:23:39 +00:00
phk
8c752a11c0 Fix a problem in the disk related hack where device nodes for a physically
non-existent disk in a legacy /dev on a DEVFS system would panic the system
if stat(2)'ed.

Do not whine about anonymous device nodes not having a si_devsw, they're
not supposed to.
2001-10-28 09:39:28 +00:00