Age | Commit message (Collapse) | Author |
|
hold the kernel lock, but still need call one function that needs it.
Instead of grabbing the lock all over the place, move the locks into
the affected functions: trapsignal, scdebug*, ktrsyscall, ktrsysret,
systrace_redirect and ADDUPROF. In the cases we already hold the biglock
we'll just recurse.
kettenis@, beck@ ok
|
|
|
|
code. Missing chunks of the API are imported from the libc version,
with a few #ifdef's to port it into the kernel environment.
The bootblocks already used the newer code, and should encounter no
surprises since there are so few changes to the existing files. In
the kernel, ipcomp and kernel ppp are changed to the new API.
ipcomp has been tested.
ok tedu the brave
|
|
in master aborts. Return 0xffffffff to emulate what happens on non-perfect
architectures in that case.
ok deraadt@
|
|
in master aborts. Return 0xffffffff to emulate what happens on non-perfect
architectures in that case.
ok deraadt@
|
|
KERNEL_PROC_LOCK -> KERNEL_LOCK
KERNEL_PROC_UNLOCK -> KERNEL_UNLOCK
oga@ ok
|
|
soon to become struct generic_attach_args.
|
|
|
|
removal.
|
|
meh deraadt@, miod@; "haha, you're fixing presto!?" tedu@
|
|
VAX port. This means, 11/7xx, VAX6000 and VAX8x00 systems, as well as SBI,
CMI, BI, XMI and MASSBUS drivers.
Most of these files were not being compiled or kept in compilable state over
the years anyway.
|
|
write label location here too.
|
|
via readdoslabel(), tweak writedisklabel() to write disklabels at
the same place readdoslabel() reads them from. Irregardless of the
physical disk sector size. As is done in i386/amd64 already.
No change in behaviour for the 'normal' 512-byte sector case.
ok deraadt@
|
|
|
|
|
|
Soon to be used by pyro(4) as well.
|
|
that they're implemented consistently in bounds_check_with_label().
Also, per krw's request, change bounds_check_with_label() to return 0
if the checks succeed, and change the drivers to test == -1 instead of
<= 0. (Man page update to follow; intentionally omitting
arch/vax/mba/hp.c from this commit because it doesn't even build
currently and miod@ promises to kill it soon.)
ok krw@
|
|
|
|
ok beck deraadt
|
|
delete.
|
|
long" for __off_t. This is a C++ ABI bump, but martynas@ already
bumped libstdc++.
Discussed and requested by many on icb.
|
|
place it was missing. Delete now redundant calls to DIOCGDINFO when
getting physical disk info in disklabel(8) and fdisk(8).
Reminded by a fdisk discussion with Andres Perera on tech@.
ok deraadt@
|
|
link->bus->sc_dev.dv_unit.
|
|
devices must have an OpenBSD MBR partition to install /boot into.
But search anything except floppy devices (e.g. vnd) for such a
partition.
Feedback & ok deraadt@
|
|
a ffs frag size can be less than the d_secsize of the disk. Make
sure amd64 writedisklabel() puts the disklabel where readdoslabel()
will read it. Tweak i386/amd64 installboot/biosboot so sectors are
indeed used where sectors are claimed.
Lets me fdisk, newfs, mount and installboot onto 2048 and 4096
byte sector devices. Other filesystem utilites will still hold
surprises.
Note that actually booting from such devices will await BIOSen that
acknowledge such devices as bootable.
ok guenther@
|
|
i386 disobeys the Nth commandment. Fix this. While here, make i386 and amd64
definitions of iplclock and statclock match.
ok art@, kettenis@
|
|
|
|
|
|
problem has been tracked down. This fixes the sharing of the signal
handling state: shared bits go in sigacts, per-rthread bits goes in
struct proc.
ok deraadt@
|
|
to encourage someone to convert remaining a.out archs to elf. :)
ok deraadt
|
|
ok kettenis guenther tedu
|
|
|
|
|
|
Okay deraadt@, drahn@, kettenis@.
|
|
|
|
|
|
|
|
and might end up with duplicates, but that's not an issue until we're
multi-user. Change the TLB miss code to enter mappings with the right
protection ID. Properly switch pmaps on context switches. This makes the
copyins we do before starting init actually work instead of failing with
EFAULT.
|
|
filled in. Move D_CLONE down to 0x0001 as suggested by thib.
ok deraadt thib
|
|
the MDP_IRET flag in md_proc, then switch sigcode to enter the kernel
via syscall instead of int$80. Rearrange the return paths in both the
sysretq and iretq paths to reduce how long interrupts are blocked and
shave instructions.
ok kettenis@, extra testing krw@
|
|
|
|
ELFCLASS32 since we are building a 32-bit executable. Which is why
we have a custom nlist.c here.
Suggested by drahn@.
ok drahn@ "looks good" deraadt@
|
|
ok yasuoka@
|
|
|
|
libc/gen/nlist.c.
|
|
off_t casts to parameters for pread(). Whitespace and comment sync.
All changes made long ago in libc/gen/nlist.c. More delta reduction.
|
|
|
|
ok and tested yasuoka@
|
|
- delete #include <sys/cdefs.h> because it's unnecessary.
ok brad@
|
|
Allocate a bouncebuffer at boot time and bounce all pages over
0xffffffff through it.
``looks right but not tested'' miod@, ok krw (who watched me test it on
his monster laptop.
|