summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
17 hourskern: ahci: Use the stack for ports before copyIan Moffett
When attempting to initialize ports, have the caller use a stack variable for the port descriptor to not stress the heap. If the port is valid, ahci_init_port() will make a heap copy. Signed-off-by: Ian Moffett <ian@osmora.org>
20 hourskern: Implement skeleton for POSIX socketsIan Moffett
- Adds POSIX socket() - Adds POSIX listen() - Adds vnode socket type - Adds tmpfs socket awareness Much work is to be done but this commit provides a solid skeleton to be built upon. Signed-off-by: Ian Moffett <ian@osmora.org>
20 hourskern: filedesc: Expose fd allocation APIIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
22 hourskern: vfs: Add vtype param to vop_create()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
22 hourskern: tmpfs: Make tmpfs create() vtype awareHEADmasterIan Moffett
This commit makes the creation callback for tmpfs aware of the vnode vtypes, only supporting a select few. Signed-off-by: Ian Moffett <ian@osmora.org>
22 hourskern: vfs: Add 'vtype' spec to vop_create_argsIan Moffett
This commit adds a vtype field to the file creation arguments to allow the underlying vnode type to be specified. Signed-off-by: Ian Moffett <ian@osmora.org>
22 hourscmd: init: Attempt to mount tmpfs to /tmpIan Moffett
During startup, it is up to the init system to mount the filesystems. This commit mounts the tmpfs filesystem to /tmp on startup Signed-off-by: Ian Moffett <ian@osmora.org>
25 hourskern: cons: Add horizontal tab renderingIan Moffett
Implements support for the tab ('\t') characters Signed-off-by: Ian Moffett <ian@osmora.org>
41 hourslibc: unistd: Add lseek system call interfaceIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
41 hourskern: Add SYS_lseek system callIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
41 hourskern: filedesc: Implement lseek() functionIan Moffett
The lseek() function allows the call to resposition the file offset using a specific whence value to govern offsetting semantics Signed-off-by: Ian Moffett <ian@osmora.org>
41 hourskern: tmpfs: Implement getattr vop for tmpfsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
41 hourskern: vfs: Add vop_getattr() for vnodesIan Moffett
The vop_getattr() allows the caller to obtain information about a file represented by a specific vnode Signed-off-by: Ian Moffett <ian@osmora.org>
45 hourskern: tmpfs: Use real length for EOF trackingIan Moffett
Use the actual amount of bytes inside the tmpfs entry for the length tracking. Signed-off-by: Ian Moffett <ian@osmora.org>
45 hourskern: tmpfs: Add tmpfs read callbackIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
45 hourskern: tmpfs: Add tmpfs write callbackIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
45 hourskern: Add kernel realloc() functionIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
46 hourskern: fs: Add initial tmpfs implementationIan Moffett
Supported VOPs as of now: - lookup() - create() - reclaim() Signed-off-by: Ian Moffett <ian@osmora.org>
46 hourskern: devfs: Fix typo in VFS ops structureIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
46 hourskern: filedesc: Add O_CREAT flag for fd_open()Ian Moffett
Add an O_CREAT flag to the ABI headers so that files can be created in the VFS. Signed-off-by: Ian Moffett <ian@osmora.org>
46 hourskern: vfs: Return vnode upon path parsing endIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
47 hourskern: vfs: Implement non image-fs namei lookupsIan Moffett
This commit adds supports for full lookups and path traversal when FS_ATTR_IMAGE is unset. We've also added a NAMEI_CREATE flag to create as it traverses. Signed-off-by: Ian Moffett <ian@osmora.org>
2 dayskern: vfs: Add 'create' virtual file operationIan Moffett
The create VOP allows the caller to create a node within the parent directory of a filesystem represented by a vnode. Signed-off-by: Ian Moffett <ian@osmora.org>
3 dayscmd: Add mex portIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
3 dayscmd: build: Drop libwidget from buildsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
3 dayscmd: Add 'cat' commandIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayscmd: Add new 'echo' commandIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayslibc: string: Add strtok() functionIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayscmd: hush: Add argument parsingIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskern/amd64: trap: Copy trapframe on syscall entryIan Moffett
Ensure that the trapframe in the PCB is the latest, upon kernel entry we copy it so it isn't stale. Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskern: proc: Fix commentIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayscmd: init: Bring up login program on startupIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskern/amd64: mp: Add idle threads per coreIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskern/amd64: i8042: Add option to poll keyboardIan Moffett
Some hardware may not work too well with the i8042 and interrupts, as a mitigation, we've added an option to poll instead of using interrupts Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskern/amd64: proc: Don't dequeue procs in idle loopIan Moffett
There is no need to dequeue any processes in the idle loop as this happens once per timer interrupt Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskern: init: Initialize scheduler before modulesIan Moffett
Some modules may rely on kernel threads, therefore we'll need the scheduler up before we start them Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskern/amd64: proc: md_proc_yield -> md_proc_idleIan Moffett
Improve naming to be less confusing Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskern/amd64: Introduce kernel threadsIan Moffett
Introduces kernel threads. by using the proc_ktd() function, one can spawn a CPL 0 running thread to the desired code. Signed-off-by: Ian Moffett <ian@osmora.org>
4 daysbuild: Move 'login' to system binariesIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayscmd: Add initial 'login' programIan Moffett
This commit introduces the initial login program to require a user to enter their credentials before they can use the system Signed-off-by: Ian Moffett <ian@osmora.org>
4 daysdata: Add initial user credsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayslibc: stdio: Add puts() functionIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayslibc: string: Add memcmp() functionIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayslibc: unistd: Add close system call interfaceIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskern: filedesc: Add close() system callIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskern: vfs: Add reclaim callback to vnodeIan Moffett
The reclaim callback simply reclaims any filesystem specific resources used with vnodes back to the operating system. Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskern: omar: Make OMAR reads offset awareIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskern: vfs: Make vnode r/w operations offset awareIan Moffett
Adds offset handling to the vnode read and write callbacks. Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayslibc: unistd: Add read system call interfaceIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskern: Add SYS_read system call for file I/OIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>