Age | Commit message (Collapse) | Author |
|
Introduce IEEE 802.3 related headers such as ones containing the
structure of an ethernet frame as well as its types. This commit
additionally introduces ARP request logic.
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 is no longer needed as the Hyra PMM now does this automatically by
default.
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
To prevent a situation where there is a data race between one thread
freeing physical memory and one allocating physical memory. Do not
immediately reuse freed physical memory. Instead, keep allocating
upwards and once there is no more room, wrap the last_idx back to the
bitmap free index. We now also zero allocated physical memory for
security reasons.
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
- Flush the entire output buffer
- Wipe the whole screen with "bg"
- The entire console will now be cleared when a "\033[H" sequence is
encountered
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 change improves flexibility and allows for easy future integration
of the PCI Express Enhanced Configuration Access Mechanism (ECAM)
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>
|
|
- Only check PxSCTL.SET within the port reset logic
- Do not create device file for ATAPI devices (yet)
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
- Set PxCMD.SUD if the HBA supports staggered spin-up to ensure the
device will be detectable.
- Wait for the device link to be established
- Detect and log SATA link speed
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Drivers may be invoked even while other processes are start up and
therefore their MMIO mappings must be shared.
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
- Use pmap_update_tbl() to ensure that the TLB is flushed when caching
attributes are updated.
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>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
The per process flags field is a frequently modified/read field and MUST
NOT give stale data. Be very sure that the compiler does not optimize
away accesses.
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Temporary workaround for issue relating to hangs on process yield
with a sleeping parent
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
- Add support for the "\033[H" ANSI escape sequence to
reset the cursor to the 'home' position
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 an `alloc' paramater to pmap_update_tbl() to ensure that functions
like pmap_map() and pmap_unmap() have control over, whether or not to
allocate new page table entries. This is useful as unmapping memory does
not require new page table entries to be allocated and doing so anyways
may result in undefined behaviour such as hangs.
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
If a thread is sleeping, skip it and try the next thread.
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
- Ensure a contiguous region of physical memory is allocated
in vm_alloc_frame()
- Fix issues with physical memory being clobbered with excessive
allocations
- Clean up frame walk loop
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
- Use ALIGN_UP() on base address in vm_free_frame()
Signed-off-by: Ian Moffett <ian@osmora.org>
|