]> git.lizzy.rs Git - plan9front.git/log
plan9front.git
7 years agovmx(1): add support for (so far) crude 9p debugging fs; add gdb stub; clean up linux...
aiju [Wed, 21 Jun 2017 22:18:26 +0000 (22:18 +0000)]
vmx(1): add support for (so far) crude 9p debugging fs; add gdb stub; clean up linux gdt code

7 years agodevvmx: error handling in clearmeminfo
aiju [Wed, 21 Jun 2017 09:59:32 +0000 (09:59 +0000)]
devvmx: error handling in clearmeminfo

7 years agodevvmx: remember segment names and free segments properly
aiju [Wed, 21 Jun 2017 09:16:43 +0000 (09:16 +0000)]
devvmx: remember segment names and free segments properly

7 years agosegment(3): document sticky segment type
cinap_lenrek [Tue, 20 Jun 2017 20:28:30 +0000 (22:28 +0200)]
segment(3): document sticky segment type

7 years agokernel: add support for sticky segments (cached, preallocated, never paged)
cinap_lenrek [Tue, 20 Jun 2017 19:53:45 +0000 (21:53 +0200)]
kernel: add support for sticky segments (cached, preallocated, never paged)

7 years agovmx(1): obsdfb: check if curmode is nil
aiju [Tue, 20 Jun 2017 18:21:47 +0000 (18:21 +0000)]
vmx(1): obsdfb: check if curmode is nil

7 years agovmx(1): round up frame buffer size to whole pages, ignore vga access in linear frameb...
aiju [Tue, 20 Jun 2017 18:20:25 +0000 (18:20 +0000)]
vmx(1): round up frame buffer size to whole pages, ignore vga access in linear framebuffer, tell openbsd about framebuffer

7 years agovmx(1): clean up region handling code; changes to support amd64
aiju [Tue, 20 Jun 2017 15:15:53 +0000 (15:15 +0000)]
vmx(1): clean up region handling code; changes to support amd64

7 years agopc, pc64: adapt devvmx to work on pc64
aiju [Tue, 20 Jun 2017 15:10:08 +0000 (15:10 +0000)]
pc, pc64: adapt devvmx to work on pc64

7 years agomerge
cinap_lenrek [Mon, 19 Jun 2017 18:58:44 +0000 (20:58 +0200)]
merge

7 years ago8l, 6l: get .frame offset right undoing $-4 hack
cinap_lenrek [Mon, 19 Jun 2017 18:56:47 +0000 (20:56 +0200)]
8l, 6l: get .frame offset right undoing $-4 hack

7 years agovmx(1), vmx(3): update manpages
aiju [Mon, 19 Jun 2017 18:41:34 +0000 (18:41 +0000)]
vmx(1), vmx(3): update manpages

7 years agoktrace(1): handle amd64 stacktraces correctly
aiju [Mon, 19 Jun 2017 17:22:41 +0000 (17:22 +0000)]
ktrace(1): handle amd64 stacktraces correctly

7 years agovmx(1): i8042: translation changes reported keyboard id
aiju [Mon, 19 Jun 2017 11:06:26 +0000 (11:06 +0000)]
vmx(1): i8042: translation changes reported keyboard id

7 years agovmx(1): linux kernel loading; PIT fixes to support linux; support VGA 0x3D4 word...
aiju [Sun, 18 Jun 2017 22:17:35 +0000 (22:17 +0000)]
vmx(1): linux kernel loading; PIT fixes to support linux; support VGA 0x3D4 word writes; support sending virtio ethernet packets to a file and prepending snoopy headers

7 years agodevvmx: fix CR0/CR4 readout; also don't exit on PAUSE instruction
aiju [Sun, 18 Jun 2017 22:13:20 +0000 (22:13 +0000)]
devvmx: fix CR0/CR4 readout; also don't exit on PAUSE instruction

7 years agoremove /sys/lib/##redacted##.##redacted## (thanks ##redacted##)
cinap_lenrek [Sun, 18 Jun 2017 20:28:45 +0000 (22:28 +0200)]
remove /sys/lib/##redacted##.##redacted## (thanks ##redacted##)

7 years agoauthsrv(6): don't say old p9any isnt in use anymore...
cinap_lenrek [Sun, 18 Jun 2017 20:21:46 +0000 (22:21 +0200)]
authsrv(6): don't say old p9any isnt in use anymore...

7 years agoauth/factotum: complete p9any v.2 server protocol, but don't enable it.
cinap_lenrek [Sun, 18 Jun 2017 19:59:16 +0000 (21:59 +0200)]
auth/factotum: complete p9any v.2 server protocol, but don't enable it.

7 years agoupas/fs: work in progress...
cinap_lenrek [Sun, 18 Jun 2017 16:52:54 +0000 (18:52 +0200)]
upas/fs: work in progress...

get plumbing logic out of mailbox drivers, all handled from
syncmbox() now. avoid reentrancy in syncmbox().

store attachment filename in index, so that we can return it
in mail info without fetching headers. (used to return blank
filename when read out of the index messing up attachments in
nedmail).

maintain Message.size for attachments.

get rid of string "refs" and just have a simple string intern
table (only used for Message.type and Message.charset).

Message.replyto and Message.filename are owned by the index,
so don't free in delmessage().

7 years agovmx(1): fix '-v text'
aiju [Sun, 18 Jun 2017 01:51:28 +0000 (01:51 +0000)]
vmx(1): fix '-v text'

7 years agovmx(1): don't zero all memory, don't abandon uart on eof, sleep before transmitting...
aiju [Sat, 17 Jun 2017 23:30:23 +0000 (23:30 +0000)]
vmx(1): don't zero all memory, don't abandon uart on eof, sleep before transmitting uart data

7 years agovmx(1): fix non-vesa framebuffer mode
aiju [Sat, 17 Jun 2017 22:52:13 +0000 (22:52 +0000)]
vmx(1): fix non-vesa framebuffer mode

7 years agovmx(1): support debug instructions
aiju [Sat, 17 Jun 2017 22:50:03 +0000 (22:50 +0000)]
vmx(1): support debug instructions

7 years agodevvmx: support debug registers; simplify assembly
aiju [Sat, 17 Jun 2017 22:38:16 +0000 (22:38 +0000)]
devvmx: support debug registers; simplify assembly

7 years agovmx: VESA support and other misc I/O improvements
aiju [Sat, 17 Jun 2017 19:47:04 +0000 (19:47 +0000)]
vmx: VESA support and other misc I/O improvements

7 years agocorrect the greatest omission
aiju [Fri, 16 Jun 2017 08:07:25 +0000 (08:07 +0000)]
correct the greatest omission

7 years agovmx: complete cmos
aiju [Thu, 15 Jun 2017 15:59:02 +0000 (15:59 +0000)]
vmx: complete cmos

7 years agovmx: implement virtio reset
aiju [Thu, 15 Jun 2017 15:58:52 +0000 (15:58 +0000)]
vmx: implement virtio reset

7 years agovmx: obsd: load kernel symbol table and allow setting root device
aiju [Thu, 15 Jun 2017 15:58:25 +0000 (15:58 +0000)]
vmx: obsd: load kernel symbol table and allow setting root device

7 years agovmx: fix pic 'specific eoi' bug, fix kbd bug, add fake IDE and floppy controller
aiju [Thu, 15 Jun 2017 07:42:57 +0000 (07:42 +0000)]
vmx: fix pic 'specific eoi' bug, fix kbd bug, add fake IDE and floppy controller

7 years agovmx: openbsd support: parse more options
aiju [Thu, 15 Jun 2017 07:41:51 +0000 (07:41 +0000)]
vmx: openbsd support: parse more options

7 years agovmx: fix virtio bugs
aiju [Thu, 15 Jun 2017 07:41:26 +0000 (07:41 +0000)]
vmx: fix virtio bugs

7 years agovmx: remove debugging print
aiju [Wed, 14 Jun 2017 18:18:44 +0000 (18:18 +0000)]
vmx: remove debugging print

7 years agovmx: support EFER and PAT access
aiju [Wed, 14 Jun 2017 17:42:25 +0000 (17:42 +0000)]
vmx: support EFER and PAT access

7 years agovmx: slightly more vga support
aiju [Wed, 14 Jun 2017 17:41:51 +0000 (17:41 +0000)]
vmx: slightly more vga support

7 years agovmx: improve PIT/keyboard support
aiju [Wed, 14 Jun 2017 17:41:32 +0000 (17:41 +0000)]
vmx: improve PIT/keyboard support

7 years agovmx: support loading openbsd kernels
aiju [Wed, 14 Jun 2017 17:40:48 +0000 (17:40 +0000)]
vmx: support loading openbsd kernels

7 years agodevvmx: support pat and efer registers
aiju [Wed, 14 Jun 2017 17:38:01 +0000 (17:38 +0000)]
devvmx: support pat and efer registers

7 years agoadd vmx documentation
aiju [Tue, 13 Jun 2017 14:19:42 +0000 (14:19 +0000)]
add vmx documentation

7 years agoadd vmx(1)
aiju [Tue, 13 Jun 2017 14:18:14 +0000 (14:18 +0000)]
add vmx(1)

7 years agopc: add vmx device
aiju [Tue, 13 Jun 2017 14:15:09 +0000 (14:15 +0000)]
pc: add vmx device

7 years agopc/pc64: keep shadow copy of DR7 in Mach and use that to check whether we need to...
aiju [Tue, 13 Jun 2017 00:10:36 +0000 (00:10 +0000)]
pc/pc64: keep shadow copy of DR7 in Mach and use that to check whether we need to reset DR7 in procsave(); remove superfluous reset of DR7 in mmurelease()

7 years agoremove accidentally committed reference to devvmx
aiju [Mon, 12 Jun 2017 23:03:40 +0000 (23:03 +0000)]
remove accidentally committed reference to devvmx

7 years agopc/pc64: debugexc: ignore exception if in kernel mode and can't get hold of up->debug
aiju [Mon, 12 Jun 2017 22:58:25 +0000 (22:58 +0000)]
pc/pc64: debugexc: ignore exception if in kernel mode and can't get hold of up->debug

7 years agoacid(1), proc(3): document watchpoints
aiju [Mon, 12 Jun 2017 20:31:04 +0000 (20:31 +0000)]
acid(1), proc(3): document watchpoints

7 years agoxd: use new bio magic to make -u more efficient
aiju [Mon, 12 Jun 2017 19:56:57 +0000 (19:56 +0000)]
xd: use new bio magic to make -u more efficient

7 years agoadd aux/icanhasvmx
aiju [Mon, 12 Jun 2017 19:54:31 +0000 (19:54 +0000)]
add aux/icanhasvmx

7 years agopc/pc64: reset DR7 in mmurelease
aiju [Mon, 12 Jun 2017 19:46:25 +0000 (19:46 +0000)]
pc/pc64: reset DR7 in mmurelease

7 years agoaux/cpuid: decode family and model bitfields
aiju [Mon, 12 Jun 2017 19:36:52 +0000 (19:36 +0000)]
aux/cpuid: decode family and model bitfields

7 years agoacid: fix goofup
aiju [Mon, 12 Jun 2017 19:30:56 +0000 (19:30 +0000)]
acid: fix goofup

7 years agoacid: watchpoint support
aiju [Mon, 12 Jun 2017 19:29:20 +0000 (19:29 +0000)]
acid: watchpoint support

7 years agoacid: provide hooks 'procattach' and 'dying'
aiju [Mon, 12 Jun 2017 19:28:27 +0000 (19:28 +0000)]
acid: provide hooks 'procattach' and 'dying'

7 years agoacid: always create proclist variable
aiju [Mon, 12 Jun 2017 19:27:49 +0000 (19:27 +0000)]
acid: always create proclist variable

7 years agoacid: add getfields() builtin
aiju [Mon, 12 Jun 2017 19:24:32 +0000 (19:24 +0000)]
acid: add getfields() builtin

7 years agokernel: reset nwatchpt in pexit
aiju [Mon, 12 Jun 2017 19:19:05 +0000 (19:19 +0000)]
kernel: reset nwatchpt in pexit

7 years agokernel: add support for hardware watchpoints
aiju [Mon, 12 Jun 2017 19:03:07 +0000 (19:03 +0000)]
kernel: add support for hardware watchpoints

7 years agopc64: set error code and trap fields in Ureg* on syscalls
aiju [Mon, 12 Jun 2017 17:09:11 +0000 (17:09 +0000)]
pc64: set error code and trap fields in Ureg* on syscalls

7 years agoethervirtio: report correct length; fail gracefully if we can't initialize queues
aiju [Mon, 12 Jun 2017 11:25:12 +0000 (11:25 +0000)]
ethervirtio: report correct length; fail gracefully if we can't initialize queues

7 years ago6l: support MOV to/from DR[1-3]
aiju [Sun, 11 Jun 2017 22:29:33 +0000 (22:29 +0000)]
6l: support MOV to/from DR[1-3]

7 years ago8l: support MOV from/to DR[1-3]
aiju [Sun, 11 Jun 2017 22:09:57 +0000 (22:09 +0000)]
8l: support MOV from/to DR[1-3]

7 years agostats: get rid of the legacy import fallback
cinap_lenrek [Thu, 8 Jun 2017 07:08:59 +0000 (09:08 +0200)]
stats: get rid of the legacy import fallback

using legacy import is dangerious as it is unencrypted by default,
so a man in the middle can force the fallback to import protocol
and then take over the connection to the remote machine gaining
full access to is.

7 years agoupas: fix infinite loop in common/mkfile (thanks raiz)
cinap_lenrek [Wed, 7 Jun 2017 05:38:10 +0000 (07:38 +0200)]
upas: fix infinite loop in common/mkfile (thanks raiz)

7 years agomake python subprocess module work with ape/sh
cinap_lenrek [Mon, 5 Jun 2017 15:21:42 +0000 (17:21 +0200)]
make python subprocess module work with ape/sh

7 years agomerge
cinap_lenrek [Mon, 5 Jun 2017 14:32:15 +0000 (16:32 +0200)]
merge

7 years agoadd Asia_Bahrain timezone, change GMT to match the example in ctime(2) (thanks raiz)
cinap_lenrek [Mon, 5 Jun 2017 14:30:30 +0000 (16:30 +0200)]
add Asia_Bahrain timezone, change GMT to match the example in ctime(2) (thanks raiz)

7 years agonewt: pipe output of h comnmand through $pager
stanley lieber [Sun, 4 Jun 2017 22:02:05 +0000 (18:02 -0400)]
newt: pipe output of h comnmand through $pager

7 years agokernel: make statistics counters skipscheds and preempts unsigned
cinap_lenrek [Sat, 3 Jun 2017 16:59:48 +0000 (18:59 +0200)]
kernel: make statistics counters skipscheds and preempts unsigned

7 years agoawk: handle bad/incomplete input in maketab (thanks kenji arisawa)
cinap_lenrek [Fri, 2 Jun 2017 17:03:37 +0000 (19:03 +0200)]
awk: handle bad/incomplete input in maketab (thanks kenji arisawa)

7 years agoircrc: strip backspaces, preventing backspace spam (thanks doppler)
cinap_lenrek [Fri, 2 Jun 2017 15:10:52 +0000 (17:10 +0200)]
ircrc: strip backspaces, preventing backspace spam (thanks doppler)

7 years agokernel: don't preempt pager during fscache reclaim
cinap_lenrek [Fri, 2 Jun 2017 15:02:43 +0000 (17:02 +0200)]
kernel: don't preempt pager during fscache reclaim

the fscache image is the main source for pages once
the page freelist got exhausted, so delay scheduling
until they release the fscache lock.

7 years agoplan9.ini(8): document netconsole
aiju [Thu, 1 Jun 2017 07:07:55 +0000 (07:07 +0000)]
plan9.ini(8): document netconsole

7 years agopc: actually call netconsole()
aiju [Thu, 1 Jun 2017 06:40:05 +0000 (06:40 +0000)]
pc: actually call netconsole()

7 years agopc: add netconsole
aiju [Wed, 31 May 2017 23:41:21 +0000 (23:41 +0000)]
pc: add netconsole

7 years agomerge
cinap_lenrek [Tue, 30 May 2017 14:10:23 +0000 (16:10 +0200)]
merge

7 years agodevsegment: return proper write count for ctl message
cinap_lenrek [Tue, 30 May 2017 14:08:47 +0000 (16:08 +0200)]
devsegment: return proper write count for ctl message

7 years agonewt: add !cmd
stanley lieber [Sun, 28 May 2017 19:45:07 +0000 (15:45 -0400)]
newt: add !cmd

7 years agonewt: honor environment variables $editor and $pager
stanley lieber [Fri, 26 May 2017 15:15:35 +0000 (11:15 -0400)]
newt: honor environment variables $editor and $pager

7 years ago?a: getc() needs to increment lineno if it gets \n from peekc
aiju [Fri, 26 May 2017 00:01:53 +0000 (00:01 +0000)]
?a: getc() needs to increment lineno if it gets \n from peekc

7 years agolibmach: add INVEPT and INVVPID instructions
aiju [Wed, 24 May 2017 00:59:14 +0000 (00:59 +0000)]
libmach: add INVEPT and INVVPID instructions

7 years agovgadb: move nvidia controller entry after igfx and add haswell dids
qwx [Mon, 22 May 2017 16:33:14 +0000 (18:33 +0200)]
vgadb: move nvidia controller entry after igfx and add haswell dids

in hybrid graphics systems, this allows the integrated cards to be
detected first.

7 years agoigfx: add support for haswell graphics
qwx [Mon, 22 May 2017 16:19:24 +0000 (18:19 +0200)]
igfx: add support for haswell graphics

add support for edp, dp and hdmi on haswell and haswell ult.
vga, dvi and specific configurations like ulx are unimplemented.

remaining issue: edp link training always fails (time out).

7 years agoio(1): %llx -> %ullx
aiju [Mon, 22 May 2017 09:04:51 +0000 (09:04 +0000)]
io(1): %llx -> %ullx

7 years agolibmach: fix wrong offset bug (thanks cinap); add VMX instructions
aiju [Mon, 22 May 2017 00:40:18 +0000 (00:40 +0000)]
libmach: fix wrong offset bug (thanks cinap); add VMX instructions

7 years agokernel: avoid panic with segio and SG_FAULT segments
cinap_lenrek [Sun, 21 May 2017 14:36:11 +0000 (16:36 +0200)]
kernel: avoid panic with segio and SG_FAULT segments

the problem is that segio doesnt check segment attributes
and it can't really in case of SG_FAULT which can be
inherited from pseg and toggle at any time.

so instead of returning -1 from fault into the fault$cputype
handler which then panics when fault happend kernel mode,
we jump into segio's waserror() block just like in the
demand load i/o error case (faulterror()).

7 years agovt: don't flush while there is keyboard input available
cinap_lenrek [Sat, 20 May 2017 12:45:47 +0000 (14:45 +0200)]
vt: don't flush while there is keyboard input available

7 years ago/sys/lib/acid/port: make line() also print the line number
BurnZeZ [Thu, 11 May 2017 19:34:54 +0000 (19:34 +0000)]
/sys/lib/acid/port: make line() also print the line number

7 years ago/sys/doc: fix mkfile to and remove files that now can be regenerated
cinap_lenrek [Tue, 9 May 2017 14:23:48 +0000 (16:23 +0200)]
/sys/doc: fix mkfile to and remove files that now can be regenerated

7 years agotroff: charlib: fix right hand special character
cinap_lenrek [Tue, 9 May 2017 14:10:44 +0000 (16:10 +0200)]
troff: charlib: fix right hand special character

7 years agorio: implement writable and truncatable /dev/text
cinap_lenrek [Sun, 7 May 2017 17:05:12 +0000 (19:05 +0200)]
rio: implement writable and truncatable /dev/text

7 years agokernel: fix namelenerror(), avoid memrchr() and make it static
cinap_lenrek [Sun, 7 May 2017 16:13:37 +0000 (18:13 +0200)]
kernel: fix namelenerror(), avoid memrchr() and make it static

make sure the loop terminates and doesnt get stuck at
name == aname. avoid memrchr() as it conflicts with
libc on unix (drawterm). declare namelenerror() as
static.

7 years agoupdate ape/bio.h (thanks jpm)
aiju [Sat, 6 May 2017 14:33:52 +0000 (14:33 +0000)]
update ape/bio.h (thanks jpm)

7 years agodevproc: can't wait for ourselfs to stop (thanks Shamar)
cinap_lenrek [Fri, 5 May 2017 22:49:47 +0000 (00:49 +0200)]
devproc: can't wait for ourselfs to stop (thanks Shamar)

7 years agoaux/statusmsg: use libbio for textmode output
BurnZeZ [Fri, 5 May 2017 21:43:30 +0000 (21:43 +0000)]
aux/statusmsg: use libbio for textmode output

calling write(1, "\b", 1); for each rune to be removed is a lot of
overhead, and we don’t want rio to turn each of these writes into a
draw operation.

also, it now prints to stderr before exiting if initdraw() fails

7 years agossh: add -h flag to pass host (for compatibility)
cinap_lenrek [Fri, 5 May 2017 19:04:31 +0000 (21:04 +0200)]
ssh: add -h flag to pass host (for compatibility)

7 years agosed: add -u flag that flushes output buffers before reading in further input
aiju [Fri, 5 May 2017 08:22:13 +0000 (08:22 +0000)]
sed: add -u flag that flushes output buffers before reading in further input

7 years agobio(2): manpage typo
aiju [Thu, 4 May 2017 17:47:03 +0000 (17:47 +0000)]
bio(2): manpage typo

7 years agobio: add support for custom I/O handler via Biofn
aiju [Thu, 4 May 2017 17:42:12 +0000 (17:42 +0000)]
bio: add support for custom I/O handler via Biofn

7 years agossh(1): document -T tries option, #subsys cmd behaviour
cinap_lenrek [Wed, 3 May 2017 18:56:20 +0000 (20:56 +0200)]
ssh(1): document -T tries option, #subsys cmd behaviour

7 years agossh: quote cmd arguments with unix shell single quotes, request tty even with TERM...
cinap_lenrek [Wed, 3 May 2017 18:55:32 +0000 (20:55 +0200)]
ssh: quote cmd arguments with unix shell single quotes, request tty even with TERM=dumb