Age | Commit message (Collapse) | Author |
|
If there is a file that is found, we want to return the result before we
return from the function, fixes issue with uninitialized vnodes on
lookups
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
If we go through the entire function without getting a vnode, then there
is no file to be found
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Introduces a read callback wrapper implementation for vnodes to simplify
file reading
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Everytime a look up is performed, we should set the vnode operations on
the resulting vnode
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
The 'lsdisk' utility is a simple too to list the disks present on the
machine.
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Add a new QUERY operation code that is used to fetch information about a
specific disk.
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
The DMS engine handles performing I/O based on specific opcodes given to
it and drives the callback wrappers.
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
In order to safely copy between disk and host memory through a
programming interface, DMS must be aware of the hardware disk block size
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
DMS stands for Disk Management and Supervision, drivers can register
themselves to DMS so that they can be looked up and operated on.
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Move to the buffer given to us if there it is a read, move from the
buffer given to us if it is a write
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Introduces reading and writing of SATA drives via a bufargs structure to
describe the buffer as well as its attributes
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
This commit introduces a libc initialization function @ __libc_init() a
long with variables __argv __argc used for command line arguments
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Fixes a crash with using this syscall
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Do not try to test the input against anything if there is no input to
test against.
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Implements command slot allocation, command submission and the ATA
identify command
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
No need to overcomplicate things for now, just use a simple vm_alloc_frame() for
DMA allocations
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
A lot of PCI(e) devices rely in MSI-X which pokes the Local APIC via
MMIO, we'll want the LAPIC up before PCI(e)
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
This allows us to see what kind of capabilities the device has (e.g.,
MSI/MSI-X)
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Introduces support for platform reset via the RST_CNT control register
on Intel chipsets that support it.
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Adds I8042_REBOOT config option for the AMD64 port as a workaround
against certain hardware that doesn't support the i8042 reset
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Add a function that reboots the system by attempting the softest method
and incrementally becoming forceful if previous methods fail
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|