Commit Graph

3361 Commits

Author SHA1 Message Date
Jeremy Soller 4e42e03be9 Update dependencies 2021-04-28 20:55:40 -06:00
Jeremy Soller 8f833bf545 Update dependencies 2021-04-28 20:48:07 -06:00
Jeremy Soller 15dc86a1d7 Update dependencies 2021-04-28 20:45:53 -06:00
Jeremy Soller bee08cbdf1 Update dependencies 2021-04-28 20:42:59 -06:00
4lDO2 fd83cd3ac7 Add license. 2021-04-01 19:11:37 +02:00
4lDO2 7206288e72 Handle O_TRUNC properly.
This ensures that files that were replaced due to O_CREAT, will now be
emptied when O_TRUNC is passed (which is the default).
2021-04-01 19:08:44 +02:00
4lDO2 eaf78bb51b Run rustfmt.
In the future we should add CI with a rustfmt check, making correct
formatting a hard requirement.
2021-04-01 09:46:17 +02:00
4lDO2 7f3938c774 Merge branch 'fix-duplicate-files' into 'master'
ramfs: Fix duplicated files bug

See merge request redox-os/ramfs!3
2021-04-01 07:38:36 +00:00
Joshua Abraham 70e52d4ec9 ramfs: Fix duplicated files bug
Previously ramfs allowed identical filenames to be created if the
O_CREAT flag was used. This patch fixes the behavior and instead
opens the existing file as long as O_EXCL is not specified.
2021-03-31 19:16:32 -05:00
Jeremy Soller a4fdf5ea30 Revert "Merge branch 'ramfs-nofile' into 'master'"
This reverts merge request !1
2021-03-30 12:41:40 +00:00
4lDO2 93e26f8c37 Merge branch 'missing_ENOENT' into 'master'
Fix missing 'use ENOENT'

See merge request redox-os/ramfs!2
2021-03-30 12:11:48 +00:00
James Graves 737a41854d Fix missing 'use ENOENT' 2021-03-30 09:16:06 +00:00
Jeremy Soller 0cfe98150e Merge branch 'ramfs-nofile' into 'master'
ramfs: SchemeMut: return ENOENT in filesystem calls when file does not exist

See merge request redox-os/ramfs!1
2021-03-30 01:57:27 +00:00
Joshua Abraham 4523d80c24 ramfs: SchemeMut: return ENOENT in filesystem calls when file does not exist 2021-03-29 20:38:52 -05:00
4lDO2 641feb01b1 Print parsed tables only with debug verbosity. 2021-03-13 12:40:26 +01:00
4lDO2 c6efa649be Add DMAR parsing.
In the future, this will probably be moved into its own driver, probably
called `intelvtdd` or `intelvfiod`. This is because `acpid` already
provides an interface to read from ACPI tables, which `pcid` has used
for quite long (when that scheme was provided by the kernel). AMD
implements IOMMU as a PCI function, so letting these be separate drivers
would certainly be beneficial.

The same thing might apply for HPET or MADT, which are the only ACPI
tables still parsed in the kernel.
2021-03-13 12:34:56 +01:00
4lDO2 391f7c4184 WIP: Improve acpid logging. 2021-03-12 23:45:16 +01:00
4lDO2 3989477669 Also open a file descriptor in debug:.
This is to allow the shutdown logs to reach serial output before the
system shuts down, which is especially useful on QEMU.
2021-03-11 17:50:17 +01:00
4lDO2 5fc0f0fa4e Successfully parse the namespace. 2021-03-11 12:48:34 +01:00
4lDO2 0feb8685a6 Fix the acpi scheme freeze. 2021-03-11 08:31:43 +01:00
4lDO2 20e6384cca WIP: Implement the userspace ACPI scheme. 2021-03-10 20:50:16 +01:00
4lDO2 7de9816c50 Basic ACPI init code, daemonize. 2021-03-10 18:06:30 +01:00
4lDO2 5d661eab59 Successfully load physical SDTs, and handle kstop*
Well, while it does now wait for the kstop pipe, that is not to say that
it actually performs the ACPI shutdown... yet.
2021-03-10 14:38:43 +01:00
4lDO2 df4a6aee81 Remove global variables, make it compile. 2021-03-10 12:13:28 +01:00
4lDO2 be984885bb WIP: Move ACPI code from kernel to drivers. 2021-03-10 11:24:27 +01:00
4lDO2 00b7674321 Use correct syscall when dropping PCIe context. 2021-03-08 14:37:38 +01:00
4lDO2 ae65c19bad Put the output file handle behind a guard.
This prevents the image from leaking, in case there is an error, as it
removes the file when the guard is dropped, before the "ok" status is
set.
2021-02-20 15:04:40 +01:00
4lDO2 ef6c880595 Add license. 2021-02-20 14:35:45 +01:00
4lDO2 5e9e2e9ca8 Rename utils into redox-initfs-ar. 2021-02-20 14:33:37 +01:00
4lDO2 3b85a1d887 Finish kernel-facing API. 2021-02-20 14:17:40 +01:00
4lDO2 672a92bb51 Create a skeleton for the initfs API for kernel. 2021-02-20 13:59:51 +01:00
4lDO2 1cdb1c7f19 Increse default limit to 64 MiB. 2021-02-20 12:09:56 +01:00
4lDO2 8b5474189d WIP: (probably) complete basic initfs-ar util. 2021-02-20 11:51:33 +01:00
4lDO2 2eefa1a16f Initial Commit 2021-02-19 23:29:04 +01:00
Jeremy Soller 18c14b1d8f Update redox_syscall and redox_termios 2021-01-19 11:34:05 -07:00
Jeremy Soller 16e4064624 Update redox_syscall 2021-01-19 11:24:59 -07:00
Jeremy Soller 0c5c45c580 Update redox_syscall 2021-01-19 11:23:26 -07:00
Jeremy Soller 59c52b4ac4 Update redox_syscall 2021-01-15 13:07:14 -07:00
Jeremy Soller 0485990b08 Update redox_syscall 2021-01-15 13:03:03 -07:00
Jeremy Soller c177f71b21 Update redox_syscall 2021-01-15 13:00:21 -07:00
Jeremy Soller 56c5713e6e Merge branch 'update-syscall-version-plus-buildix' into 'master'
Syscall dependency version bump + Fix build breakage

See merge request redox-os/init!6
2021-01-15 19:45:05 +00:00
Robin Randhawa fc657b5c23 Syscall dependency version bump + Fix build breakage
Breakage needed use of WaitFlags.
2021-01-15 18:01:48 +00:00
Jeremy Soller e6510c20c5 Merge branch 'update-syscall' into 'master'
vesad: Update redox_syscall

See merge request redox-os/drivers!74
2020-11-02 17:43:25 +00:00
jD91mZM2 c255a869ba Don't use a local dependency lmao 2020-10-29 15:57:09 +01:00
jD91mZM2 ca2b3fa2d4 Update to cargo release of redox_syscall 2020-08-27 17:55:01 +02:00
jD91mZM2 85411f2f91 vesad: fix embarassing bug from last commit 2020-08-17 17:00:12 +02:00
jD91mZM2 ac64d09186 vesad: Provide legacy fmap implementation 2020-08-17 16:28:02 +02:00
jD91mZM2 321f708d0f vesad: Update redox_syscall 2020-08-17 14:39:25 +02:00
Jeremy Soller 31bae74334 Merge branch 'code_hygiene' into 'master'
Code hygiene

See merge request redox-os/drivers!72
2020-08-08 12:55:24 +00:00
Jeremy Soller ccd65a0c88 Update redox_syscall 2020-08-02 16:23:39 -06:00