Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add a (barely) working open function (no create yet)HEADmaster | H. Peter Anvin | 2013-03-22 | 3 | -6/+60 |
| | | | | Add a minimally functional open implementation | ||||
* | Common skeleton for the various open variants | H. Peter Anvin | 2013-03-22 | 4 | -28/+92 |
| | | | | | Create a common wrapper for all the open variants. Sadly we still need to turn them into "open" and "create" messages for 9P, sigh. | ||||
* | pathname: save/restore %si | H. Peter Anvin | 2013-03-21 | 1 | -0/+2 |
| | | | | It doesn't make too much sense to clobber %si... | ||||
* | readdir: add some debugging statements | H. Peter Anvin | 2013-03-21 | 1 | -0/+16 |
| | | | | For future work | ||||
* | Generalize pathname parsing functions | H. Peter Anvin | 2013-03-21 | 4 | -19/+74 |
| | | | | | For create and mkdir we will need to be able to split a path into directory name and file name. | ||||
* | Switch from CDS_DPBPTR to CDS_USERVAL | H. Peter Anvin | 2013-03-21 | 2 | -2/+12 |
| | | | | Might be safer, who knows... | ||||
* | Provide a working chdir function | H. Peter Anvin | 2013-03-21 | 4 | -5/+50 |
| | | | | We can now chdir to valid directories, but not invalid directories. | ||||
* | Restore the qualify function for testing | H. Peter Anvin | 2013-03-18 | 3 | -0/+26 |
| | | | | | There are some odd behaviors afoot, so being able to test with and without the qualify function might be a good idea. | ||||
* | start.asm: smsw for testing PM, not lmsw | H. Peter Anvin | 2013-03-18 | 1 | -1/+1 |
| | | | | | We want to use smsw for testing if we are in protected mode, not lmsw... | ||||
* | printmsg: be more flexible with segments for the debugging functions | H. Peter Anvin | 2013-03-17 | 1 | -23/+47 |
| | | | | | The debugging functions want minimal footprint, so make it possible to use with nonstandard segment configuration. | ||||
* | Check if we are in PM before poking around for VDS | H. Peter Anvin | 2013-03-17 | 1 | -0/+4 |
| | | | | | | | Virtual DMA Services (VDS) only make sense if we are in protected mode (typically V86 mode, of course); the lmsw instruction is an unprivileged way to query the bottom half of CR0, which includes the PE bit. | ||||
* | Cleaner way to handle the relocation code | H. Peter Anvin | 2013-03-17 | 2 | -12/+17 |
| | | | | | | | | Actually overlay the relocation code with the .rbss segment, even in VMA space. This means that the VMA addresses for labels in the .textearly segment are actually correct and we don't have to play any funny games, but also that the .textearly segment doesn't actually take up any space in memory. | ||||
* | Include a mask of non-permitted filename characters | H. Peter Anvin | 2013-03-17 | 1 | -5/+24 |
| | | | | | | Include a bitmask specifying filename disallowed bytes. We use this as the starting point for canonmap; we can clear bits but won't set them. | ||||
* | readdir: return volume label | H. Peter Anvin | 2013-03-17 | 1 | -0/+27 |
| | | | | When searching for a volume label, return the mount tag. | ||||
* | Move findfirst/findnext to a separate file | H. Peter Anvin | 2013-03-17 | 3 | -21/+52 |
| | | | | Move the directory access functions to a separate file | ||||
* | Move the diskspace function to a separate file | H. Peter Anvin | 2013-03-17 | 3 | -158/+193 |
| | |||||
* | Fix the corner cases in diskspc, it is now functional... | H. Peter Anvin | 2013-03-17 | 1 | -8/+12 |
| | |||||
* | Make the diskspace function work, at least for small filesystems | H. Peter Anvin | 2013-03-17 | 1 | -7/+46 |
| | | | | | | Now we can return the correct values for small filesystems. The larger filesystems may still be broken. Still unclear if it actually makes any sense to do this much work. | ||||
* | message.asm: on exit, point %di to payload | H. Peter Anvin | 2013-03-17 | 1 | -2/+18 |
| | |||||
* | Diskspace function which actually seems to work... | H. Peter Anvin | 2013-03-17 | 8 | -34/+100 |
| | | | | | | Diskspace function which actually seems to work well enough. Also delete the qualify function -- we don't seem to ever need it. | ||||
* | printmsg.asm: add support for 2-digit hex debug messages | H. Peter Anvin | 2013-03-17 | 1 | -6/+18 |
| | |||||
* | start.asm: Correct the sending of the mount tag | H. Peter Anvin | 2013-03-17 | 1 | -2/+2 |
| | | | | Send the correct mount tag instead of random garbage. | ||||
* | Add freespace function, and trivial error returns for findfirst/next | H. Peter Anvin | 2013-03-17 | 1 | -3/+101 |
| | | | | | | | | | | Add the freespace function. However, there are at least two problems here: 1. It is unclear if > 2 GiB can be accurately handled by DOS. If not, this function can be written much simpler. 2. For some reason, statfs doesn't seem to work at all, returning Rerror (not Rlerror even...) | ||||
* | start: Just put the volume label in a space-initialized buffer | H. Peter Anvin | 2013-03-09 | 1 | -7/+8 |
| | | | | The volume label buffer is so small we can just put it in .rdata | ||||
* | protomsg: fix typo | H. Peter Anvin | 2013-03-06 | 1 | -1/+1 |
| | |||||
* | int2f: fix dispatch | H. Peter Anvin | 2013-03-06 | 1 | -7/+26 |
| | | | | | We don't need to chain after final dispatch, add debug messages, fix limit check, correct dispatch table for disk size. | ||||
* | Fix CDS-based accept handling | H. Peter Anvin | 2013-03-06 | 2 | -4/+25 |
| | |||||
* | Add facility for printing debug messages | H. Peter Anvin | 2013-03-06 | 3 | -1/+155 |
| | | | | Add code to print messages on the Qemu debug console | ||||
* | Use procedure start/end macros | H. Peter Anvin | 2013-03-05 | 11 | -222/+115 |
| | | | | | Use procedure start/end macros instead of opencoding all the directives. | ||||
* | cp: Add missing UnicodeData and gensubset.pl files | H. Peter Anvin | 2013-03-04 | 2 | -0/+1009 |
| | | | | | UnicodeData is a subset of the Unicode Character Database. The subset is generated with gensubset.pl. | ||||
* | v9fs.h: use .asciz instead of .ascii + .byte 0 | H. Peter Anvin | 2013-03-04 | 1 | -4/+2 |
| | | | | | Use .asciz instead of the longer .ascii with a separate .byte directive. | ||||
* | Rename *.S to *.asm to support case-insensitive filesystems | H. Peter Anvin | 2013-03-04 | 12 | -4/+4 |
| | | | | | Allow building on case-insensitive filesystems by avoiding the *.S/*.s distinction. | ||||
* | Add -*- asm -*- tags for emacs' benefit | H. Peter Anvin | 2013-03-04 | 12 | -12/+12 |
| | | | | | Mark the files as assembly, to keep emacs from jumping into the wrong mode. | ||||
* | start: save mount tag in codepage to use as volume label | H. Peter Anvin | 2013-03-04 | 1 | -2/+16 |
| | | | | | Save the first 11 bytes of the volume label in codepage format to use as volume label. | ||||
* | Split out yet another set of fields in the SDA | H. Peter Anvin | 2013-03-02 | 3 | -11/+26 |
| | | | | Yet another set of version-dependent fields we need in the SDA. | ||||
* | Minor cleanups | H. Peter Anvin | 2013-03-02 | 2 | -5/+8 |
| | | | | Change the assembly code to be a bit easier to read, hopefully | ||||
* | Change to using symbolic offsets into DOS data structures | H. Peter Anvin | 2013-03-02 | 3 | -11/+11 |
| | |||||
* | v9fs: add symbolic names for various DOS field offsets | H. Peter Anvin | 2013-03-02 | 1 | -0/+46 |
| | |||||
* | Add MIT license headers | H. Peter Anvin | 2013-03-02 | 13 | -1/+350 |
| | |||||
* | Code to generate a walk message; errno constants | H. Peter Anvin | 2013-02-26 | 4 | -1/+235 |
| | | | | | | | Code to convert pathnames and to actually generate a walk message. The Rlerror message contains Linux errno constants, include them as macros. | ||||
* | utf.S: source is fs:si | H. Peter Anvin | 2013-02-26 | 1 | -4/+4 |
| | |||||
* | start: set the filename offset in CDS | H. Peter Anvin | 2013-02-25 | 1 | -0/+1 |
| | |||||
* | utf.S: use the DOS filename upper case table correctly | H. Peter Anvin | 2013-02-25 | 1 | -1/+7 |
| | |||||
* | start.S: add a bunch of missing labels | H. Peter Anvin | 2013-02-25 | 1 | -5/+11 |
| | |||||
* | utf: proper conversions to and from Unicode, including case | H. Peter Anvin | 2013-02-25 | 1 | -1/+81 |
| | | | | | Convert to and from Unicode, including keeping track of if a character is canonical. | ||||
* | checkpoint: cp-to-utf conversion now includes case conversion | H. Peter Anvin | 2013-02-25 | 3 | -41/+236 |
| | |||||
* | datetime: fix register names to silence gas warning | H. Peter Anvin | 2013-02-25 | 1 | -2/+2 |
| | |||||
* | datetime: shave a few more bytes by using the AAM instruction | H. Peter Anvin | 2013-02-25 | 1 | -5/+5 |
| | | | | | AAM is 8/8->8 unsigned division with an immediate divisor; specifically it is AL/imm8 -> AH with the remainder in AL. | ||||
* | Rename acc_other to acc_cds | H. Peter Anvin | 2013-02-24 | 2 | -17/+17 |
| | | | | | Reflect that we are using the Current Directory Structure to determine if we should accept the call. | ||||
* | acc.S: complete the accept test functions | H. Peter Anvin | 2013-02-24 | 2 | -9/+54 |
| | | | | | Complete the various accept test functions, except that we do not yet test for character devices in acc_other. |