]> git.lizzy.rs Git - plan9front.git/log
plan9front.git
3 years agousbuhci: remove resetlk, simplify scanpci()
cinap_lenrek [Sun, 17 Jan 2021 10:53:50 +0000 (11:53 +0100)]
usbuhci: remove resetlk, simplify scanpci()

3 years agousbohci: use 64-bit io base address, disable interrupts before reset, remove resetlck
cinap_lenrek [Sun, 17 Jan 2021 10:51:59 +0000 (11:51 +0100)]
usbohci: use 64-bit io base address, disable interrupts before reset, remove resetlck

3 years agozerotrunc(8): add manpage
Ori Bernstein [Sun, 17 Jan 2021 00:17:27 +0000 (16:17 -0800)]
zerotrunc(8): add manpage

3 years agotroff2png(1): add manpage
Ori Bernstein [Sun, 17 Jan 2021 00:17:10 +0000 (16:17 -0800)]
troff2png(1): add manpage

3 years agotmdate(2): correct example in manpage
Ori Bernstein [Sat, 16 Jan 2021 22:24:32 +0000 (14:24 -0800)]
tmdate(2): correct example in manpage

add missing tmdate() call around %τ format.

3 years agotweak: support showdata plumb action (thanks sirjofri)
Sigrid [Sat, 16 Jan 2021 17:30:50 +0000 (18:30 +0100)]
tweak: support showdata plumb action (thanks sirjofri)

3 years ago9fs: bell labs is very dead
Sigrid [Fri, 15 Jan 2021 18:32:02 +0000 (19:32 +0100)]
9fs: bell labs is very dead

3 years agocal: use Sa/Su in all cases, also simplify the code
Sigrid [Tue, 12 Jan 2021 20:08:12 +0000 (21:08 +0100)]
cal: use Sa/Su in all cases, also simplify the code

3 years agocal: fix -s 7
Sigrid [Tue, 12 Jan 2021 12:32:38 +0000 (13:32 +0100)]
cal: fix -s 7

3 years agocal: add -s option to specify the starting day of the week
Sigrid [Tue, 12 Jan 2021 12:23:37 +0000 (13:23 +0100)]
cal: add -s option to specify the starting day of the week

3 years agoaudio/flacenc: missed an argument in fprintf()
Sigrid [Tue, 12 Jan 2021 10:15:18 +0000 (11:15 +0100)]
audio/flacenc: missed an argument in fprintf()

3 years agoplumb/basic: handle tga, wav, au, mid and mus
Sigrid [Tue, 12 Jan 2021 09:13:00 +0000 (10:13 +0100)]
plumb/basic: handle tga, wav, au, mid and mus

3 years agoaudio(1): it is 2021 now
Sigrid [Tue, 12 Jan 2021 08:24:10 +0000 (09:24 +0100)]
audio(1): it is 2021 now

3 years agolibFLAC/mkfile: update version and build with -DNDEBUG
Sigrid [Mon, 11 Jan 2021 15:58:04 +0000 (16:58 +0100)]
libFLAC/mkfile: update version and build with -DNDEBUG

3 years agolibvorbis: fix free() called on a wrong pointer
Sigrid [Mon, 11 Jan 2021 15:17:48 +0000 (16:17 +0100)]
libvorbis: fix free() called on a wrong pointer

3 years agoaudio/flacenc
Sigrid [Mon, 11 Jan 2021 14:45:12 +0000 (15:45 +0100)]
audio/flacenc

3 years agomerge
cinap_lenrek [Sun, 10 Jan 2021 19:46:07 +0000 (20:46 +0100)]
merge

3 years agopc, pc64: revert addition of pcireset() call to pcicfginit()
cinap_lenrek [Sun, 10 Jan 2021 19:44:58 +0000 (20:44 +0100)]
pc, pc64: revert addition of pcireset() call to pcicfginit()

Revert the change, as it causes system lockups on bootup
on some systems with USB OHCI controllers, suspected to be
caused by BIOS/SMM accessing the device as BIOS handover
has not been executed yet.

We might bring that back when the problem has is better
understood.

3 years agolibdraw: add bezierpts
Ori Bernstein [Sat, 9 Jan 2021 20:20:49 +0000 (12:20 -0800)]
libdraw: add bezierpts

This patch exposes the bezierpts function,
providing a way to get the points on a path,
similar how bezsplinepts gives them for b
splines.

3 years ago9pfid(2): document struct Qid (thanks sirjofri)
Ori Bernstein [Wed, 6 Jan 2021 18:07:10 +0000 (10:07 -0800)]
9pfid(2): document struct Qid (thanks sirjofri)

The Qid struct is pervasive when writing 9p servers,
but is not described in the manpages. This adds a
definition to the 9pfid manpage.

3 years agomerge
Ori Bernstein [Wed, 6 Jan 2021 03:48:26 +0000 (19:48 -0800)]
merge

3 years agoacid: increase hash size (thanks jonas.amoson)
Ori Bernstein [Wed, 6 Jan 2021 03:37:26 +0000 (19:37 -0800)]
acid: increase hash size (thanks jonas.amoson)

when loading large binaries such as netsurf, with many
symbols, our hash table fills up with collisions and
loading the symbol table gets very slow. Bumping it up
drops the time to lstk() in acid on netsurf from 4 minutes
to 8 seconds.

3 years agoqr: fix exit status
Alex Musolino [Tue, 5 Jan 2021 12:06:03 +0000 (22:36 +1030)]
qr: fix exit status

Call exits(0) instead of returning from main.  Also call sysfatal if
writing of image data fails.  Previously, qr(1) would exit with
default non-nil status "main" unconditionally as a result of returning
from main.

3 years agomarshal(1): fix example: upas/mail -> mail (thanks fulton)
cinap_lenrek [Sun, 3 Jan 2021 23:24:39 +0000 (00:24 +0100)]
marshal(1): fix example: upas/mail -> mail (thanks fulton)

3 years agoape: unify math.h copies
Ori Bernstein [Sat, 2 Jan 2021 05:40:00 +0000 (21:40 -0800)]
ape: unify math.h copies

/$objtype/include/ape/math.h contained an almost
identical copy of math.h for each architecture.

The only difference between them architectures
was that some had an incorrect version of isinf
defined.

This change picks one of the versions of math.h
with a correct definition, moves it to /sys/include,
and removes the redundant versions.

3 years agoape: add missing isnan() and isinf() macros for 386 (thanks Jonas)
cinap_lenrek [Sat, 2 Jan 2021 04:47:31 +0000 (05:47 +0100)]
ape: add missing isnan() and isinf() macros for 386 (thanks Jonas)

3 years agofile: ftyp mp4* is video/mp4 as well
Sigrid [Fri, 1 Jan 2021 21:58:05 +0000 (22:58 +0100)]
file: ftyp mp4* is video/mp4 as well

3 years agosort: fix memory leak (thanks Igor Boehm)
Ori Bernstein [Fri, 1 Jan 2021 19:48:39 +0000 (11:48 -0800)]
sort: fix memory leak (thanks Igor Boehm)

Free the last line that we examine when looping
through the lines in a file.

3 years agocc: add a couple notes to the comments regarding flags
BurnZeZ [Tue, 29 Dec 2020 19:38:59 +0000 (19:38 +0000)]
cc: add a couple notes to the comments regarding flags

3 years agolibc/arm: open #c/sysstat file with OCEXEC (internal file descriptor)
cinap_lenrek [Tue, 29 Dec 2020 18:08:08 +0000 (19:08 +0100)]
libc/arm: open #c/sysstat file with OCEXEC (internal file descriptor)

3 years agoplumber: open rule files as OCEXEC, to avoid leaking them to sub commands
cinap_lenrek [Tue, 29 Dec 2020 17:45:42 +0000 (18:45 +0100)]
plumber: open rule files as OCEXEC, to avoid leaking them to sub commands

3 years agotext2post: check font index for out of range
Sigrid [Mon, 28 Dec 2020 20:21:22 +0000 (21:21 +0100)]
text2post: check font index for out of range

3 years agoplumber: don't leak srvfd file descriptor into sub processes
cinap_lenrek [Mon, 28 Dec 2020 20:00:15 +0000 (21:00 +0100)]
plumber: don't leak srvfd file descriptor into sub processes

Put OCEXEC flag on the srvfd so it wont be leaked
on sub-processes we spawn from plumb rules.

3 years agoplumb: fix wrong click attribute offset (thanks umbraticus)
Sigrid [Mon, 28 Dec 2020 11:24:47 +0000 (12:24 +0100)]
plumb: fix wrong click attribute offset (thanks umbraticus)

3 years agokbmap: avoid division by zero when window becomes too small
cinap_lenrek [Sun, 27 Dec 2020 22:39:28 +0000 (23:39 +0100)]
kbmap: avoid division by zero when window becomes too small

3 years agoaux/vga: remove panning, add screen tilting support
cinap_lenrek [Sun, 27 Dec 2020 22:10:39 +0000 (23:10 +0100)]
aux/vga: remove panning, add screen tilting support

3 years agodevvga: implement screen tilting, remove panning and overlays
cinap_lenrek [Sun, 27 Dec 2020 22:08:59 +0000 (23:08 +0100)]
devvga: implement screen tilting, remove panning and overlays

Tilting allows using left/right rotated or invetrted display orientation.
This can be changed at runtime such as: echo tilt right > /dev/vgactl
This removes the old panning and vga overlays as they are only implemented
with some ancient vga controllers.

3 years agolibauth: re-implement procsetuser() to use /proc instead of #c/user
cinap_lenrek [Wed, 23 Dec 2020 12:10:30 +0000 (13:10 +0100)]
libauth: re-implement procsetuser() to use /proc instead of #c/user

3 years agodevproc: allow anyone to change user of its own processes to "none"
cinap_lenrek [Wed, 23 Dec 2020 12:09:31 +0000 (13:09 +0100)]
devproc: allow anyone to change user of its own processes to "none"

3 years agolibvorbis: 1.3.5 → 1.3.7 (fixes a bunch of CVE and other small issues)
Sigrid [Wed, 23 Dec 2020 11:18:07 +0000 (12:18 +0100)]
libvorbis: 1.3.5 → 1.3.7 (fixes a bunch of CVE and other small issues)

3 years agoape: re-implement getlogin() by stating /proc/$pid/status
cinap_lenrek [Wed, 23 Dec 2020 01:32:13 +0000 (02:32 +0100)]
ape: re-implement getlogin() by stating /proc/$pid/status

3 years agolibc: re-implement getuser() by stating /proc/$pid/status
cinap_lenrek [Wed, 23 Dec 2020 01:31:28 +0000 (02:31 +0100)]
libc: re-implement getuser() by stating /proc/$pid/status

The idea is to avoid the magic files that contain
per process information in devcons when possible.
It will make it easier to deprecate them in the future.

3 years agofax, psfax, vwhois: use $user instead of /dev/user
cinap_lenrek [Wed, 23 Dec 2020 00:44:44 +0000 (01:44 +0100)]
fax, psfax, vwhois: use $user instead of /dev/user

3 years agoB: dont pollute the environment
cinap_lenrek [Wed, 23 Dec 2020 00:44:10 +0000 (01:44 +0100)]
B: dont pollute the environment

3 years agokill, slay, broke: dont pollute environment, use $user
cinap_lenrek [Wed, 23 Dec 2020 00:43:29 +0000 (01:43 +0100)]
kill, slay, broke: dont pollute environment, use $user

3 years agoKill: don't pollute environment
cinap_lenrek [Wed, 23 Dec 2020 00:42:52 +0000 (01:42 +0100)]
Kill: don't pollute environment

3 years agostart, stop: avoid null list in concatenation witout arguments, use $user
cinap_lenrek [Wed, 23 Dec 2020 00:41:52 +0000 (01:41 +0100)]
start, stop: avoid null list in concatenation witout arguments, use $user

3 years agonusbrc: delect lenovo camera
cinap_lenrek [Wed, 23 Dec 2020 00:23:09 +0000 (01:23 +0100)]
nusbrc: delect lenovo camera

3 years agokw: use ethermii.c from port/ (thanks stuart)
cinap_lenrek [Tue, 22 Dec 2020 21:17:44 +0000 (22:17 +0100)]
kw: use ethermii.c from port/ (thanks stuart)

3 years agoaout2uimage: fix missing \n in usage print (thanks james)
cinap_lenrek [Tue, 22 Dec 2020 18:33:49 +0000 (19:33 +0100)]
aout2uimage: fix missing \n in usage print (thanks james)

3 years agoupasfs(4): fix small typos (thanks igor)
cinap_lenrek [Tue, 22 Dec 2020 16:44:26 +0000 (17:44 +0100)]
upasfs(4): fix small typos (thanks igor)

3 years agokbdfs: fix mistake, remove leftover static user variable (thanks umbraticus and igor)
cinap_lenrek [Tue, 22 Dec 2020 15:36:45 +0000 (16:36 +0100)]
kbdfs: fix mistake, remove leftover static user variable (thanks umbraticus and igor)

3 years agokernel: avoid palloc lock during mmurelease()
cinap_lenrek [Tue, 22 Dec 2020 15:29:55 +0000 (16:29 +0100)]
kernel: avoid palloc lock during mmurelease()

Previously, mmurelease() was always called with
palloc spinlock held.

This is unneccesary for some mmurelease()
implementations as they wont release pages
to the palloc pool.

This change removes pagechainhead() and
pagechaindone() and replaces them with just
freepages() call, which aquires the palloc
lock internally as needed.

freepages() avoids holding the palloc lock
while walking the linked list of pages,
avoding some lock contention.

3 years agomerge
cinap_lenrek [Mon, 21 Dec 2020 23:47:53 +0000 (00:47 +0100)]
merge

3 years agorio(4): list window states in order (thanks umbracticus)
Alex Musolino [Mon, 21 Dec 2020 23:41:03 +0000 (10:11 +1030)]
rio(4): list window states in order (thanks umbracticus)

3 years agokernel: make addbroken() static, remove misleading Proc* argument
cinap_lenrek [Mon, 21 Dec 2020 21:03:46 +0000 (22:03 +0100)]
kernel: make addbroken() static, remove misleading Proc* argument

3 years agomerge
cinap_lenrek [Mon, 21 Dec 2020 14:06:04 +0000 (15:06 +0100)]
merge

3 years agopc, xen: move fpu setup/fork/save/restore handlers to pc/fpu.c
cinap_lenrek [Mon, 21 Dec 2020 14:04:48 +0000 (15:04 +0100)]
pc, xen: move fpu setup/fork/save/restore handlers to pc/fpu.c

3 years agohpost: fix usage text
Alex Musolino [Mon, 21 Dec 2020 13:46:26 +0000 (00:16 +1030)]
hpost: fix usage text

3 years agokernel: update procsave() comment, we'r not holding up->rlock anymore
cinap_lenrek [Mon, 21 Dec 2020 13:41:10 +0000 (14:41 +0100)]
kernel: update procsave() comment, we'r not holding up->rlock anymore

3 years agondb/dns: handle dnskey RR's (thanks moody)
cinap_lenrek [Sun, 20 Dec 2020 22:08:11 +0000 (23:08 +0100)]
ndb/dns: handle dnskey RR's (thanks moody)

On 12/18/20, Jacob Moody wrote:
> Hello,
>
> I recently ran in to some issues with pointing an unbound server towards a
> 9front dns server as its upstream.
> The parsing seemed to fail when ndb/dns received a DNSKEY RR from it's own
> upstream source on behalf of unbound.
> This patch catches and stores the DNSKEY from the upstream server to prevent
> this.

3 years agokernel: handle tos and per process pcycle counters in port/
cinap_lenrek [Sun, 20 Dec 2020 21:34:41 +0000 (22:34 +0100)]
kernel: handle tos and per process pcycle counters in port/

we might as well handle the per process cycle
counter in the portable part instead of duplicating the code
in every arch and have inconsistent implementations.

we now have a portable kenter() and kexit() function,
that is ment to be used in trap/syscall from user,
which updates the counters.

some kernels missed initializing Mach.cyclefreq.

3 years ago[12kq]l: remove unix compat code for cputime()
cinap_lenrek [Sat, 19 Dec 2020 18:15:02 +0000 (19:15 +0100)]
[12kq]l: remove unix compat code for cputime()

3 years agolibthread: remove unused _times() function
cinap_lenrek [Sat, 19 Dec 2020 17:47:17 +0000 (18:47 +0100)]
libthread: remove unused _times() function

3 years agokernel: remove Proc* argument from procsetuser() function
cinap_lenrek [Sat, 19 Dec 2020 17:07:12 +0000 (18:07 +0100)]
kernel: remove Proc* argument from procsetuser() function

3 years agolibauth: change programs to use the new procsetuser() function
cinap_lenrek [Sat, 19 Dec 2020 17:02:37 +0000 (18:02 +0100)]
libauth: change programs to use the new procsetuser() function

3 years agolibauth: add procsetuser() function to change user id of the calling process
cinap_lenrek [Sat, 19 Dec 2020 16:46:55 +0000 (17:46 +0100)]
libauth: add procsetuser() function to change user id of the calling process

Provide a central function to change the user id
of the calling process.

This is mostly used by programs to become the none
user, followed by a call to newns().

3 years agoaux/kbdfs: use getuser() from libc
cinap_lenrek [Sat, 19 Dec 2020 14:52:41 +0000 (15:52 +0100)]
aux/kbdfs: use getuser() from libc

3 years agoacme: use global user string variable instead of getuser()
cinap_lenrek [Sat, 19 Dec 2020 14:50:30 +0000 (15:50 +0100)]
acme: use global user string variable instead of getuser()

3 years agoacme: use getuser() in fsinit()
cinap_lenrek [Sat, 19 Dec 2020 14:36:07 +0000 (15:36 +0100)]
acme: use getuser() in fsinit()

3 years agolibc: implement getppid() reading /proc/$pid/ppid instead of /dev/ppid
cinap_lenrek [Sat, 19 Dec 2020 14:15:38 +0000 (15:15 +0100)]
libc: implement getppid() reading /proc/$pid/ppid instead of /dev/ppid

The devcons driver is really the wrong place to
serve per process information.

3 years agodevsons: remove #c/pgrpid
cinap_lenrek [Sat, 19 Dec 2020 13:59:19 +0000 (14:59 +0100)]
devsons: remove #c/pgrpid

The process group id is essentially a unique id
of the namespace but it was never well documented
nor is it used by any program.

3 years agog: initialize files env var
Sigrid [Sat, 19 Dec 2020 12:33:11 +0000 (13:33 +0100)]
g: initialize files env var

3 years agovt: rfork environment varibles (thanks fshahriar)
Ori Bernstein [Sat, 19 Dec 2020 03:23:48 +0000 (19:23 -0800)]
vt: rfork environment varibles (thanks fshahriar)

vt sets several environment variables ($TERM, $COLS, $LINES)
after exiting. This change rforks the environment so that this
detritus doesn't get left behind.

3 years agostrndup: don't assume buffer is terminated
Ori Bernstein [Fri, 18 Dec 2020 15:16:29 +0000 (07:16 -0800)]
strndup: don't assume buffer is terminated

Using strlen in strndup will walk past the first
n bytes up to the terminator, which may not be
present. This is not what we want.

While we're here, do some cleanups.

3 years agokbmap: add Turkish keymap (thanks Kemal)
kvik [Fri, 18 Dec 2020 14:15:49 +0000 (15:15 +0100)]
kbmap: add Turkish keymap (thanks Kemal)

3 years agohpost: support custom headers (thanks julienxx)
Ori Bernstein [Fri, 18 Dec 2020 04:26:38 +0000 (20:26 -0800)]
hpost: support custom headers (thanks julienxx)

hget supports adding custom headers with -r;
it makes sense for hpost to do the same, both
because custom headers are more likely necessary
with POSTs, and for consistency.

3 years agolibap: add strndup
Ori Bernstein [Fri, 18 Dec 2020 03:20:04 +0000 (19:20 -0800)]
libap: add strndup

strndup is part of POSIX.1, so APE should provide it.
This patch adds it, so need to patch it out of fewer
programs going forward.

3 years agoether2114x: make sure pci bar0 is I/O
cinap_lenrek [Thu, 17 Dec 2020 20:02:11 +0000 (21:02 +0100)]
ether2114x: make sure pci bar0 is I/O

3 years agoether2114x: vetting the driver for pc64
cinap_lenrek [Thu, 17 Dec 2020 19:55:59 +0000 (20:55 +0100)]
ether2114x: vetting the driver for pc64

the tulip driver is used in microsofts hypver-v
as the legacy ethernet adapter for pxe booting.

to make the driver work on pc64, we need to
store the Block* pointers in a separate array
instead of stuffing them into buffer address 2
of the hardware descriptor.

also, enable the driver in the pc64 kernel.

3 years agopc: set exit status depending on errors
Sigrid [Tue, 15 Dec 2020 13:37:36 +0000 (14:37 +0100)]
pc: set exit status depending on errors

3 years agopc: treat EOF gracefully, allowing easier use within sam command language
Sigrid [Tue, 15 Dec 2020 13:25:59 +0000 (14:25 +0100)]
pc: treat EOF gracefully, allowing easier use within sam command language

3 years agomerge
Alex Musolino [Tue, 15 Dec 2020 10:25:41 +0000 (20:55 +1030)]
merge

3 years agoico: avoid potential nil pointer dereferences
Alex Musolino [Tue, 15 Dec 2020 10:15:26 +0000 (20:45 +1030)]
ico: avoid potential nil pointer dereferences

Bgeticon can fail, leaving the Icon img pointers nil.

3 years agoico: fix interpretation of 0 widths/heights
Alex Musolino [Tue, 15 Dec 2020 10:14:11 +0000 (20:44 +1030)]
ico: fix interpretation of 0 widths/heights

3 years agoiostats: dup 9p pipe to both fd 0 and fd 1 for exportfs
cinap_lenrek [Sun, 13 Dec 2020 19:23:03 +0000 (20:23 +0100)]
iostats: dup 9p pipe to both fd 0 and fd 1 for exportfs

3 years agocpu(1): refer to oexportfs(4)
cinap_lenrek [Sun, 13 Dec 2020 19:11:44 +0000 (20:11 +0100)]
cpu(1): refer to oexportfs(4)

3 years agoimport(4): refer to oexportfs(4)
cinap_lenrek [Sun, 13 Dec 2020 19:11:30 +0000 (20:11 +0100)]
import(4): refer to oexportfs(4)

3 years agooexportfs: move legacy code for cpu and import to separate program
cinap_lenrek [Sun, 13 Dec 2020 19:09:03 +0000 (20:09 +0100)]
oexportfs: move legacy code for cpu and import to separate program

The initial protocol handling in exportfs for
cpu and import services is a huge mess.

Saparate the code out into its own program with
its own oexportfs(4) manpage.

3 years agokernel: implement per file descriptor OCEXEC flag, reject ORCLOSE when opening /fd...
cinap_lenrek [Sun, 13 Dec 2020 15:04:09 +0000 (16:04 +0100)]
kernel: implement per file descriptor OCEXEC flag, reject ORCLOSE when opening /fd, /srv and /shr

The OCEXEC flag used to be maintained per channel,
making it shared between all the file desciptors.

This has a unexpected side effects with regard to
channel passing drivers such as devdup (/fd),
devsrv (/srv) and devshr (/shr).

For example, opening a /srv file with OCEXEC
makes it impossible to be remounted by exportfs
as it internally does a exec() to mount and
re-export it. There is no way to reset the flag.

This change makes the OCEXEC flag per file descriptor,
so a open with the OCEXEC flag only affects the fd
group of the calling process, and not the channel
itself.

On rfork(RFFDG), the per file descriptor flags get
copied.

On dup(), the per file descriptor flags are reset.

The second modification is that /fd, /srv and /shr
should reject the ORCLOSE flag, as the files that
are returned have already been opend.

3 years agosdiahci: assume 64-bit PCIWADDR()
cinap_lenrek [Sat, 12 Dec 2020 17:16:06 +0000 (18:16 +0100)]
sdiahci: assume 64-bit PCIWADDR()

3 years agosdiahci: enable pci busmaster before ahciconfigdrive() (fix qemu crash)
cinap_lenrek [Sat, 12 Dec 2020 17:00:41 +0000 (18:00 +0100)]
sdiahci: enable pci busmaster before ahciconfigdrive() (fix qemu crash)

enable pci busmaster before set the fis-receive-enable
bit in the port command register.

not doing so triggers a crash in qemu like:

address_space_unmap: Assertion `mr != NULL' failed.

as qemu tries to process the dma command list as soon
as we set that flag and busmaster dma needs to be enabled
at this point.

3 years agomerge
cinap_lenrek [Fri, 11 Dec 2020 14:24:35 +0000 (15:24 +0100)]
merge

3 years agopc, pc64: make sure write combining is supported in MTRR's before setting it
cinap_lenrek [Fri, 11 Dec 2020 14:23:03 +0000 (15:23 +0100)]
pc, pc64: make sure write combining is supported in MTRR's before setting it

3 years agopc, pc64: ignore MTRR's when MTRRCap.vcnt and MTRRCap.fix are zero
cinap_lenrek [Fri, 11 Dec 2020 14:21:44 +0000 (15:21 +0100)]
pc, pc64: ignore MTRR's when MTRRCap.vcnt and MTRRCap.fix are zero

Bhyve returns 0 in MTRRCap register, so we
can use that instead on relying on cpuid only
to see if MTRR's are supported.

That way we can get rid of the sanity check
in memory.c.

3 years agoupdate Finnish kbmap: fix ¤ on shift+4 and add more AltGr variants
Sigrid [Fri, 11 Dec 2020 14:18:41 +0000 (15:18 +0100)]
update Finnish kbmap: fix ¤ on shift+4 and add more AltGr variants

3 years agovmx: clean up mksegment, memset only if segment existed (devsegment clears new ones)
Sigrid [Thu, 10 Dec 2020 11:19:45 +0000 (12:19 +0100)]
vmx: clean up mksegment, memset only if segment existed (devsegment clears new ones)

3 years agosrc: work on awk scripts too, see "src valley" (thanks phil9)
Sigrid [Thu, 10 Dec 2020 09:33:42 +0000 (10:33 +0100)]
src: work on awk scripts too, see "src valley" (thanks phil9)

3 years agopc, pc64: work around bhyve all uncached MTRR's
cinap_lenrek [Thu, 10 Dec 2020 00:47:19 +0000 (01:47 +0100)]
pc, pc64: work around bhyve all uncached MTRR's

3 years agomerge
cinap_lenrek [Wed, 9 Dec 2020 00:05:14 +0000 (01:05 +0100)]
merge