Commit Graph

16 Commits

Author SHA1 Message Date
Ry
b6ab015acb kernel/fxf: Bail out if the FXF could not be relocated 2023-07-13 15:02:19 -07:00
Ry
012511bf5f kernel: Add launch_fxf_from_open_file 2023-07-10 17:59:21 -07:00
Ry
8bea7c39b4 kernel + sh: Another stream overhaul
Certain streams can now be opened by name by prefixing the name
with a colon (':'). The only supported named stream at the moment
is :fb, which streams to/from the background framebuffer.

A new syscall called `get_size` was also added, which should be used
instead of `ryfs_get_size`. This new syscall supports getting the size
of streams.
2023-03-30 22:18:23 -07:00
Ry
fa693c71a7 all: Increase file struct size to 32 bytes for both files and streams 2023-03-30 21:46:24 -07:00
Ry
f67dfbff23 kernel/fxf/launch: Remove unneeded push 2023-03-23 00:38:22 -07:00
Ry
e0b53d5454 kernel/fxf/launch: Tell the caller if an error occurred 2023-03-23 00:20:11 -07:00
Ry
a484da1526 kernel/fxf/launch: Don't always show error message (oops) 2023-03-23 00:16:53 -07:00
Ry
7d877618a1 kernel/fxf/launch: Show an error message if memory allocation fails
```
You are fucked.
[ OK ]
```
2023-03-22 22:44:14 -07:00
Ry
59c688fc87 kernel/fxf/launch: Specify disk ID, and fix issue with argument passing 2023-03-22 22:25:55 -07:00
Ry
8103ec8bcd kernel/fxf and launcher: Add and use launch_fxf_from_disk syscall 2023-03-22 22:18:33 -07:00
jn
ffdda5eaca Make use of data.strz
The filesystem image is the same before and after this commit:

$ sha256sum fox32os-orig.img fox32os.img
abc77bd6310b8eb6bcde0a8a442ca8bab071307a6cf5155ea606578435f77d27  fox32os-orig.img
abc77bd6310b8eb6bcde0a8a442ca8bab071307a6cf5155ea606578435f77d27  fox32os.img


The conversion was performed with a few sed commands:

find -name '*.asm' | xargs sed -i -e 's/data.str \("[^"]*"\) data.8 0$/data.strz \1/g'
find -name '*.asm' | xargs sed -i -e 's/data.str \("[^"]*"\) data.8 0 /data.strz \1 /g'
find -name '*.asm' | xargs sed -i -e 's/data.str \("[^"]*"\) data.8 0x00 /data.strz \1 /g'
2023-02-02 03:03:07 +01:00
jn
205e00dc08 Add file type check to parse_fxf_binary 2023-02-01 20:07:09 +01:00
Ry
e577446e55 Don't attempt to relocate if none are required
Fixes issue #4
2023-01-20 18:25:15 -08:00
Ry
30f8ec6d81 Remove unused extern and global tables from FXF 2022-06-21 19:05:34 -07:00
Ry
995b01dfd2 fox32os: Implement multitasking and add a jump table for applications 2022-05-21 16:55:56 -07:00
Ry
19af24b8a4 fox32os: Initial commit 2022-05-19 14:15:40 -07:00