]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
20 years agocorrect namespace pollution.
ume [Sat, 25 Oct 2003 09:37:10 +0000 (09:37 +0000)]
correct namespace pollution.

Submitted by: bde

20 years ago - fabsl.c should be named s_fabsl.c for consistency with libmsun's
des [Sat, 25 Oct 2003 09:32:18 +0000 (09:32 +0000)]
 - fabsl.c should be named s_fabsl.c for consistency with libmsun's
   documented naming scheme (unfortunately the documentation isn't in the
   tree as far as I can tell); no repocopy is required as there is no
   history to preserve.

 - replace simple and almost-correct implementation with slightly hackish
   but definitely correct implementation (tested on i386, alpha, sparc64)
   which requires pulling in fpmath.h and the MD _fpmath.h from libc.

 - try not to make a mess of the Makefile in the process.

 - enterprising minds are encouraged to implement more C99 long double
   functions.

20 years agoaccording to RFC3542 10.5, the 5th argment of inet6_opt_next()
ume [Sat, 25 Oct 2003 06:51:23 +0000 (06:51 +0000)]
according to RFC3542 10.5, the 5th argment of inet6_opt_next()
is not size_t but socklen_t.

Reported by: tinderbox

20 years ago - Call vnode_pager_input_old() with the vm object locked.
alc [Sat, 25 Oct 2003 05:21:16 +0000 (05:21 +0000)]
 - Call vnode_pager_input_old() with the vm object locked.

20 years agoGC workaround code for detecting pentium4's and disabling PSE and PG_G.
peter [Sat, 25 Oct 2003 05:14:38 +0000 (05:14 +0000)]
GC workaround code for detecting pentium4's and disabling PSE and PG_G.
It's been ifdef'ed out for ages.

20 years agoAdd devctl(4) notify support to ACPI. Various subsystems now notify
njl [Sat, 25 Oct 2003 05:03:25 +0000 (05:03 +0000)]
Add devctl(4) notify support to ACPI.  Various subsystems now notify
userland whenever events occur.  See the example in devd.conf below
to see how to use it.

20 years agoWhole grab-bag of changes:
imp [Sat, 25 Oct 2003 04:09:49 +0000 (04:09 +0000)]
Whole grab-bag of changes:
o Make the driver MPSAFE
o Some changes due to diff reduction effort with vx.
o Removed some obsolete junk.

Reviewed by: sam, modd

20 years agoStart to minimize diffs between vx and ep. These latter is based on a
imp [Sat, 25 Oct 2003 04:05:33 +0000 (04:05 +0000)]
Start to minimize diffs between vx and ep.  These latter is based on a
more advanced version of the chips supported by the former.  Matt Dodd
and I are working towards merging them, and this a step on that path.

20 years agoSort type declarations together.
rwatson [Sat, 25 Oct 2003 03:50:44 +0000 (03:50 +0000)]
Sort type declarations together.
Remove an excess carriage return.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

20 years agoConvenience functions to generate notifications from the kernel. The ACPI
imp [Fri, 24 Oct 2003 22:41:54 +0000 (22:41 +0000)]
Convenience functions to generate notifications from the kernel.  The ACPI
code will start using these shortly.

Reviewed by: njl

20 years agoAdd support for another multiple serial port card based on OX16PCI954 device
ambrisko [Fri, 24 Oct 2003 22:34:56 +0000 (22:34 +0000)]
Add support for another multiple serial port card based on OX16PCI954 device
id 0x950a.

MFC: after 4.9 release.

20 years agoParse the ! lines that will soon be coming from the kernel. These are
imp [Fri, 24 Oct 2003 22:02:29 +0000 (22:02 +0000)]
Parse the ! lines that will soon be coming from the kernel.  These are
a generalized notification mechanism for subsystems wishing to report
events.

Revieded by: njl

# The kernel side seems like it might be causing panics for me, but should
# be forthcoming shortly.

20 years agoDon't try to use dev->dma_lock unless dma is initialized (dev->dma != NULL)
anholt [Fri, 24 Oct 2003 21:45:21 +0000 (21:45 +0000)]
Don't try to use dev->dma_lock unless dma is initialized (dev->dma != NULL)
in bufs_info sysctl handler.  dev->dma and dev->dma_lock existence are
protected by DRM_LOCK().  Fixes panic on sysctl hw.dri when the device is
uninitialied (when you aren't in X).

20 years agoUse 'k' as suffix for Kilo
phk [Fri, 24 Oct 2003 21:23:47 +0000 (21:23 +0000)]
Use 'k' as suffix for Kilo

Pointed out by: several.

20 years ago - fix description of what processes SIGCONT can be sent to
kensmith [Fri, 24 Oct 2003 21:20:26 +0000 (21:20 +0000)]
- fix description of what processes SIGCONT can be sent to

PR: docs/58413
Reviewed by: rwatson
Approved by: blackend (mentor)

20 years agodon't allow reading from files that haven't been open'd for reading.
jmg [Fri, 24 Oct 2003 21:07:53 +0000 (21:07 +0000)]
don't allow reading from files that haven't been open'd for reading.

20 years ago- Add a DDB command 'show intrcnt' to show the non-zero interrupt counts.
jhb [Fri, 24 Oct 2003 21:05:30 +0000 (21:05 +0000)]
- Add a DDB command 'show intrcnt' to show the non-zero interrupt counts.
- Add a DDB function to dump the contents of an ithread and optionally
  details about each handler in that ithread.  This function can be used
  by MD code to implement DDB commands that display information about
  interrupt sources and their registered handlers.

20 years agoA few whitespace and comment tweaks.
jhb [Fri, 24 Oct 2003 21:02:26 +0000 (21:02 +0000)]
A few whitespace and comment tweaks.

20 years ago- Fail to probe if acpi0 probed ok as this driver basically tries to probe
jhb [Fri, 24 Oct 2003 21:01:31 +0000 (21:01 +0000)]
- Fail to probe if acpi0 probed ok as this driver basically tries to probe
  the ACPI timer and we shouldn't do that if ACPI is already around to do
  that for us.
- Set a description and tweak the order of checks in the probe function
  to more closely match other PCI drivers.

This should probably be moved to sys/dev/piix/piix.c at some point and
turned on for all i386 kernels rather than just SMP ones.

20 years ago- Renumber the skerberos4 dist to fill in the gaps left when krb4 was axed.
jhb [Fri, 24 Oct 2003 20:55:15 +0000 (20:55 +0000)]
- Renumber the skerberos4 dist to fill in the gaps left when krb4 was axed.
- Update the DIST_CRYPTO_ALL value to match reality.

20 years agoremove the ip6r0_addr and ip6r0_slmap members from ip6_rthdr0{}
ume [Fri, 24 Oct 2003 20:37:05 +0000 (20:37 +0000)]
remove the ip6r0_addr and ip6r0_slmap members from ip6_rthdr0{}
according to rfc2292bis.

Obtained from: KAME

20 years agocorrect tab and order.
ume [Fri, 24 Oct 2003 19:51:49 +0000 (19:51 +0000)]
correct tab and order.

20 years agoClose the right consumers if we run into trouble opening them all.
phk [Fri, 24 Oct 2003 18:47:31 +0000 (18:47 +0000)]
Close the right consumers if we run into trouble opening them all.

Submitted by: Pawel Jakub Dawidek <nick@garage.freebsd.pl>

20 years agoFix two old/new consumer confusions.
phk [Fri, 24 Oct 2003 18:46:23 +0000 (18:46 +0000)]
Fix two old/new consumer confusions.

Submitted by:    Pawel Jakub Dawidek <nick@garage.freebsd.pl>

20 years agooops, revert previous change to getaddrinfo.c. This is not related
ume [Fri, 24 Oct 2003 18:43:24 +0000 (18:43 +0000)]
oops, revert previous change to getaddrinfo.c.  This is not related
to RFC3493.  The previous change was related to RFC3484 (Default
Address Selection for IPv6), and it will come later.

20 years agoWhen grabbing vnodes to service NFS requests, make sure to call
phk [Fri, 24 Oct 2003 18:36:49 +0000 (18:36 +0000)]
When grabbing vnodes to service NFS requests, make sure to call
vn_start_write() early to avoid snapshot deadlocks.

By: mckusick

20 years agoSwitch Advanced Sockets API for IPv6 from RFC2292 to RFC3542
ume [Fri, 24 Oct 2003 18:26:30 +0000 (18:26 +0000)]
Switch Advanced Sockets API for IPv6 from RFC2292 to RFC3542
(aka RFC2292bis).  Though I believe this commit doesn't break
backward compatibility againt existing binaries, it breaks
backward compatibility of API.
Now, the applications which use Advanced Sockets API such as
telnet, ping6, mld6query and traceroute6 use RFC3542 API.

Obtained from: KAME

20 years agoshow maxmtu.
ume [Fri, 24 Oct 2003 18:00:17 +0000 (18:00 +0000)]
show maxmtu.

Obtained from: KAME

20 years agoSince dp->dom_ifattach calls malloc() with M_WAITOK, we cannot
ume [Fri, 24 Oct 2003 16:57:59 +0000 (16:57 +0000)]
Since dp->dom_ifattach calls malloc() with M_WAITOK, we cannot
use mutex lock directly here.  Protect ifp->if_afdata instead.

Reported by: grehan

20 years agoSysctl names should not contain dots. Convert them to underlines.
harti [Fri, 24 Oct 2003 16:44:27 +0000 (16:44 +0000)]
Sysctl names should not contain dots. Convert them to underlines.

20 years agoAdd dumb console driver and related bits.
simokawa [Fri, 24 Oct 2003 15:44:10 +0000 (15:44 +0000)]
Add dumb console driver and related bits.

dcons(4): very simple console and gdb port driver
dcons_crom(4): FireWire attachment
dconschat(8): User interface to dcons

Tested with: i386, i386-PAE, and sparc64.

20 years agoMdoc Janitor:
hmp [Fri, 24 Oct 2003 15:42:38 +0000 (15:42 +0000)]
Mdoc Janitor:

  * Use uppercase for .Dt macro arguments.

  * Use 'manual' instead of 'man' for consistency.

20 years agoFix for FW_ASYREQ.
simokawa [Fri, 24 Oct 2003 13:55:51 +0000 (13:55 +0000)]
Fix for FW_ASYREQ.
- set send.pay_len correctly.
- copy response only if needed.
- remove unnecessary 'err = 0'.

20 years agoMention the fact that our crontab is not fully POSIX.2 conform, because
harti [Fri, 24 Oct 2003 13:02:39 +0000 (13:02 +0000)]
Mention the fact that our crontab is not fully POSIX.2 conform, because
it doesn't allow the dangerous variant of calling it without any
argument.

20 years agoAllow nghook to execute a program with the data socket connected to
harti [Fri, 24 Oct 2003 10:01:36 +0000 (10:01 +0000)]
Allow nghook to execute a program with the data socket connected to
stdin and stdout instead of relaying the data. Now it is possible
to say:

nghook -e path: hook /usr/local/bin/foo arg1 arg2

and foo will have the hook to path: at file descriptors 0 and 1.

Add an option to specify control messages to be send to the node before
either executing the program or entering the data relay loop.

20 years agoDon't check timeout just after booted.
simokawa [Fri, 24 Oct 2003 07:42:21 +0000 (07:42 +0000)]
Don't check timeout just after booted.
Some transactions could be considered wrongly to be timeout
bacause interrupts are disabled during boot process.

20 years agoModule build infrastructure for the NgATM SAA layer.
harti [Fri, 24 Oct 2003 07:42:08 +0000 (07:42 +0000)]
Module build infrastructure for the NgATM SAA layer.

20 years agoNetgraph part of the NgATM signalling AA layer. These nodes can
harti [Fri, 24 Oct 2003 07:39:11 +0000 (07:39 +0000)]
Netgraph part of the NgATM signalling AA layer. These nodes can
also be used as a general-purpose transport protocol above any
packet layer (IP, UDP).

20 years agoBackswards is as backwards does: If we're MPSAFE, then we don't need
imp [Fri, 24 Oct 2003 07:20:13 +0000 (07:20 +0000)]
Backswards is as backwards does: If we're MPSAFE, then we don't need
giant, which implies that we need to take out giant it we're NOT
MPSAFE.

# I can't believe the number of people that looked at this failed to
# detect this.

20 years agoRemove unused header. See also ia64/disasm/disasm.h.
marcel [Fri, 24 Oct 2003 06:53:43 +0000 (06:53 +0000)]
Remove unused header. See also ia64/disasm/disasm.h.

20 years agostyle.
ume [Fri, 24 Oct 2003 06:53:12 +0000 (06:53 +0000)]
style.

Reported by: bde

20 years agoRemove ia64_pack_bundle() and ia64_unpack_bundle(). They are not
marcel [Fri, 24 Oct 2003 06:52:21 +0000 (06:52 +0000)]
Remove ia64_pack_bundle() and ia64_unpack_bundle(). They are not
used anymore.

20 years agoRemove unused file. db_disasm() has been implemented in db_interface.c
marcel [Fri, 24 Oct 2003 06:48:41 +0000 (06:48 +0000)]
Remove unused file. db_disasm() has been implemented in db_interface.c
now.

20 years ago - Push down Giant from vm_pageout() to vm_pageout_scan(), freeing
alc [Fri, 24 Oct 2003 06:43:04 +0000 (06:43 +0000)]
 - Push down Giant from vm_pageout() to vm_pageout_scan(), freeing
   vm_pageout_page_stats() from Giant.
 - Modify vm_pager_put_pages() and vm_pager_page_unswapped() to expect the
   vm object to be locked on entry.  (All of the pager routines now expect
   this.)

20 years agoImplement db_disasm() by using the new disassembler. Temporarily
marcel [Fri, 24 Oct 2003 06:42:03 +0000 (06:42 +0000)]
Implement db_disasm() by using the new disassembler. Temporarily
unimplement db_write_breakpoint() and db_clear_breakpoint().

20 years agoReduce the number of tcp time_wait structs to maxsockets / 5; this ensures
silby [Fri, 24 Oct 2003 05:44:14 +0000 (05:44 +0000)]
Reduce the number of tcp time_wait structs to maxsockets / 5; this ensures
that at most 20% of sockets can be in time_wait at one time, ensuring
that time_wait sockets do not starve real connections from inpcb
structures.

No implementation change is needed, jlemon already implemented a nice
LRU-ish algorithm for tcp_tw structure recycling.

This should reduce the need for sysadmins to lower the default msl on
busy servers.

20 years agoUse a TR of size 1 << IA64_ID_PAGE_SHIFT instead of 16M to avoid
arun [Fri, 24 Oct 2003 04:56:58 +0000 (04:56 +0000)]
Use a TR of size 1 << IA64_ID_PAGE_SHIFT instead of 16M to avoid
overlapping TR/TC entries (which results in a machine check). Note
that we don't look at the size of the memory descriptor, because
it doesn't guarantee non-overlap.

With this change, a UP kernel could boot on a Intel Tiger4 machine
with the following options:

options         LOG2_ID_PAGE_SIZE=26 # 64M
options         LOG2_PAGE_SIZE=14               # 16K

Approved by: marcel

20 years agooops, EAI_NONAME is not EAINONAME.
ume [Fri, 24 Oct 2003 03:49:38 +0000 (03:49 +0000)]
oops, EAI_NONAME is not EAINONAME.

20 years agoAdd __va_copy and make it always visible, in spite of the __ISO_C_VISIBLE
peter [Fri, 24 Oct 2003 02:50:39 +0000 (02:50 +0000)]
Add __va_copy and make it always visible, in spite of the __ISO_C_VISIBLE
setting.  Make va_copy be an alias if __ISO_C_VISIBLE >= 1999.

Why?  more than a few ports have an autoconf that looks for __va_copy
because it is available on glibc.  It is critical that we use it if
at all possible on amd64.  It generally isn't a problem for i386 and its
ilk because autoconf driven code tends to fall back to an assignment.

20 years agoDon't use fuword() or suword() unconditionally. They explicitly
marcel [Fri, 24 Oct 2003 02:33:26 +0000 (02:33 +0000)]
Don't use fuword() or suword() unconditionally. They explicitly
disallow reading or writing.

20 years agoRemove two unused fields in the operand structure (o_read & o_write).
marcel [Fri, 24 Oct 2003 02:05:53 +0000 (02:05 +0000)]
Remove two unused fields in the operand structure (o_read & o_write).

20 years agoUpdate to latest from DRI CVS. Primary new feature is mostly-complete smpng
anholt [Fri, 24 Oct 2003 01:48:17 +0000 (01:48 +0000)]
Update to latest from DRI CVS.  Primary new feature is mostly-complete smpng
locking, and the apparently unnecessary locking for -stable has been removed.
This may fix issues with missed interrupts since April, which manifested
themselves as slowdowns or hangs in radeon, in particular. Many cleanups also
took place.  In the shared code, there are improvements to r128 driver
stability.

20 years agoo restructure initialization code so data structures are setup
sam [Fri, 24 Oct 2003 00:09:18 +0000 (00:09 +0000)]
o restructure initialization code so data structures are setup
  when loaded as a module
o cleanup data structures on module unload when no application has
  been started (i.e. kldload, kldunload w/o mrtd)
o remove extraneous unlocks immediately prior to destroying them

Supported by: FreeBSD Foundation

20 years agocheck return result from rtalloc1 before invoking RTUNLOCK
sam [Thu, 23 Oct 2003 21:41:00 +0000 (21:41 +0000)]
check return result from rtalloc1 before invoking RTUNLOCK

20 years agoWrites to p_flag in __setugid() no longer need Giant.
jhb [Thu, 23 Oct 2003 21:20:34 +0000 (21:20 +0000)]
Writes to p_flag in __setugid() no longer need Giant.

20 years agoMove the P_COWINPROGRESS flag from being a per-process p_flag to being a
jhb [Thu, 23 Oct 2003 21:14:08 +0000 (21:14 +0000)]
Move the P_COWINPROGRESS flag from being a per-process p_flag to being a
per-thread td_pflag which doesn't require any locks to read or write as it
is only read or written by curthread on itself.

Glanced at by: mckusick

20 years agoAdd appropriate const poisoning to the assert_*locked() family so that I can
wollman [Thu, 23 Oct 2003 18:17:36 +0000 (18:17 +0000)]
Add appropriate const poisoning to the assert_*locked() family so that I can
call ASSERT_VOP_LOCKED(vp, __func__) without a diagnostic.

Inspired by: the evil and rude OpenAFS cache manager code

20 years agoAdd simple support for AGP 3.0 including enabling 8x mode. The simple
jhb [Thu, 23 Oct 2003 18:08:56 +0000 (18:08 +0000)]
Add simple support for AGP 3.0 including enabling 8x mode.  The simple
part of the support is that it still assumes one master and one target
where as AGP 3.0 actually supports multiple devices on the bus.

Submitted by: Keith Whitwell <keith@tungstengraphics.com>
Sponsored by: The Weather Channel

20 years agoworkaround to have backward compatibility for EAI_NODATA.
ume [Thu, 23 Oct 2003 17:54:17 +0000 (17:54 +0000)]
workaround to have backward compatibility for EAI_NODATA.
it will be removed on 23 Apr 2004.

Submitted by: terry

20 years agoRemove unnecessary casts to (caddr_t) for if_broadcastaddr.
imp [Thu, 23 Oct 2003 17:48:53 +0000 (17:48 +0000)]
Remove unnecessary casts to (caddr_t) for if_broadcastaddr.

20 years agoUse a switch statement on the devid instead of if-else for determing which
jhb [Thu, 23 Oct 2003 17:48:30 +0000 (17:48 +0000)]
Use a switch statement on the devid instead of if-else for determing which
code to use to see if the onboard video has been disabled or not.

Submitted by: Keith Whitwell <keith@tungstengraphics.com>

20 years agoRemove unnecessary (caddr_t) casts of if_broadcastaddr.
imp [Thu, 23 Oct 2003 17:47:55 +0000 (17:47 +0000)]
Remove unnecessary (caddr_t) casts of if_broadcastaddr.

20 years ago- style
ume [Thu, 23 Oct 2003 17:36:29 +0000 (17:36 +0000)]
- style
- index() -> strchr()
- stop use of MAXHOSTNAMELEN

Obtained from: KAME

20 years agoConst poison crc routines (why these aren't centralized, I'm not sure).
imp [Thu, 23 Oct 2003 16:57:38 +0000 (16:57 +0000)]
Const poison crc routines (why these aren't centralized, I'm not sure).

20 years agoConst poison the crc calcuation routines so const data can be sent to
imp [Thu, 23 Oct 2003 16:55:27 +0000 (16:55 +0000)]
Const poison the crc calcuation routines so const data can be sent to
it.

20 years agoUse IF_MAXUNIT instead of rolling our own identical TUN_MAXUNIT.
brooks [Thu, 23 Oct 2003 16:29:20 +0000 (16:29 +0000)]
Use IF_MAXUNIT instead of rolling our own identical TUN_MAXUNIT.

20 years agooops, I forget to diable EAI_ADDRFAMILY and EAI_NODATA.
ume [Thu, 23 Oct 2003 16:11:46 +0000 (16:11 +0000)]
oops, I forget to diable EAI_ADDRFAMILY and EAI_NODATA.

20 years agoFix several old bugs which got worse over time:
trhodes [Thu, 23 Oct 2003 16:09:20 +0000 (16:09 +0000)]
Fix several old bugs which got worse over time:

o WARNS should be WARNS?= (broke in rev 1.21).
o Includes should be sorted.
o Move "mntopt.h" out of the standard includes section.
o Rewrite usage() to match the manual page and make it < 80 characters.
o Remove extra .El call on line 187.  It is unused and causes mdoc(7) warnings.

Discussed with: bde

20 years agoMerge from p4 (noticed these changes with DES' if_ethersubr.c changes caused
imp [Thu, 23 Oct 2003 15:09:34 +0000 (15:09 +0000)]
Merge from p4 (noticed these changes with DES' if_ethersubr.c changes caused
a minor conflict):
o Use ETHER_ADDR_LEN in preference to '6'.
o Remove two unnecessary (caddr_t) casts.  One of them causes problems in
  my tree where etherbroadcastaddr is const, and (caddr_t) casts the const
  away.

20 years agoMdoc Janitor:
hmp [Thu, 23 Oct 2003 14:32:23 +0000 (14:32 +0000)]
Mdoc Janitor:

  * Add a forgotten .An macro for 'Jeroen Ruigrok van der Werven'.

Noticed by: simon@

20 years agoreorder functions to be in sync with KAME.
ume [Thu, 23 Oct 2003 14:32:03 +0000 (14:32 +0000)]
reorder functions to be in sync with KAME.

20 years agoEAI_ADDRFAMILY and EAI_NODATA was deprecated in RFC3493
ume [Thu, 23 Oct 2003 13:55:36 +0000 (13:55 +0000)]
EAI_ADDRFAMILY and EAI_NODATA was deprecated in RFC3493
(aka RFC2553bis).  Now, getaddrinfo(3) returns EAI_NONAME
instead of EAI_NODATA.  Our getaddrinfo(3) nor getnameinfo(3)
didn't use EAI_ADDRFAMILY.

Obtained from: KAME

20 years agoPrint the correct ICMP statistics for "no return routes".
ru [Thu, 23 Oct 2003 13:53:19 +0000 (13:53 +0000)]
Print the correct ICMP statistics for "no return routes".

20 years agopreparation for RFC3493. EAI_NODATA was deprecated.
ume [Thu, 23 Oct 2003 13:50:01 +0000 (13:50 +0000)]
preparation for RFC3493.  EAI_NODATA was deprecated.

20 years agoClean up whitespace, remove "register" keyword, ANSIfy.
des [Thu, 23 Oct 2003 13:49:10 +0000 (13:49 +0000)]
Clean up whitespace, remove "register" keyword, ANSIfy.
No functional changes.

20 years ago0x7FFFFFFFFF is >32 bits and needs an explicit LL.
des [Thu, 23 Oct 2003 13:42:03 +0000 (13:42 +0000)]
0x7FFFFFFFFF is >32 bits and needs an explicit LL.

20 years agoPlug a memory leak in the PAM child process. It is of no great consequence
des [Thu, 23 Oct 2003 08:27:16 +0000 (08:27 +0000)]
Plug a memory leak in the PAM child process.  It is of no great consequence
as the process is short-lived, and the leak occurs very rarely and always
shortly before the process terminates.

MFC after: 3 days

20 years agoConnect fabsl.c to the build.
des [Thu, 23 Oct 2003 08:23:51 +0000 (08:23 +0000)]
Connect fabsl.c to the build.

20 years agoAdd prototypes for all long double functions in C99. Leave them all
des [Thu, 23 Oct 2003 08:23:38 +0000 (08:23 +0000)]
Add prototypes for all long double functions in C99.  Leave them all
#if 0'd out, except for fabsl(3) which I've implemented.

20 years agoImplement fabsl(3), allowing the world to build with -fno-builtin.
des [Thu, 23 Oct 2003 08:20:47 +0000 (08:20 +0000)]
Implement fabsl(3), allowing the world to build with -fno-builtin.

20 years agoCleanup. Remove the md_flags for threads. It's not used. The flags
marcel [Thu, 23 Oct 2003 06:41:59 +0000 (06:41 +0000)]
Cleanup. Remove the md_flags for threads. It's not used. The flags
we had were bogus.
While here, reassign the copyright to the Project. There's nothing
in this files that originates from NetBSD, especially now that the
FreeBSD/alpha bits have been removed, but even then the amount of
inherited code that we actually used was nil.

20 years agoReimplement unaligned_fixup() using the new disassembler and a
marcel [Thu, 23 Oct 2003 06:32:34 +0000 (06:32 +0000)]
Reimplement unaligned_fixup() using the new disassembler and a
mcontext_t for the register values. Currently only ld8 and ldfd
instructions are handled as those are the ones we need now (a
misaligned ld8 occurs 4 times in ntpd(8) and a misaligned ldfd
occurs once in mozilla 1.4 and 1.5). Other instructions are added
when needed.

20 years agoMdoc Janitor:
hmp [Thu, 23 Oct 2003 06:24:55 +0000 (06:24 +0000)]
Mdoc Janitor:

  * Use 'manual' instead of 'man' for consistency.

20 years agoRemove unused include of <machine/inst.h>
marcel [Thu, 23 Oct 2003 06:23:55 +0000 (06:23 +0000)]
Remove unused include of <machine/inst.h>

20 years agoRemove prototype of unaligned_fixup() and fix a nearby style(9)
marcel [Thu, 23 Oct 2003 06:21:44 +0000 (06:21 +0000)]
Remove prototype of unaligned_fixup() and fix a nearby style(9)
bug.

20 years agoAdd prototypes for spillfd() and unaligned_fixup().
marcel [Thu, 23 Oct 2003 06:20:38 +0000 (06:20 +0000)]
Add prototypes for spillfd() and unaligned_fixup().

20 years agoAdd spillfd(). This function loads a double-precision FP register
marcel [Thu, 23 Oct 2003 06:19:06 +0000 (06:19 +0000)]
Add spillfd(). This function loads a double-precision FP register
at the first address and spills it to the second address. This
allows unaligned_fixup() to update the context of the process in
a way that assures proper rounding.
Similar functions for single-and extended-precision are added when
needed.

20 years agoUse amd64_set_fsbase() instead of calling sysarch() directly.
peter [Thu, 23 Oct 2003 06:12:57 +0000 (06:12 +0000)]
Use amd64_set_fsbase() instead of calling sysarch() directly.

20 years agoHook-up the new disassembler.
marcel [Thu, 23 Oct 2003 06:11:37 +0000 (06:11 +0000)]
Hook-up the new disassembler.

20 years agoAdd implementations of amd64_[gs]et_[fg]sbase().
peter [Thu, 23 Oct 2003 06:07:09 +0000 (06:07 +0000)]
Add implementations of amd64_[gs]et_[fg]sbase().

20 years agoMdoc Janitor:
hmp [Thu, 23 Oct 2003 06:06:33 +0000 (06:06 +0000)]
Mdoc Janitor:

  * Uppercase the .Dt command contents.

  * Remove incorrect usage of .Fa.

  * Use .Va for struct members, and .Vt for structs
    (correct replacement for .Fa)

  * Markup VM_* and MAP_* macros with .Dv command.

  * Replace 'man' with 'manual' for consistency.

20 years agoUse a more robust API altogether for the amd64_get_fsbase() etc functions.
peter [Thu, 23 Oct 2003 06:06:14 +0000 (06:06 +0000)]
Use a more robust API altogether for the amd64_get_fsbase() etc functions.

20 years agoAdd a new disassembler that improves over the previous disassembler
marcel [Thu, 23 Oct 2003 06:01:52 +0000 (06:01 +0000)]
Add a new disassembler that improves over the previous disassembler
in that it provides an abstract (intermediate) representation for
instructions. This significantly improves working with instructions
such as emulation of instructions that are not implemented by the
hardware (e.g. long branch) or enhancing implemented instructions
(e.g. handling of misaligned memory accesses). Not to mention that
it's much easier to print instructions.

Functions are included that provide a textual representation for
opcodes, completers and operands.

The disassembler supports all ia64 instructions defined by revision
2.1 of the SDM (Oct 2002).

20 years agoLook at the equipment list for amd64 as well as i386 for autodetecting
peter [Thu, 23 Oct 2003 05:52:52 +0000 (05:52 +0000)]
Look at the equipment list for amd64 as well as i386 for autodetecting
floppy drives in the absence of hints.

20 years agoCorrect #include file in SYNOPSIS:
hmp [Thu, 23 Oct 2003 05:47:38 +0000 (05:47 +0000)]
Correct #include file in SYNOPSIS:

    It is not sys/geom_disk.h, but located under geom/ directory,
    so, mark it geom/geom_disk.h.

20 years agoMdoc Janitor:
hmp [Thu, 23 Oct 2003 05:41:05 +0000 (05:41 +0000)]
Mdoc Janitor:

  * Uppercase .Dt command contents.

  * Make use of .Fo and .Fc for marking up functions with
    a lot of arguments.

    NOTE: Please do not use the `\' line seperator for mdoc(7)
    manual pages, as it has problems of its own on some displays;
    instead, consult the mdoc(7) manual on using .Fo and .Fc.

  * Change 'man' to 'manual' for consistency.

20 years agoMdoc Janitor:
hmp [Thu, 23 Oct 2003 05:34:13 +0000 (05:34 +0000)]
Mdoc Janitor:

  * Use the .Sx command for referencing sections.

20 years agoFix mismerge from one tree to another: add (
imp [Thu, 23 Oct 2003 05:33:53 +0000 (05:33 +0000)]
Fix mismerge from one tree to another: add (

20 years agoRenumber the sysarch vectors for amd64 specific syscalls so that I can
peter [Thu, 23 Oct 2003 05:31:23 +0000 (05:31 +0000)]
Renumber the sysarch vectors for amd64 specific syscalls so that I can
implement i386 compat numbers where it makes sense.  This would save a
syscall translation layer.  Yes, this breaks the abi slightly again, but
fortunately its just a recompile rather than tweaking the source.  I will
be fixing the libc stubs while I'm here.

20 years agoAdd a GEOM(4) MLINK.
hmp [Thu, 23 Oct 2003 05:27:38 +0000 (05:27 +0000)]
Add a GEOM(4) MLINK.