]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
21 years agoBack out last commits. The elf64/elf32 kernel name thing was more pain
peter [Thu, 1 May 2003 03:33:28 +0000 (03:33 +0000)]
Back out last commits.  The elf64/elf32 kernel name thing was more pain
than it was worth.

21 years agoSlight reorg and added AMD64 support. A couple of the MODINFOMD_* values
peter [Thu, 1 May 2003 03:31:18 +0000 (03:31 +0000)]
Slight reorg and added AMD64 support.  A couple of the MODINFOMD_* values
that were added to sparc64 and later powerpc, really should have been in
the MI area.  But changing that now with insufficient preperation will
just cause too much pain.

Move MD_FETCH() to the MI sys/linker.h file to avoid another two copies
of it.

21 years ago - Update the vm_object locking in vm_object_reference().
alc [Thu, 1 May 2003 03:29:20 +0000 (03:29 +0000)]
 - Update the vm_object locking in vm_object_reference().
 - Convert some dead code in vm_object_reference() into a comment.

21 years agoLock accesses to the vm_object's ref_count and resident_page_count.
alc [Thu, 1 May 2003 03:10:38 +0000 (03:10 +0000)]
Lock accesses to the vm_object's ref_count and resident_page_count.

21 years agoSync up with the files in the hammer branch in the p4 tree to get basic
peter [Thu, 1 May 2003 02:59:24 +0000 (02:59 +0000)]
Sync up with the files in the hammer branch in the p4 tree to get basic
AMD64 support.  There is still more to add.

21 years agoAdd the -j and -y options to the synopsis.
tjr [Thu, 1 May 2003 02:37:46 +0000 (02:37 +0000)]
Add the -j and -y options to the synopsis.

21 years agoFlush streams before calling system() so that the output appears in the
tjr [Thu, 1 May 2003 02:36:27 +0000 (02:36 +0000)]
Flush streams before calling system() so that the output appears in the
right place in the output stream when redirected to a file (when full
buffering is enabled). Noticed by schweikh on freebsd-standards.

21 years agoDon't emulate a MBR by handling the MBR::type attribute. It is
marcel [Thu, 1 May 2003 01:51:28 +0000 (01:51 +0000)]
Don't emulate a MBR by handling the MBR::type attribute. It is
not needed at all. The BSD class will attach to a GPT class without
it.

21 years agoAdd the #includes previously in individual .c files.
grog [Thu, 1 May 2003 01:40:16 +0000 (01:40 +0000)]
Add the #includes previously in individual .c files.

Change name of history file to History to avoid name conflicts.

21 years agoMove most #includes to vext.h.
grog [Thu, 1 May 2003 01:39:49 +0000 (01:39 +0000)]
Move most #includes to vext.h.

Change name of history file to History to avoid name conflicts.

Don't try to make devices unless devfs has been removed.

Don't accept resetconfig command from a file.

Abused by:  Jens Schweikhardt <schweikh@schweikhardt.net>

Remove dead code (#if 0)

vinum_mirror: Don't try to create mirrors with 0 drives.

Found by: mismatch between enum kw in two different files.

21 years agoMove most #includes to vext.h.
grog [Thu, 1 May 2003 01:39:42 +0000 (01:39 +0000)]
Move most #includes to vext.h.

Change name of history file to History to avoid name conflicts.

Rewrite minor number decoding.  Now we have only three types of
object: subdisks, plexes and volumes.  The encoding for plexes and
subdisks no longer reflects the object to which they belong.  The
super devices are high-order volume numbers.  This gives vastly more
potential volumes (4 million instead of 256).

Don't try to chown directories if they haven't been created.

21 years agoMove most #includes to vext.h.
grog [Thu, 1 May 2003 01:38:55 +0000 (01:38 +0000)]
Move most #includes to vext.h.

vinum_info: Use increasing verbosity to show time spent in disk
    driver.

Correct a comment.

21 years agoRewrite minor number decoding. Now we have only three types of
grog [Thu, 1 May 2003 01:35:03 +0000 (01:35 +0000)]
Rewrite minor number decoding.  Now we have only three types of
object: subdisks, plexes and volumes.  The encoding for plexes and
subdisks no longer reflects the object to which they belong.  The
super devices are high-order volume numbers.  This gives vastly more
potential volumes (4 million instead of 256).

21 years agoFor consistency's sake, on command failure, throw 1, not -1.
grog [Thu, 1 May 2003 01:34:38 +0000 (01:34 +0000)]
For consistency's sake, on command failure, throw 1, not -1.

Rewrite minor number decoding.  Now we have only three types of
object: subdisks, plexes and volumes.  The encoding for plexes and
subdisks no longer reflects the object to which they belong.  The
super devices are high-order volume numbers.  This gives vastly more
potential volumes (4 million instead of 256).

21 years agoRewrite minor number decoding. Now we have only three types of
grog [Thu, 1 May 2003 01:34:05 +0000 (01:34 +0000)]
Rewrite minor number decoding.  Now we have only three types of
object: subdisks, plexes and volumes.  The encoding for plexes and
subdisks no longer reflects the object to which they belong.  The
super devices are high-order volume numbers.  This gives vastly more
potential volumes (4 million instead of 256).

Correct formats for some error messages.  Don't cast the value to
match the format.

21 years agoRewrite minor number decoding. Now we have only three types of
grog [Thu, 1 May 2003 01:33:34 +0000 (01:33 +0000)]
Rewrite minor number decoding.  Now we have only three types of
object: subdisks, plexes and volumes.  The encoding for plexes and
subdisks no longer reflects the object to which they belong.  The
super devices are high-order volume numbers.  This gives vastly more
potential volumes (4 million instead of 256).

Tidy up comments.

Check for null rqgs.  This continue to be reported, though I can't
work out why.

Correct formats for some error messages.  Don't cast the value to
match the format.

Use microtime, not getmicrotime, for timing debug entries.

21 years agoTerminate a comment.
grog [Thu, 1 May 2003 01:33:01 +0000 (01:33 +0000)]
Terminate a comment.

21 years agoDon't make definition of kw_debug dependent on VINUMDEBUG. In
grog [Thu, 1 May 2003 01:32:31 +0000 (01:32 +0000)]
Don't make definition of kw_debug dependent on VINUMDEBUG.  In
userland, define the keyword even if the kernel module doesn't have
debug code.

21 years agoUse strrchr, not rindex. This is for compatibility with other
grog [Thu, 1 May 2003 01:32:08 +0000 (01:32 +0000)]
Use strrchr, not rindex.  This is for compatibility with other
systems, and requires a #define.

21 years ago#ifdef VINUMDEBUG, not #if VINUMDEBUG.
grog [Thu, 1 May 2003 01:31:48 +0000 (01:31 +0000)]
#ifdef VINUMDEBUG, not #if VINUMDEBUG.

21 years agoDon't make definition of kw_debug dependent on VINUMDEBUG. It's only
grog [Thu, 1 May 2003 01:31:20 +0000 (01:31 +0000)]
Don't make definition of kw_debug dependent on VINUMDEBUG.  It's only
an enum value, and dropping it can lead to some spectacular surprises
in userland.

21 years agoRewrite minor number decoding. Now we have only three types of
grog [Thu, 1 May 2003 01:30:59 +0000 (01:30 +0000)]
Rewrite minor number decoding.  Now we have only three types of
object: subdisks, plexes and volumes.  The encoding for plexes and
subdisks no longer reflects the object to which they belong.  The
super devices are high-order volume numbers.  This gives vastly more
potential volumes (4 million instead of 256).

As a result of the minor number changes, split out the superdevice
handling into a separate function, vinum_super_ioctl.  This was most
of the code of vinumioctl.

attachobject: Improve error checking.

21 years agoUse microtime, not getmicrotime, for timing debug entries.
grog [Thu, 1 May 2003 01:30:31 +0000 (01:30 +0000)]
Use microtime, not getmicrotime, for timing debug entries.

init_drive: Rephrase error message text.
    Remove dead code (inside #if 0).

Change name of find_drive_by_dev to the more descriptive
find_drive_by_name.

Tidy up comments.

21 years agoRemove "to do" comments.
grog [Thu, 1 May 2003 01:29:52 +0000 (01:29 +0000)]
Remove "to do" comments.

get_emppty_drive: Fix a day one bug with strcpy parameters.

Change name of find_drive_by_dev to the more descriptive
find_drive_by_name.

Rewrite minor number decoding.  Now we have only three types of
object: subdisks, plexes and volumes.  The encoding for plexes and
subdisks no longer reflects the object to which they belong.  The
super devices are high-order volume numbers.  This gives vastly more
potential volumes (4 million instead of 256).

21 years agoRewrite minor number decoding. Now we have only three types of
grog [Thu, 1 May 2003 01:28:42 +0000 (01:28 +0000)]
Rewrite minor number decoding.  Now we have only three types of
object: subdisks, plexes and volumes.  The encoding for plexes and
subdisks no longer reflects the object to which they belong.  The
super devices are high-order volume numbers.  This gives vastly more
potential volumes (4 million instead of 256).

Remove an unnecessary goto.

vinumopen: Return EINVAL, not ENXIO, on an attempt to open a
referenced plex.

21 years agoCommit MD parts of a loosely functional AMD64 port. This is based on
peter [Thu, 1 May 2003 01:05:25 +0000 (01:05 +0000)]
Commit MD parts of a loosely functional AMD64 port.  This is based on
a heavily stripped down FreeBSD/i386 (brutally stripped down actually) to
attempt to get a stable base to start from.  There is a lot missing still.
Worth noting:
- The kernel runs at 1GB in order to cheat with the pmap code.  pmap uses
  a variation of the PAE code in order to avoid having to worry about 4
  levels of page tables yet.
- It boots in 64 bit "long mode" with a tiny trampoline embedded in the
  i386 loader.  This simplifies locore.s greatly.
- There are still quite a few fragments of i386-specific code that have
  not been translated yet, and some that I cheated and wrote dumb C
  versions of (bcopy etc).
- It has both int 0x80 for syscalls (but using registers for argument
  passing, as is native on the amd64 ABI), and the 'syscall' instruction
  for syscalls.  int 0x80 preserves all registers, 'syscall' does not.
- I have tried to minimize looking at the NetBSD code, except in a couple
  of places (eg: to find which register they use to replace the trashed
  %rcx register in the syscall instruction).  As a result, there is not a
  lot of similarity.  I did look at NetBSD a few times while debugging to
  get some ideas about what I might have done wrong in my first attempt.

21 years agoKPT_MIN_ADDRESS and KPT_MAX_ADDRESS are not used anywhere. And if they
peter [Thu, 1 May 2003 00:10:38 +0000 (00:10 +0000)]
KPT_MIN_ADDRESS and KPT_MAX_ADDRESS are not used anywhere.  And if they
were, they are not safe to use outside of the kernel since these values
can change at kernel compile time - ie: we do not want them compiled into
userland binaries.

21 years agoKill MID_MACHINE, its a.out specific, the only platform that supports
marcel [Wed, 30 Apr 2003 23:16:33 +0000 (23:16 +0000)]
Kill MID_MACHINE, its a.out specific, the only platform that supports
it is i386. All of the other platforms should remove it too.
-- peter@

21 years agoRepocopy from x86_64/... to amd64/...
peter [Wed, 30 Apr 2003 22:51:59 +0000 (22:51 +0000)]
Repocopy from x86_64/... to amd64/...
Rename visible x86_64 references to amd64.
Kill MID_MACHINE, its a.out specific, the only platform that supports it
is i386.  All of the other platforms should remove it too.

21 years agoAdd AMD64 hooks
peter [Wed, 30 Apr 2003 22:22:29 +0000 (22:22 +0000)]
Add AMD64 hooks

21 years agoAdd support for IC Book Ironclad Pro/Lite 8-port cards.
sobomax [Wed, 30 Apr 2003 22:15:47 +0000 (22:15 +0000)]
Add support for IC Book Ironclad Pro/Lite 8-port cards.

Sponsired by: IC Book Labs
MFC After: 2 weeks

21 years agoWe use i386 boot code on AMD64.
peter [Wed, 30 Apr 2003 22:13:36 +0000 (22:13 +0000)]
We use i386 boot code on AMD64.

21 years agoFix transcription error. Use == NULL, not != NULL. Fortunately this
peter [Wed, 30 Apr 2003 22:09:26 +0000 (22:09 +0000)]
Fix transcription error.  Use == NULL, not != NULL.  Fortunately this
was harmless.

21 years agoUse the 64 bit sized struct kinfo_proc for AMD64.
peter [Wed, 30 Apr 2003 22:06:39 +0000 (22:06 +0000)]
Use the 64 bit sized struct kinfo_proc for AMD64.

21 years agoLook for an elf32 kernel (powerpc) and elf64 kernel (sparc64) as well
peter [Wed, 30 Apr 2003 22:05:48 +0000 (22:05 +0000)]
Look for an elf32 kernel (powerpc) and elf64 kernel (sparc64) as well
as a plain "elf kernel".

21 years agoACPI will always be present on AMD64 - it will never be an autodetect
peter [Wed, 30 Apr 2003 22:02:39 +0000 (22:02 +0000)]
ACPI will always be present on AMD64 - it will never be an autodetect
module.

21 years agoAlso look for an "elf64 kernel" (for sparc64) and "elf32 kernel" (for
peter [Wed, 30 Apr 2003 22:00:16 +0000 (22:00 +0000)]
Also look for an "elf64 kernel" (for sparc64) and "elf32 kernel" (for
powerpc) when building metadata.

21 years agoThe PAM module pam_krb5 does not have "session" capabilities.
markm [Wed, 30 Apr 2003 21:57:54 +0000 (21:57 +0000)]
The PAM module pam_krb5 does not have "session" capabilities.
Don't give examples of such use, this is bogus.

21 years agoAMD64 uses the new-style cpu_switch()/cpu_throw() calling conventions.
peter [Wed, 30 Apr 2003 21:45:03 +0000 (21:45 +0000)]
AMD64 uses the new-style cpu_switch()/cpu_throw() calling conventions.

21 years agoCreate a 'legacy' node for AMD64 as well as i386. While we'll never
peter [Wed, 30 Apr 2003 21:41:41 +0000 (21:41 +0000)]
Create a 'legacy' node for AMD64 as well as i386.  While we'll never
have to use it since all AMD64 machines are supposed to have acpi etc,
I'm using it during development so I can avoid the acpi code for now.
Yes, this is cheating.

21 years agoEliminate a compiler warning with gcc3.3 on AMD64, where speed is
peter [Wed, 30 Apr 2003 21:39:28 +0000 (21:39 +0000)]
Eliminate a compiler warning with gcc3.3 on AMD64, where speed is
a 32 bit int which can never be > ULONG_MAX / 8.  Its an 'always true'
warning.

21 years agoMore factual updates for kerberos 5.
markm [Wed, 30 Apr 2003 21:15:41 +0000 (21:15 +0000)]
More factual updates for kerberos 5.

21 years agoRemove 80386 bandaids from code repocopied from i386. rtld_start.S still
peter [Wed, 30 Apr 2003 21:09:06 +0000 (21:09 +0000)]
Remove 80386 bandaids from code repocopied from i386.  rtld_start.S still
todo.

21 years agoAMD64 support (another IEEEFP platform)
peter [Wed, 30 Apr 2003 21:06:30 +0000 (21:06 +0000)]
AMD64 support (another IEEEFP platform)

21 years agoAMD64 support; repocopied from i386
peter [Wed, 30 Apr 2003 21:05:33 +0000 (21:05 +0000)]
AMD64 support; repocopied from i386

21 years agoTeach libdisk that AMD64 works just like i386
peter [Wed, 30 Apr 2003 21:03:16 +0000 (21:03 +0000)]
Teach libdisk that AMD64 works just like i386

21 years agoMake the defaults for Kerberos 5 a little more up-to-date.
markm [Wed, 30 Apr 2003 20:58:49 +0000 (20:58 +0000)]
Make the defaults for Kerberos 5 a little more up-to-date.

21 years agoReplace beforeinstall: with plain FILES.
ru [Wed, 30 Apr 2003 20:48:03 +0000 (20:48 +0000)]
Replace beforeinstall: with plain FILES.

21 years agoChange the name of the kadmind binary to match reality, now that
markm [Wed, 30 Apr 2003 20:42:41 +0000 (20:42 +0000)]
Change the name of the kadmind binary to match reality, now that
KerberosIV is no longer an issue.

21 years agoStyle fixes to struct sigacts member comments. Sort function prototypes.
jhb [Wed, 30 Apr 2003 19:57:21 +0000 (19:57 +0000)]
Style fixes to struct sigacts member comments.  Sort function prototypes.

21 years agoForgot to remove Giant around call to kern_sigaction() in
jhb [Wed, 30 Apr 2003 19:45:13 +0000 (19:45 +0000)]
Forgot to remove Giant around call to kern_sigaction() in
freebsd4_sigaction() in revision 1.232.

21 years agoAxe a stale comment.
jhb [Wed, 30 Apr 2003 19:41:04 +0000 (19:41 +0000)]
Axe a stale comment.

21 years agoAdd __amd64__ to the list of things that use IEEEFP
peter [Wed, 30 Apr 2003 19:32:25 +0000 (19:32 +0000)]
Add __amd64__ to the list of things that use IEEEFP

21 years agoTell malloc.c that AMD64 uses the same pagesize as i386.
peter [Wed, 30 Apr 2003 19:30:34 +0000 (19:30 +0000)]
Tell malloc.c that AMD64 uses the same pagesize as i386.

21 years agoAdd __amd64__ to the list of things that use HIDENAME() to hide minbrk
peter [Wed, 30 Apr 2003 19:29:02 +0000 (19:29 +0000)]
Add __amd64__ to the list of things that use HIDENAME() to hide minbrk

21 years agoUpdate for AMD64. repocopied from i386-elf/crt1.c. Deal with regparm
peter [Wed, 30 Apr 2003 19:27:07 +0000 (19:27 +0000)]
Update for AMD64. repocopied from i386-elf/crt1.c.  Deal with regparm
argument passing rather than stack based args.  The kernel passes the
base of the argument/env vector in %rdi (arg1).

21 years agoFix references to non-existing or obsoleted man pages.
schweikh [Wed, 30 Apr 2003 19:18:50 +0000 (19:18 +0000)]
Fix references to non-existing or obsoleted man pages.

PR: docs/51480 (only a small part)
Submitted by: Diomidis D. Spinellis <dds@aueb.gr>

21 years agoIncrease the scope of the vm_object lock in vm_map_delete().
alc [Wed, 30 Apr 2003 19:18:09 +0000 (19:18 +0000)]
Increase the scope of the vm_object lock in vm_map_delete().

21 years agoRemove redundant strlen checks, do not check the same
kan [Wed, 30 Apr 2003 19:05:53 +0000 (19:05 +0000)]
Remove redundant strlen checks, do not check the same
symbol twice.

21 years agoTurn off libstand for amd64 for the time being. It is built in i386
peter [Wed, 30 Apr 2003 18:42:25 +0000 (18:42 +0000)]
Turn off libstand for amd64 for the time being.  It is built in i386
mode, and we do not need the complications for now.

21 years agoDelete i386_* syscall wrappers and manpages. Rename Ovfork.S to vfork.S.
peter [Wed, 30 Apr 2003 18:17:07 +0000 (18:17 +0000)]
Delete i386_* syscall wrappers and manpages.  Rename Ovfork.S to vfork.S.

21 years agoUpdate for AMD64 after repocopy from i386/sys/*. This means:
peter [Wed, 30 Apr 2003 18:16:33 +0000 (18:16 +0000)]
Update for AMD64 after repocopy from i386/sys/*.  This means:
- strip out the nasty PIC_PROLOGUE/EPILOGUE stuff, since we dont have
to lose a register in PIC mode anymore (we use %rip-relative addressing).
- update for C register argument passing conventions.
- convert 32 bit to 64 bit register sizes etc.

21 years agoI have no idea why the reboot(2) syscall wrapper ends with iret, but
peter [Wed, 30 Apr 2003 18:14:44 +0000 (18:14 +0000)]
I have no idea why the reboot(2) syscall wrapper ends with iret, but
update it to be iretq for completeness.

21 years agoUpdate for AMD64. Depend on %rdi (first syscall argument) being preserved
peter [Wed, 30 Apr 2003 18:13:48 +0000 (18:13 +0000)]
Update for AMD64.  Depend on %rdi (first syscall argument) being preserved
across a "syscall"-style syscall

21 years agoUpdate for AMD64 (repocopied from i386/sys/Ovfork.S - why is it O?)
peter [Wed, 30 Apr 2003 18:13:13 +0000 (18:13 +0000)]
Update for AMD64 (repocopied from i386/sys/Ovfork.S - why is it O?)
Depend on %rsi being preserved across the "syscall"-style syscall and strip
out the PIC stuff (this cpu has full PC-relative addressing, at last!)

21 years agoUpdate for AMD64 contexts. Note that this still has some x87-style FPU
peter [Wed, 30 Apr 2003 18:09:33 +0000 (18:09 +0000)]
Update for AMD64 contexts.  Note that this still has some x87-style FPU
instructions here, these may need to be updated for SSE.
(Repocopied from i386/gen)

21 years agoReduce the SRCS to what compiles
peter [Wed, 30 Apr 2003 18:08:01 +0000 (18:08 +0000)]
Reduce the SRCS to what compiles

21 years agoUpdate for AMD64 (repocopied from i386/net). We can depend on having
peter [Wed, 30 Apr 2003 18:07:23 +0000 (18:07 +0000)]
Update for AMD64 (repocopied from i386/net).  We can depend on having
the bswap instruction (yay!).  Update for register parameter passing
instead of i386 style stack based param passing.

21 years agoUpdate for AMD64-style syscalls. Repocopied from i386/SYS.h.
peter [Wed, 30 Apr 2003 18:06:14 +0000 (18:06 +0000)]
Update for AMD64-style syscalls.  Repocopied from i386/SYS.h.
Note that the syscall instruction clobbers %rcx, which is inconvenient
because it is the fourth syscall argument, so we use %r10 (another scratch
register) for the 4th syscall arg instead (I picked %r10 to be the same as
NetBSD).  int 0x80 is still possible though, and it uses %rcx as usual.
Note that the syscall style syscall does *NOT* preserve all the registers,
unlike int 0x80.  We do not preserve the scratch registers except for
%rdi and %rsi.  int 0x80 does preserve everything but the return values.

21 years agoRange check the syscall number before looking it up in the syscallnames[]
jhb [Wed, 30 Apr 2003 17:59:27 +0000 (17:59 +0000)]
Range check the syscall number before looking it up in the syscallnames[]
array.

Submitted by: pho

21 years agoKerberosIV removal. Also crunch down the "krb5" distribution into
markm [Wed, 30 Apr 2003 17:54:19 +0000 (17:54 +0000)]
KerberosIV removal. Also crunch down the "krb5" distribution into
"secure".

21 years agoWe no longer have KerberosIV. Remove it here also.
markm [Wed, 30 Apr 2003 17:50:08 +0000 (17:50 +0000)]
We no longer have KerberosIV. Remove it here also.

21 years agoWe no longer have a separate kerberos distribution. Its now just
markm [Wed, 30 Apr 2003 17:46:24 +0000 (17:46 +0000)]
We no longer have a separate kerberos distribution. Its now just
part of the regular security dist.

21 years agoWe have to hide copyright[] for gcc33. :-(
obrien [Wed, 30 Apr 2003 17:40:28 +0000 (17:40 +0000)]
We have to hide copyright[] for gcc33. :-(

21 years agoOnly define platform once -- in a C file.
obrien [Wed, 30 Apr 2003 17:14:58 +0000 (17:14 +0000)]
Only define platform once -- in a C file.

21 years agoRemove some KerberosIV references that are now stale.
markm [Wed, 30 Apr 2003 17:01:43 +0000 (17:01 +0000)]
Remove some KerberosIV references that are now stale.

21 years agoFloating point libc functions traditionally written in ASM.
obrien [Wed, 30 Apr 2003 16:21:03 +0000 (16:21 +0000)]
Floating point libc functions traditionally written in ASM.
AMD64 does away with the x87 in 64-bit long mode, so we have to play the
SSE/SSE2 game now.

Obtained from: NetBSD/x86-64

21 years agoSymlink with -f.
obrien [Wed, 30 Apr 2003 15:49:40 +0000 (15:49 +0000)]
Symlink with -f.

21 years agoNo libc_r for AMD64.
obrien [Wed, 30 Apr 2003 15:33:50 +0000 (15:33 +0000)]
No libc_r for AMD64.

21 years agoMove the mailbox to the beginning of the thread and align the
deischen [Wed, 30 Apr 2003 15:05:17 +0000 (15:05 +0000)]
Move the mailbox to the beginning of the thread and align the
thread so that the context (SSE FPU state) is also aligned.

21 years agoUse %j instead of %q in printf to unbreak sparc64.
phk [Wed, 30 Apr 2003 13:36:51 +0000 (13:36 +0000)]
Use %j instead of %q in printf to unbreak sparc64.

21 years agoFix some easy, global, lint warnings. In most cases, this means
markm [Wed, 30 Apr 2003 12:57:40 +0000 (12:57 +0000)]
Fix some easy, global, lint warnings. In most cases, this means
making some local variables static. In a couple of cases, this means
removing an unused variable.

21 years agoRestore the ordering of NO's and remove one redundant NOLINT.
ru [Wed, 30 Apr 2003 12:38:20 +0000 (12:38 +0000)]
Restore the ordering of NO's and remove one redundant NOLINT.

Reviewed by: markm

21 years agoWarns fixing. Protect against inappropriate linting, and mark
markm [Wed, 30 Apr 2003 12:23:58 +0000 (12:23 +0000)]
Warns fixing. Protect against inappropriate linting, and mark
GCC-specific assemble code as such (in #ifdefs). Fix an easy
static variable warning while I'm here.

21 years agoHelp out with linting. Print the ${LINT} command line. This makes
markm [Wed, 30 Apr 2003 12:19:25 +0000 (12:19 +0000)]
Help out with linting. Print the ${LINT} command line. This makes
the all-important -DFOO -IBAR options "hang out".

21 years agoMake bitfields plain old u_int. u_int16_t makes no sense.
markm [Wed, 30 Apr 2003 12:07:32 +0000 (12:07 +0000)]
Make bitfields plain old u_int. u_int16_t makes no sense.

21 years agoFix "make world" for the WANT_LINT case. The various build tools
markm [Wed, 30 Apr 2003 11:17:33 +0000 (11:17 +0000)]
Fix "make world" for the WANT_LINT case. The various build tools
must not try to lint(1) stuff at *-tools time; keep the linting
for the actual build (which comes later).

21 years agoGroff after 2002/10/15 has no known backward compatibility issues,
ru [Wed, 30 Apr 2003 10:58:52 +0000 (10:58 +0000)]
Groff after 2002/10/15 has no known backward compatibility issues,
but we always want the latest macro files.

21 years agoRelease devq before detach.
simokawa [Wed, 30 Apr 2003 10:32:32 +0000 (10:32 +0000)]
Release devq before detach.

21 years agoBackout my changes in rev. 1.32 and 1.33. There is some code that depends
mtm [Wed, 30 Apr 2003 10:25:57 +0000 (10:25 +0000)]
Backout my changes in rev. 1.32 and 1.33. There is some code that depends
on the previous behaviour. This also brings strptime(3) behaviour back in line
with the other BSDs.

Approved by: markm (mentor)

21 years agoSet status to FWDEVINVAL if probe failed.
simokawa [Wed, 30 Apr 2003 10:20:24 +0000 (10:20 +0000)]
Set status to FWDEVINVAL if probe failed.

21 years agoThe including makefile's directory is tried first for .include "...".
ru [Wed, 30 Apr 2003 07:54:39 +0000 (07:54 +0000)]
The including makefile's directory is tried first for .include "...".

21 years agoMost things depend on !defined(NO_OPENSSL); make it look so.
ru [Wed, 30 Apr 2003 07:51:51 +0000 (07:51 +0000)]
Most things depend on !defined(NO_OPENSSL); make it look so.

21 years agoNOSECURE is implied by NOCRYPT, meaning if the latter is defined
ru [Wed, 30 Apr 2003 07:34:14 +0000 (07:34 +0000)]
NOSECURE is implied by NOCRYPT, meaning if the latter is defined
we won't be here.

21 years agoDon't clobber Kerberos5 telnet(1) and telnetd(8) with non-crypto versions.
ru [Wed, 30 Apr 2003 07:24:35 +0000 (07:24 +0000)]
Don't clobber Kerberos5 telnet(1) and telnetd(8) with non-crypto versions.

21 years agoFixed alignment.
ru [Wed, 30 Apr 2003 07:13:50 +0000 (07:13 +0000)]
Fixed alignment.

21 years agoThis script should require mountcritremote, since that is the last
mtm [Wed, 30 Apr 2003 07:12:09 +0000 (07:12 +0000)]
This script should require mountcritremote, since that is the last
script at which a filesystem will be mounted in FreeBSD. Without this
the script was being inserted later in the boot than necessary.

Approved by: markm (mentor) (implicit)
Reviewed by: dougb
Noticed by: Andrzej Toboƅa <san@wilk.2a.pl>

21 years agoo Don't announce that the timer is good when in fact it isn't timing
marcel [Wed, 30 Apr 2003 05:27:01 +0000 (05:27 +0000)]
o  Don't announce that the timer is good when in fact it isn't timing
   at all (ie reads yield constant values). Display the width as the
   difference between max and min so that constant timers have width
   zero.
o  Get the address of the timer from the XPmTmrBlk field instead of
   the V1_PmTmrBlk field. The former is a generic address and can
   specify a memory mapped I/O address. Remove <machine/bus_pio.h>
   to account for this. The timer is now properly configured on
   machines with ACPI v2 tables, whether PIO or MEMIO. Note that
   the acpica code converts v1 tables into v2 tables so the address
   is always present in XPmTmrBlk.
o  Replace the TIMER_READ macro with a call to the read_counter()
   function and add a barrier to make sure that we observe proper
   ordering of the reads.

21 years agoFix tpyo in last commit.
imp [Wed, 30 Apr 2003 04:14:56 +0000 (04:14 +0000)]
Fix tpyo in last commit.

Noticed by: kuriyama-san

21 years agoSet include path.
simokawa [Wed, 30 Apr 2003 03:39:25 +0000 (03:39 +0000)]
Set include path.