Commit Graph

99405 Commits

Author SHA1 Message Date
bjh21 dd7d539761 Add lchflags() to the list of syscalls that act on symlinks. 2002-07-07 14:56:48 +00:00
briggs 77f5558791 Fix a printf format warning. 2002-07-07 14:29:06 +00:00
drochner cff6339e49 attach "vesabios"
(well, not really yet)
2002-07-07 13:25:43 +00:00
drochner 2eb946d46c call kvm86's GPF handler 2002-07-07 13:24:36 +00:00
drochner 5641e4d726 Initialize the kernel vm86 code before autoconfiguration, so that
BIOS calls can be used for device probing etc.

And now it's getting nasty:
The kvm86 code needs a TSS, and it is most convenient to use proc0's
instead of doing some static allocation. (We might reconsider this if
we want to use vm86 for console initialization, ie much earlier.)
For the TSS slot to be allocated, we have to move the call to
i386_proc0_tss_ldt_init() up.
Since the npx code twiddles CR0 the corresponding pcb field must
be synchronized later. It would probably be cleaner to do this in
the npx driver.
2002-07-07 13:23:17 +00:00
drochner bc442c7173 -if APM_USE_KVM86 is set, use BIOS calls in virtual 8086 mode
-make sure the register frame is really cleared before use
 (someone added a field to the frame later which didn't get zeroed)
2002-07-07 13:06:56 +00:00
drochner da32c6df4a add definitions for the in-kernel vm86 code and vesabios attachment,
add an option APM_USE_KVM86 which does what its name implies
2002-07-07 13:03:47 +00:00
drochner c359f53282 First cut on VESA BIOS access to get extended video modes and framebuffer
access. For now, there is just probing code.
2002-07-07 12:59:58 +00:00
drochner 3b22d7973b This is a (still experimental) framework to run BIOS code in a virtual
8086 machine. Ifff it works, it is much easier and more elegant than
going to real real mode:
-simpler code
-no need for "identity" memory mappings
-easy passing of buffers for bulk data to functions
-some more control
There is no interrupt support ATM, and it lacks a function to access
random virtual memory of the VM. MP issues to consider.
2002-07-07 12:56:34 +00:00
wiz f6f0c7616b Remove obsolete files. 2002-07-07 12:47:20 +00:00
bjh21 525b050279 Align default behaviour of chmod, chgrp, chown, and chflags with symlink(7),
IEEE 1003.1-2001 (where applicable) and other systems, by follwoing symlinks
on the command line and changing their targets' modes/ownership/flags, rather
than ignoring them.

This fixes PR standards/563 (at last).
2002-07-07 11:44:02 +00:00
tron 7db7acdde8 Fix a typo in last commit which caused build failures if
"PCDISPLAY_SOFTCURSOR" is not defined.
2002-07-07 10:52:18 +00:00
lukem 4b9ba774c6 Various improvements in wording and marking,
from Alan Barrett <apb@cequrux.com>, with a bit of tweaking from me.
2002-07-07 10:40:31 +00:00
tron 10f663ea7a Make "rogue" build with "WARNS=2". The necessary patches were supplied
by David A. Holland in PR bin/17498.
2002-07-07 09:35:07 +00:00
junyoung f73c9efaab No need to include opt_vga.h here, since it is included in vgavar.h. 2002-07-07 07:37:50 +00:00
junyoung da843e013f There's no function like vga_common_setup. 2002-07-07 07:34:54 +00:00
junyoung 64a231036c Remove __P. 2002-07-07 07:05:40 +00:00
junyoung 798d30c8d5 - ANSI & KNF, notably remove __P.
- Some cosmetic changes.
2002-07-07 06:49:22 +00:00
junyoung 472e54071a Rename vc_ccol and vc_crow in struct pcdisplayscreen to cursorcol
and cursorrow, respectively, to be consistent with other members
in the structure.
2002-07-07 06:36:32 +00:00
matt 140a273f7a Use lvewx/stvewx for VSCR and save ourselves 12 bytes we don't need to load. 2002-07-07 00:46:20 +00:00
dbj 397ff5c82a protect Debugger() call with ifdef DDB 2002-07-07 00:43:11 +00:00
gmcgarry 4b0692e70a Don't invoke MachFPInterrupt() if we're using SOFTFLOAT. 2002-07-07 00:22:18 +00:00
gmcgarry cc4037a913 Overhaul the emulation facility. We do this by:
- accumulating all emulation code (including floating-point) in one place
- steal MachFPInterrupt() back from SOFTFLOAT for use only with interrupts
  and traps from *real* FPUs
- introducing MachEmulateInst() as a common dispatch point for all
  emulated instructions
- cleaning up emulation dispatch in trap()

Also, while we're here, implement MIPS2 LL/SC/SYNC emulation for MIPS1.

Tested on r3k with and without SOFTFLOAT enabled.
2002-07-06 23:59:18 +00:00
gmcgarry de0c9630a1 Fix console bell. 2002-07-06 23:15:29 +00:00
wiz 0fb8fdab47 ANSIfy, remove __P(). 2002-07-06 22:08:30 +00:00
wiz 557fe0a8de ANSIfy and de-__P() a bit more. 2002-07-06 22:01:40 +00:00
wiz 8fb60bde2d Remove unused files (cf. timed{,c}/timed{,c}-extern.h). 2002-07-06 21:59:26 +00:00
wiz b73d58cd80 Remove __P(). 2002-07-06 21:52:05 +00:00
wiz 56b7e3b326 Remove some unnecessary cruft. 2002-07-06 21:51:49 +00:00
wiz f718edfc2a unifdef __STDC__ 2002-07-06 21:46:59 +00:00
wiz 7146bf3ca6 ANSIfy, remove __P(), unifdef __STDC__. 2002-07-06 21:44:40 +00:00
wiz 5c90fa6755 ANSIfy, remove __P(). 2002-07-06 21:30:26 +00:00
itojun c6f53f281c correct tcp header chasing in pp_fastq processing. should fix kern/17491. 2002-07-06 18:33:45 +00:00
itojun 93b1b1c2c9 avoid trigraph. From: Matt Fredette <fredette@theory.lcs.mit.edu> 2002-07-06 18:21:43 +00:00
fredette 1c928c08b2 Removed ftpwelcome from BIN1; it was removed. 2002-07-06 18:19:31 +00:00
matt 263c3cd253 Merge macppc/ofppc locore OFW code and move it here. 2002-07-06 18:01:23 +00:00
matt 51f2834470 Bump max user address to 0xfffff000 (XXX maybe it should be -NBPG?). 2002-07-06 17:15:57 +00:00
fredette be87bf4822 Fixed the options KDGB_DEVNAME, for recent changes to config(8). 2002-07-06 15:41:38 +00:00
fredette 10d4232908 Fixed a printf argument type. 2002-07-06 15:39:07 +00:00
itohy 8f0b7653ca a.out prologue / epilogue (from in-tree egcs) 2002-07-06 13:20:08 +00:00
itohy b2f2b1cb44 Correct section / alignment rule for a.out. From in-tree egcs. 2002-07-06 13:19:00 +00:00
itohy bd6a4107d8 i386 uses _GLOBAL_OFFSET_TABLE_, not __GLOBAL_OFFSET_TABLE_, for GOT symbol
even if on a.out compiler.
Yes this is weird, but it is the traditional behavior.
2002-07-06 13:17:18 +00:00
fvdl 7cc42e6abb Move struct savefpu outside ifdef _KERNEL for the benefit of userland
code that includes <machine/pcb.h>
2002-07-06 10:43:32 +00:00
fvdl 405b1a8bb6 Add mtrr.c 2002-07-06 10:23:06 +00:00
fvdl f80efcf37c Enable building libx86_64 2002-07-06 10:19:08 +00:00
tron fbf97bb599 Remove unused user and group "news" as discussed on "tech-userlevel". 2002-07-06 09:27:31 +00:00
tv e248b10f59 Remove empty "ftpwelcome" entirely. This makes ftpd emit a two-line
extended greeting, which confuses lots of established firewalls.
(Not added to "obsolete" since removing this file is not mandatory.)
2002-07-06 04:24:08 +00:00
yamt cd7f302646 s/resolved_name/resolvedname/g
s/resolved_path/resolvedname/g
2002-07-06 02:46:41 +00:00
perseant eaa565b571 Changed size of struct inode; bump version to 1.6D. 2002-07-06 01:31:32 +00:00
perseant 32ae84b188 Deal with fragment size changes better. For each fragment that can
exist on an on-disk inode, we keep a record of its size in struct inode,
which is updated when we write the block to disk.  The cleaner routines
thus have ready access to what size is the correct size for this block,
on disk.

Fixed a related bug: if a file with fragments is being cleaned
(fragments being cleaned) at the same time it is being extended beyond
NDADDR blocks, we could write a bogus FINFO record that has a frag in the
middle; when it was cleaned this would give back bogus file data.  Don't
write the indirect blocks in this case, since there is no need.

lfs_fragextend and lfs_truncate no longer require the seglock, but instead
take a shared lock, which the seglock locks exclusively.
2002-07-06 01:30:11 +00:00