18 years agoactivate any tick-delayed software interrupts in the per-cpu hardclock
Matthew Dillon [Wed, 11 Feb 2004 21:47:51 +0000 (21:47 +0000)]
activate any tick-delayed software interrupts in the per-cpu hardclock
by calling setdelayed().  This was accidently removed when the clock code
was revamped.

18 years agoisa_wrongintr() cannot depend on the (void *) unit argument pointing to
Matthew Dillon [Wed, 11 Feb 2004 18:34:40 +0000 (18:34 +0000)]
isa_wrongintr() cannot depend on the (void *) unit argument pointing to
a degenerate structure containing the irq, beacuse isa_wrongintr() is
called only when the wrong APIC vector is used vs the one we thought we

This commit adjusts isa_wrongintr() to not depend on the unit argument,
fixing a crash that used to occur in the procedure.  It does not 'fix' the
interrupt routing bug responsible for causing the entry into isa_wrongintr(),
which is typically due to broken MP tables.  But at least the problem gets
reported.  FreeBSD-4.x just locks up without any error message in similar

18 years ago__FreeBSD__ to __DragonFly__
Joerg Sonnenberger [Wed, 11 Feb 2004 17:46:33 +0000 (17:46 +0000)]
__FreeBSD__ to __DragonFly__

18 years agoSync with FreeBSD's pccarddevs
Joerg Sonnenberger [Wed, 11 Feb 2004 17:34:08 +0000 (17:34 +0000)]
Sync with FreeBSD's pccarddevs

18 years agoFix gcc3 compilation
Joerg Sonnenberger [Wed, 11 Feb 2004 15:24:30 +0000 (15:24 +0000)]
Fix gcc3 compilation

18 years agoAdd defined(__FreeBSD__) and defined(__DragonFly__) where appropriate
Joerg Sonnenberger [Wed, 11 Feb 2004 15:17:26 +0000 (15:17 +0000)]
Add defined(__FreeBSD__) and defined(__DragonFly__) where appropriate

18 years agoAdd defined(__FreeBSD__) and defined(__DragonFly__) where appropiriate.
Joerg Sonnenberger [Wed, 11 Feb 2004 15:13:06 +0000 (15:13 +0000)]
Add defined(__FreeBSD__) and defined(__DragonFly__) where appropiriate.

18 years agoAdd missing */ on the end of a comment.
Eirik Nygaard [Wed, 11 Feb 2004 15:05:08 +0000 (15:05 +0000)]
Add missing */ on the end of a comment.

18 years agoFix gcc3 compilation
Joerg Sonnenberger [Wed, 11 Feb 2004 15:05:03 +0000 (15:05 +0000)]
Fix gcc3 compilation

18 years agoAllow choosing different GCC versions for buildworld and buildkernel as
Joerg Sonnenberger [Wed, 11 Feb 2004 11:11:24 +0000 (11:11 +0000)]
Allow choosing different GCC versions for buildworld and buildkernel as
requested by Simon "corecode" Schubert for snapshot builds.

18 years agoUpdate the Broadcom Gigabit Ethernet driver and the Broadcom
Hiten Pandya [Tue, 10 Feb 2004 21:14:14 +0000 (21:14 +0000)]
Update the Broadcom Gigabit Ethernet driver and the Broadcom
Gigabit PHY.  Revision numbers that appear below are taken from


Changes taken from FreeBSD RELENG_4:

* ( distinguish PCS encoding error events
  from actual link state change events.

* ( support for the Broadcom 5705.
  Please lookup the FreeBSD CVS Logs for if_bge.c
  for more information about this change.  This
  requires update of ``miidevs''.

* ( properly set the mbuf space size for
  the BCM5704 NICs to fix watchdog timeouts on Dell
  1750 servers, and fix spurious 'gigabit link up'
  messages due to not ignoring the 'MI_COMPLETE' bit
  in the MAC status register.

* ( BGE_HCC_TX_MAX_COAL_BDS_INT is at offset
  0x3C24, not at 0x3C34.

* ( and already merged by me in
   previous commits to if_bge.c).

* ( Dell 2650 no link led problem.  This
  requires update to the PHY (brgphy.c).

* ( was committed by me, which was fix to
  typo in a comment).

Changes from FreeBSD HEAD:

* Fix a typo when setting wirespeed in the Broadcom
  PHY module (rev. 1.27 HEAD of brgphy.c).

* Add PCI ID for yet another bge chip; the Altima 1002
  (rev 1.62 HEAD of if_bge.c).

* Update for if_xname (if_name -> if_dname).

All of the changes highlighted above are taken from FreeBSD
and the $FreeBSD$ tag was updated accordingly.  This should
fix most of the annoying Broadcom Gig-E bugs as of this date.

Tested by: dillon, drhodus

18 years agoMerge: FreeBSD (RELENG_4) netstat/inet.c rev.
Hiten Pandya [Tue, 10 Feb 2004 16:35:59 +0000 (16:35 +0000)]
Merge: FreeBSD (RELENG_4) netstat/inet.c rev.

Print the correct ICMP statistics for "no return routes".

18 years agoMerge: FreeBSD (RELENG_4) i386/isa/psm.c rev.
Hiten Pandya [Tue, 10 Feb 2004 15:56:38 +0000 (15:56 +0000)]
Merge: FreeBSD (RELENG_4) i386/isa/psm.c rev.

Attempt a reset of the mouse controller twice; this helps
pierce through some KVM switches.  The second reset is

18 years agoMerge: FreeBSD (RELENG_4) isp_ioctl.h
Hiten Pandya [Tue, 10 Feb 2004 15:51:56 +0000 (15:51 +0000)]
Merge: FreeBSD (RELENG_4) isp_ioctl.h

Fix broken _IOR usage.

18 years agoMerge: FreeBSD (RELENG_4) uipc_socket.c rev.
Hiten Pandya [Tue, 10 Feb 2004 15:45:43 +0000 (15:45 +0000)]
Merge: FreeBSD (RELENG_4) uipc_socket.c rev.

Don't allow listen() on already connected sockets, otherwise
the socket enters a bad state which results in a panic.  In
this case, solisten() returns EINVAL as POSIX mandates.

18 years agoMerge from FreeBSD:
Hiten Pandya [Tue, 10 Feb 2004 15:31:47 +0000 (15:31 +0000)]
Merge from FreeBSD:

  * Add a ratelimited message:
  "maxproc limit exceeded by uid %i, please see tuning(7) and login.conf(5)."

    This message will be triggered whenever a user hits his/her maxproc limit
    the systemwide maxproc limit is reached.

18 years agoScore a duh-point for myself. Change the remaining lines for the
Hiten Pandya [Tue, 10 Feb 2004 15:28:24 +0000 (15:28 +0000)]
Score a duh-point for myself.  Change the remaining lines for the
NEWCARD update.

Submitted by: Jeroen <koffieyahoo@hotmail.com>

18 years agoUpdate maintainer contact information.
Hiten Pandya [Tue, 10 Feb 2004 15:00:00 +0000 (15:00 +0000)]
Update maintainer contact information.

18 years agoNEWCARD: change `device card' to `device pccard'.
Hiten Pandya [Tue, 10 Feb 2004 14:59:20 +0000 (14:59 +0000)]
NEWCARD: change `device card' to `device pccard'.

18 years agofix typo
Robert Garrett [Tue, 10 Feb 2004 13:46:07 +0000 (13:46 +0000)]
fix typo

18 years agoMerge from FreeBSD:
Hiten Pandya [Tue, 10 Feb 2004 13:27:55 +0000 (13:27 +0000)]
Merge from FreeBSD:

Warn about partitions that overlap with the MBR, and add
the ability to rectify it automatically.

18 years agoInitial backport of NEWCARD from FreeBSD 5.
Joerg Sonnenberger [Tue, 10 Feb 2004 07:55:47 +0000 (07:55 +0000)]
Initial backport of NEWCARD from FreeBSD 5.

The included version is from end of November 2002 with the exception of
bus/pccard/pccarddevs which is from November 2003.

Thanks to Warner Losh and the other folks for NEWCARD.

18 years agoUse a globaldata_t instead of a cpuid in the lwkt_token structure. The
Matthew Dillon [Tue, 10 Feb 2004 07:34:43 +0000 (07:34 +0000)]
Use a globaldata_t instead of a cpuid in the lwkt_token structure.  The
LWKT subsystem already uses globaldata_t instead of cpuid for its thread
td_gd reference, and the IPI messaging code will soon be converted to take
a globaldata_t instead of a cpuid as well.  This reduces the number of
memory indirections we have to make to access the per-cpu globaldata space
in various procedures.

18 years agoConvert mbuf M_ flags into malloc M_ flags when calling malloc().
Matthew Dillon [Tue, 10 Feb 2004 07:28:41 +0000 (07:28 +0000)]
Convert mbuf M_ flags into malloc M_ flags when calling malloc().

18 years agoThe logical pci busses must attach to the physical pci bridges using the
Matthew Dillon [Tue, 10 Feb 2004 07:26:06 +0000 (07:26 +0000)]
The logical pci busses must attach to the physical pci bridges using the
same pci identifier used for the bridge.  If a machine has multiple
motherboard PCI bridges and also has a pci-to-pci bridge hanging off one
of those bridges, it was possible for the pci-to-pci bridge to be handed
an identifier for a motherboard pci bridge bus number which has not yet
been probed.  Then, later on, when the motherboard pci bridge bus is
probed the system believes that it has already been probed and refuses to
scan it.

This is why pcib #1, which gets added *AFTER* pcib #2 on a DELL 2550 does
not appear to exist on a DFly or FreeBSD-4 box.  pcib #1 is what the
BGE network driver is hanging off of on a DELL 2550.

This commit uses the secondary bus identifier as the starting unit number
for the attach rather then -1 (which scans forward from unit 0).  I am
not entirely sure that this is the correct fix.

18 years agoAdd lost -D__FreeBSD__
Joerg Sonnenberger [Tue, 10 Feb 2004 07:25:32 +0000 (07:25 +0000)]
Add lost -D__FreeBSD__

18 years agoIt seems I missed a directory when doing the __FreeBSD__ -> __DragonFly__
Robert Garrett [Tue, 10 Feb 2004 02:59:44 +0000 (02:59 +0000)]
It seems I missed a directory when doing the __FreeBSD__ -> __DragonFly__
conversion. This I believe makes world buildable with gcc3


    The things in the contrib areas will generate warnings about
__FreeBSD__ being redefined for the moment. To correct that
will require moving the files to where they are built from, and
correcting them there. Then patches will be sent to the owners of
the files, and finally we can update with corrected sources and
all will be back to normal. I will be going through these one by
one and moving the files that need to be fixed into place.
But I expect this to take some time.

18 years agodevsw() does not exist in DFly. use dev_dflags() to extract d_flags.
Matthew Dillon [Tue, 10 Feb 2004 00:50:03 +0000 (00:50 +0000)]
devsw() does not exist in DFly.  use dev_dflags() to extract d_flags.

18 years agoMerge from FreeBSD:
Hiten Pandya [Mon, 9 Feb 2004 21:51:28 +0000 (21:51 +0000)]
Merge from FreeBSD:

Don't check block number overflow for D_MEM;
/dev/fwmem needs 48-bit offsets.

18 years agoSplit the lwkt_token code out of lwkt_thread.c. Give it its own file.
Matthew Dillon [Mon, 9 Feb 2004 21:13:18 +0000 (21:13 +0000)]
Split the lwkt_token code out of lwkt_thread.c.  Give it its own file.
No operational changes.

18 years agoFix a DFly buildworld from 4.x issue. Only set HAVE_STDINT_H for
Matthew Dillon [Mon, 9 Feb 2004 20:12:05 +0000 (20:12 +0000)]
Fix a DFly buildworld from 4.x issue.  Only set HAVE_STDINT_H for
__DragonFly__, since FreeBSD-4 does not have it.

18 years agoAdd a locked-bus-cycle add to memory test
Matthew Dillon [Mon, 9 Feb 2004 18:15:35 +0000 (18:15 +0000)]
Add a locked-bus-cycle add to memory test

18 years agoAdd some basic in-pipeline instruction timing tests. Instruction timings
Matthew Dillon [Mon, 9 Feb 2004 18:08:57 +0000 (18:08 +0000)]
Add some basic in-pipeline instruction timing tests.  Instruction timings
depend on many things, especially the pipeline, memory queues, and register
and memory ordering.  Timings are not absolute and should be used for
reference only.

18 years agoInclude Makefile.miidevs, so we can just do:
Hiten Pandya [Mon, 9 Feb 2004 16:43:15 +0000 (16:43 +0000)]
Include Makefile.miidevs, so we can just do:

make miidevs.h

Instead of:

make -f Makefile.miidevs miidevs.h

18 years agoUpdate to devlist2h.awk and friends:
Hiten Pandya [Mon, 9 Feb 2004 16:41:33 +0000 (16:41 +0000)]
Update to devlist2h.awk and friends:

* Print $DragonFly$ instead of $FreeBSD$
* Comment out the original $FreeBSD$
* Add $DragonFly$ to miidevs.h

18 years agoMerge from FreeBSD:
Hiten Pandya [Mon, 9 Feb 2004 14:03:41 +0000 (14:03 +0000)]
Merge from FreeBSD:

Skip all devices whose header type  is > 2; '0' is normal, '1'
is a PCI Bridge and '2' is a Cardbus bridge.  Those are PCI 2.2

18 years agoremove unwanted __DragonFly__ >= tests
Robert Garrett [Mon, 9 Feb 2004 12:03:36 +0000 (12:03 +0000)]
remove unwanted __DragonFly__ >= tests

18 years ago__FreeBSD__ -> __DragonFly__
Robert Garrett [Sun, 8 Feb 2004 10:59:22 +0000 (10:59 +0000)]
__FreeBSD__ -> __DragonFly__

18 years agoThe last commit was noticed by Yonetani Tomokazu
Robert Garrett [Sun, 8 Feb 2004 10:54:25 +0000 (10:54 +0000)]
The last commit was noticed by Yonetani Tomokazu

18 years agoFix a couple of typos that slipped in
Robert Garrett [Sun, 8 Feb 2004 10:51:18 +0000 (10:51 +0000)]
Fix a couple of typos that slipped in

18 years agoPatch this file to allow the crossbuild to work again
Robert Garrett [Sun, 8 Feb 2004 10:48:30 +0000 (10:48 +0000)]
Patch this file to allow the crossbuild to work again
if all my tests are correct, anyway.

thanks expec to Ed Germain

18 years agoMerge from FreeBSD:
Hiten Pandya [Sun, 8 Feb 2004 07:10:46 +0000 (07:10 +0000)]
Merge from FreeBSD:

Replace an outb() with a DELAY(1) during the test for configuration
mechanism #1.  This fixes probing for PCI on some systems.

18 years agoMerge from FreeBSD:
Hiten Pandya [Sun, 8 Feb 2004 07:03:17 +0000 (07:03 +0000)]
Merge from FreeBSD:

Do not set the No_CRC bit in the Mode Control Register.

18 years agoMerge from FreeBSD:
Hiten Pandya [Sun, 8 Feb 2004 06:51:54 +0000 (06:51 +0000)]
Merge from FreeBSD:

By not setting No CRC in the Mode Control Register, we must
also reduce the size of the packet by 4 bytes to remvoe the
Ethernet CRC.

18 years agoMerge from FreeBSD:
Hiten Pandya [Sun, 8 Feb 2004 06:47:35 +0000 (06:47 +0000)]
Merge from FreeBSD:

Add support for `Allied Telesis SIC-AT' boards.

18 years agoMerge from FreeBSD:
Hiten Pandya [Sun, 8 Feb 2004 06:01:16 +0000 (06:01 +0000)]
Merge from FreeBSD:

Don't use the cached inp->inp_route unless it is marked
as RTF_UP; this fixes a panic when an interface is detached
(in event of suspend/resume).

18 years agoMerge from FreeBSD:
Hiten Pandya [Sun, 8 Feb 2004 05:56:10 +0000 (05:56 +0000)]
Merge from FreeBSD:

Set fs_ronly to the correct value in ffs_reload() when
reloading the file system super block after fsck has
repaired the file system.

18 years agoMerge from FreeBSD:
Hiten Pandya [Sun, 8 Feb 2004 05:44:58 +0000 (05:44 +0000)]
Merge from FreeBSD:

Return a size related error, instead of return 0 when *NOT*
creating a core dump due to resource limits specifying the
size as 0.  Otherwise waitpid() will incorrectly return a
status indicating that a core dump was created.

18 years agoMerge from FreeBSD:
Hiten Pandya [Sun, 8 Feb 2004 05:27:42 +0000 (05:27 +0000)]
Merge from FreeBSD:

Provide better return values for nfs_read();

18 years agoCosmetic code cleanup.
Jeffrey Hsu [Sun, 8 Feb 2004 00:11:02 +0000 (00:11 +0000)]
Cosmetic code cleanup.

18 years agoAdd a tunable hw.pci_disable_bios_route to work around broken PCI-BIOSes.
Joerg Sonnenberger [Sat, 7 Feb 2004 15:56:58 +0000 (15:56 +0000)]
Add a tunable hw.pci_disable_bios_route to work around broken PCI-BIOSes.

Many BIOS implementations don't route an interrupt to cardbus bridges
by default and some doesn't provide a working call. This results in
panics on boot up. For the OLDCARD pcic, it was possible to force the
interrupt-less operation, but NEWCARD doesn't have such an option and
will never have.

18 years agoRemove stale text in front of the DragonFly and FreeBSD keywords
Eirik Nygaard [Sat, 7 Feb 2004 15:41:13 +0000 (15:41 +0000)]
Remove stale text in front of the DragonFly and FreeBSD keywords

18 years agoAdjust infrastructure for NEWCARD
Joerg Sonnenberger [Fri, 6 Feb 2004 23:09:36 +0000 (23:09 +0000)]
Adjust infrastructure for NEWCARD

18 years agoDe-K&R-ify source, remove register keywords.
Joerg Sonnenberger [Fri, 6 Feb 2004 22:36:50 +0000 (22:36 +0000)]
De-K&R-ify source, remove register keywords.

Patch submited by Chris Pressey <cpressey@catseye.mine.nu>

Additionally cleanup some prototyps.

18 years agoAllows option to be specified on the command line when mount with -a.
Joerg Sonnenberger [Fri, 6 Feb 2004 22:11:48 +0000 (22:11 +0000)]
Allows option to be specified on the command line when mount with -a.

Patch submitted by Chis Pressey <cpressey@catseye.mine.nu>, backported
from FreeBSD.

18 years agoRemove the pca driver from the build for now, due to the revamp
Hiten Pandya [Fri, 6 Feb 2004 15:31:58 +0000 (15:31 +0000)]
Remove the pca driver from the build for now, due to the revamp
done recently on the timer/clock code. [1]

I have put an XXX comment, which means that we must add it back
once the PCM driver (pca) has been adjusted with the new timer

Submitted by: YONETANI Tomokazu <qhwt+dragonfly-bugs@les.ath.cx> [1]

18 years agoFix build of the PPS driver.
Hiten Pandya [Fri, 6 Feb 2004 15:26:20 +0000 (15:26 +0000)]
Fix build of the PPS driver.

Submitted by: YONETANI Tomokazu <qhwt+dragonfly-bugs@les.ath.cx>

18 years ago__FreeBSD__ -> __DragonFly__
Robert Garrett [Fri, 6 Feb 2004 09:17:41 +0000 (09:17 +0000)]
__FreeBSD__ -> __DragonFly__

18 years agoadd code to test for single files, instead of just full paths
Robert Garrett [Fri, 6 Feb 2004 08:49:55 +0000 (08:49 +0000)]
add code to test for single files, instead of just full paths

18 years agoundefine __FreeBSD__ it is no longer needed, since the kernel include
Robert Garrett [Fri, 6 Feb 2004 03:23:50 +0000 (03:23 +0000)]
undefine __FreeBSD__ it is no longer needed, since the kernel include
has been fixed

18 years ago__FreeBSD__ -> __DragonFly__
Robert Garrett [Fri, 6 Feb 2004 03:20:47 +0000 (03:20 +0000)]
__FreeBSD__ -> __DragonFly__

18 years ago__FreeBSD__ -> __DragonFly__
Robert Garrett [Thu, 5 Feb 2004 21:03:37 +0000 (21:03 +0000)]
__FreeBSD__ -> __DragonFly__

18 years agoFix bug when doing backquote expansion.
Joerg Sonnenberger [Thu, 5 Feb 2004 19:07:24 +0000 (19:07 +0000)]
Fix bug when doing backquote expansion.

Noted and fixed by Andrew Atrens <atrens@nortelnetworks.com>

18 years agonectar 2004/02/05 10:00:35 PST
David Rhodus [Thu, 5 Feb 2004 18:43:22 +0000 (18:43 +0000)]
nectar      2004/02/05 10:00:35 PST

  FreeBSD src repository

  Modified files:
    sys/kern             sysv_shm.c
  Correct a reference counting bug in shmat(2).  If vm_map_find(9)
  failed, the reference count for the virtual memory object referenced
  by the specified shared memory segment would have been erroneously

  Reported by:    Joost Pol <joost@pine.nl>

18 years agoSecond part of the firewire sync. Add defined(__DragonFly__) or
Joerg Sonnenberger [Thu, 5 Feb 2004 17:51:44 +0000 (17:51 +0000)]
Second part of the firewire sync. Add defined(__DragonFly__) or
defined(__FreeBSD__) to all checks of __FreeBSD_version to prepare
the kernel for GCC 3.3.

18 years agoAdd missing sbp.h to complete the firewire sync
Joerg Sonnenberger [Thu, 5 Feb 2004 14:32:53 +0000 (14:32 +0000)]
Add missing sbp.h to complete the firewire sync

18 years agoSync DragonFly and FreeBSD-current's FireWire driver.
Joerg Sonnenberger [Thu, 5 Feb 2004 13:32:08 +0000 (13:32 +0000)]
Sync DragonFly and FreeBSD-current's FireWire driver.

Patch submitted by Hidetoshi Shimokawa <simokawa@sat.t.u-tokyo.ac.jp>

Modified to leave the sbp hack inplace.

18 years agoUpdate style(9) to reflect current code practise.
Joerg Sonnenberger [Thu, 5 Feb 2004 11:51:54 +0000 (11:51 +0000)]
Update style(9) to reflect current code practise.

Patch submitted by Chris Pressey <cpressey@catseye.mine.nu>

18 years agoAllow world to build with gcc3, basically force openssl to use gettimeofday
Robert Garrett [Thu, 5 Feb 2004 04:22:22 +0000 (04:22 +0000)]
Allow world to build with gcc3, basically force openssl to use gettimeofday
instead of ftime()

18 years agoDisable -fformat-extensions temporarily
Robert Garrett [Wed, 4 Feb 2004 21:09:17 +0000 (21:09 +0000)]
Disable -fformat-extensions temporarily

18 years agoFix various warnings.
Joerg Sonnenberger [Wed, 4 Feb 2004 17:40:01 +0000 (17:40 +0000)]
Fix various warnings.

Patch submitted by Simon "corecode" Schubert.

18 years agomore __FreeBSD__ and __FreeBSD__ -> __DragonFly__ work.
Robert Garrett [Wed, 4 Feb 2004 15:39:54 +0000 (15:39 +0000)]
more __FreeBSD__ and __FreeBSD__ -> __DragonFly__ work.

with this commit, world now builds with gcc3,
however this is not completed, until the kernel
files are cleaned, and the __FreeBSD__ definitions removed,
as well as contrib being fixed.

18 years agodefine __FreeBSD__ for things that use kernel source that needs it for now
Robert Garrett [Wed, 4 Feb 2004 14:36:11 +0000 (14:36 +0000)]
define __FreeBSD__ for things that use kernel source that needs it for now

18 years ago__FreeBSD__ defines
Robert Garrett [Wed, 4 Feb 2004 14:34:36 +0000 (14:34 +0000)]
__FreeBSD__ defines

18 years agoDefine __FreeBSD__ in the make file for ipmon
Robert Garrett [Wed, 4 Feb 2004 01:02:14 +0000 (01:02 +0000)]
Define __FreeBSD__ in the make file for ipmon

18 years ago__FreeBSD__ -> __DragonFly__
Robert Garrett [Wed, 4 Feb 2004 00:52:55 +0000 (00:52 +0000)]
__FreeBSD__ -> __DragonFly__

18 years agodhclient needs __FreeBSD__ defined
Robert Garrett [Wed, 4 Feb 2004 00:48:39 +0000 (00:48 +0000)]
dhclient needs __FreeBSD__ defined

18 years ago__FreeBSD__ -> __DragonFly__
Robert Garrett [Tue, 3 Feb 2004 23:24:50 +0000 (23:24 +0000)]
__FreeBSD__ -> __DragonFly__

18 years agoMore __FreeBSD__ -> __DragonFly__ translation
Matthew Dillon [Tue, 3 Feb 2004 19:22:59 +0000 (19:22 +0000)]
More __FreeBSD__ -> __DragonFly__ translation

18 years agoThis should fix the dependancy loop for sure.
Matthew Dillon [Tue, 3 Feb 2004 19:06:06 +0000 (19:06 +0000)]
This should fix the dependancy loop for sure.

18 years agoFake __FreeBSD__ for sendmail contrib use.
Matthew Dillon [Tue, 3 Feb 2004 18:54:01 +0000 (18:54 +0000)]
Fake __FreeBSD__ for sendmail contrib use.

18 years agoTry to clean up more of GCC's xrealloc and xmalloc wrapper mess so
Matthew Dillon [Tue, 3 Feb 2004 18:06:06 +0000 (18:06 +0000)]
Try to clean up more of GCC's xrealloc and xmalloc wrapper mess so
buildworld builds.

18 years agogrep needs __FreeBSD__ defined
Robert Garrett [Tue, 3 Feb 2004 10:14:15 +0000 (10:14 +0000)]
grep needs __FreeBSD__ defined

18 years agodefine __FreeBSD__ for diff
Robert Garrett [Tue, 3 Feb 2004 10:04:04 +0000 (10:04 +0000)]
define __FreeBSD__ for diff

18 years agoAdd warning about memory usage to resident.conf and examples to both files
Robert Garrett [Tue, 3 Feb 2004 09:21:23 +0000 (09:21 +0000)]
Add warning about memory usage to resident.conf and examples to both files

18 years agochange FreeBSD in examples to DragonFly
Robert Garrett [Tue, 3 Feb 2004 08:43:41 +0000 (08:43 +0000)]
change FreeBSD in examples to DragonFly

18 years agoUpdate a few macros to print DragonFly instead of FreeBSD
Robert Garrett [Tue, 3 Feb 2004 08:37:33 +0000 (08:37 +0000)]
Update a few macros to print DragonFly instead of FreeBSD

18 years agoRemove obsolete __FreeBSD_version checks, add __DragonFly__ tests to
Matthew Dillon [Tue, 3 Feb 2004 07:34:10 +0000 (07:34 +0000)]
Remove obsolete __FreeBSD_version checks, add __DragonFly__ tests to
existing __FreeBSD__ checks.

18 years agoAdd DragonFly partition type and change FreeBSD in warnings to DragonFly
Robert Garrett [Tue, 3 Feb 2004 07:13:10 +0000 (07:13 +0000)]
Add DragonFly partition type and change FreeBSD in warnings to DragonFly

18 years agoChange __FreeBSD__ -> __DragonFly__
Matthew Dillon [Tue, 3 Feb 2004 07:11:53 +0000 (07:11 +0000)]
Change __FreeBSD__ -> __DragonFly__

18 years agoFake __FreeBSD__ for various contrib/ code that needs it.
Matthew Dillon [Tue, 3 Feb 2004 06:26:32 +0000 (06:26 +0000)]
Fake __FreeBSD__ for various contrib/ code that needs it.

18 years agoAdjust osreldate.h to only set __FreeBSD_version if __FreeBSD__ is set,
Matthew Dillon [Tue, 3 Feb 2004 05:51:51 +0000 (05:51 +0000)]
Adjust osreldate.h to only set __FreeBSD_version if __FreeBSD__ is set,
so we don't pollute the namespace when only __DragonFly__ is set.
__DragonFly_version is always set.

18 years agoForgot the contribited by line
Robert Garrett [Tue, 3 Feb 2004 05:26:48 +0000 (05:26 +0000)]
Forgot the contribited by line

Contributed by:
   Dylan Reinhold

18 years agoAdd -DSETPWENT_VOID to CFLAGS to work around a __FreeBSD__ conditional in
Matthew Dillon [Tue, 3 Feb 2004 05:12:51 +0000 (05:12 +0000)]
Add -DSETPWENT_VOID to CFLAGS to work around a __FreeBSD__ conditional in

18 years agoupdate this file correctly
Robert Garrett [Tue, 3 Feb 2004 04:50:47 +0000 (04:50 +0000)]
update this file correctly

I munged the patch the first time round

18 years agoMake the 'realclean' target respect KERNCONF.
Matthew Dillon [Tue, 3 Feb 2004 04:26:01 +0000 (04:26 +0000)]
Make the 'realclean' target respect KERNCONF.

Submitted-by: Peter Kadau <peter.kadau@tuebingen.mpg.de>
18 years agoAdjust __FreeBSD__ -> __DragonFly_
Matthew Dillon [Tue, 3 Feb 2004 04:23:25 +0000 (04:23 +0000)]
Adjust __FreeBSD__ -> __DragonFly_

18 years agoUndo the xmalloc->malloc optimization FreeBSD made in certain cases
Matthew Dillon [Tue, 3 Feb 2004 03:47:12 +0000 (03:47 +0000)]
Undo the xmalloc->malloc optimization FreeBSD made in certain cases
where xmalloc gets defined to malloc which gets defined to xmalloc which
gets defined to malloc again which gets defined to ... and so on.
Culprits: parser files, gcc/system.h, dragonfly-native.h, and various

Add [DragonFly] to gcc3's version ident.

18 years agoUpdate the GCC3 infrastructure Stage 1/2. This commit generates the basic
Matthew Dillon [Mon, 2 Feb 2004 23:35:12 +0000 (23:35 +0000)]
Update the GCC3 infrastructure Stage 1/2.  This commit generates the basic
infrastructure needed to support /usr/src/contrib/gcc-3.3 (a pristine gcc
dist) intead of /usr/src/contrib/gcc3 (munged version taken from FreeBSD-5).

This stage does not have all the fbsd/dfly specific extensions, such as

18 years agoAMD64 infrastructure stage 1/99. This is just a preliminary commit. Many
Matthew Dillon [Mon, 2 Feb 2004 08:05:56 +0000 (08:05 +0000)]
AMD64 infrastructure stage 1/99.  This is just a preliminary commit.  Many
of these files are being brought in from FreeBSD-5.  The noteable exception
is sys/amd64/pmap.h, which contains some #if 0'd FreeBSD-5 stuff but has
the beginnings of a new MMU infrastructure.  NOTHING WILL BUILD YET!

The DFly 64 bit AMD work will have a lot of similarities to the FreeBSD-5
work, but the PMAP/MMU/VM subsystem support is going to be written from
scratch and diverge wildly from F-5.

In particular, it is my intent to entirely do-away with %fs for per-cpu
storage references and instead use the top level PML4 page table (512GB
per entry, 256TB total VM) as a fixed per-cpu entity.  Each cpu will get
its own PML4 table.  Initially only one entry (512GB of VM) in PML4 will
be used to represent UVM.  This is the entry that the thread switch code
changes out.  Other entries will be used:

    PML4 TABLE (each cpu gets its own table)

* 1 switched entry 512GB of UVM (expandable to more)
* 1 static entry 512GB of KVM
* 1 static entry to map physical memory
* 1 per-cpu entry to map the per-cpu globaldata space.
* Additional entries for recursive page tables, third party
  process address space caches (userspace<->userspace copying),
  and other features.

This should greatly simplify the PMAP code... no copies of the 'high' kernel
PDE entries, for example, and we still have the flexibility of switching out
the whole PML4 table at a later date without interfering with the basic
feature set.