Skip to content

Commit 8daca65

Browse files
v0.17.0
1 parent 4a9d25a commit 8daca65

12 files changed

Lines changed: 1713 additions & 12 deletions

File tree

Cargo.lock

Lines changed: 26 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ keywords = ["no-std", "liberty", "libertyos", "os", "kernel"]
88
name = "libertyos_kernel"
99
readme = "README.md"
1010
repository = "https://github.com/LibertyOS-Development/kernel"
11-
version = "0.16.0"
11+
version = "0.17.0"
1212

1313
[dependencies]
1414
acpi = "4.1.0"
@@ -19,6 +19,7 @@ bitflags = "1.3.2"
1919
bootloader = { version = "0.9.9", features = ["map_physical_memory"]}
2020
conquer-once = { version = "0.2.0", default-features = false }
2121
embedded-graphics = "0.7.1"
22+
embedded-graphics-framebuf = "0.2.0"
2223
fat32 = "0.2.0"
2324
libm = "0.2"
2425
linked_list_allocator = "0.9.0"

VERSIONHISTORY.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Version History
22

33
# Version History
44

5-
## 0.16.1
5+
## 0.17.0
66
- Created data::json (src/data/json).
77
- Created mod.rs file for data::son (src/data/json/mod.rs).
88
- Added Xiliang Chen to the "THANK YOU" list (THANKYOU.md).
@@ -38,6 +38,19 @@ Version History
3838
- Created the boilerplate subdirectory in the testing directory (tests/boilerplate).
3939
- Created the broken subdirectory in the testing directory (tests/broken).
4040
- Created the INFO.md file for the boilerplate subdirectory (tests/broken/INFO.md).
41+
- Expanded the code of sys::acpi (src/sys/acpi.rs).
42+
- Arranged the constants based on hexadecimal value, rather than by alphabetical order (src/graphics/vga/mod.rs).
43+
- Fixed an typo: changed value of INPUT_STATUS_REG from "0x3Da" to 0x3DA" (src/graphics/vga/mod.rs).
44+
- Created the dev::mouse module (src/dev/mouse.rs).
45+
- Added the mouse module to the mod.rs file (src/dev/mod.rs).
46+
- Added "#![feature(const_fn_fn_ptr_basics)]" to kernel (src/lib.rs).
47+
- Created "layout" as a temporary way to see what the kernel contains (layout).
48+
- Fixed an issue where "dealloc" was not a part of the GlobalAlloc implementation for Dummy (src/allocator/mod.rs).
49+
- Commented out the line that initializes the kernel's logger (src/init.rs).
50+
- Commented out the line that prints a message about the logger being initialized (src/init.rs).
51+
- Updated kernel version (src/main.rs).
52+
- Updated version number (Cargo.toml).
53+
4154

4255

4356
## 0.16.0 - LIBCORE IS NO MORE!

layout

Lines changed: 162 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,162 @@
1+
.
2+
|-- allocator
3+
| |-- bump.rs
4+
| |-- fixedsize.rs
5+
| |-- lnls.rs
6+
| `-- mod.rs
7+
|-- arch
8+
| |-- mod.rs
9+
| |-- riscv
10+
| | |-- mod.rs
11+
| | `-- rt
12+
| | `-- mod.rs
13+
| `-- x64
14+
| |-- address.rs
15+
| |-- instructions
16+
| | `-- mod.rs
17+
| |-- mod.rs
18+
| |-- reg
19+
| | |-- mod.rs
20+
| | `-- rflags.rs
21+
| `-- structures
22+
| |-- mod.rs
23+
| `-- port.rs
24+
|-- clock.rs
25+
|-- cmos.rs
26+
|-- ctypes.rs
27+
|-- data
28+
| |-- json
29+
| | |-- mod.rs
30+
| | |-- parse.rs
31+
| | |-- parser
32+
| | | |-- implementation.rs
33+
| | | |-- mod.rs
34+
| | | `-- traits.rs
35+
| | `-- traits.rs
36+
| |-- mod.rs
37+
| `-- ucs2
38+
| `-- mod.rs
39+
|-- dev
40+
| |-- drivers
41+
| | |-- mm_uart.rs
42+
| | |-- mod.rs
43+
| | |-- pic8259.rs
44+
| | `-- uart.rs
45+
| |-- kbd
46+
| | `-- mod.rs
47+
| |-- mod.rs
48+
| `-- mouse.rs
49+
|-- external
50+
| |-- compmem.rs
51+
| |-- cpmem.rs
52+
| |-- mod.rs
53+
| |-- movemem.rs
54+
| `-- setmem.rs
55+
|-- font.rs
56+
|-- fs
57+
| |-- ata.rs
58+
| |-- blk.rs
59+
| |-- blkdev.rs
60+
| |-- bmapblk.rs
61+
| |-- dev.rs
62+
| |-- directory.rs
63+
| |-- directory_entry.rs
64+
| |-- directory_read.rs
65+
| |-- file.rs
66+
| |-- mod.rs
67+
| `-- sblk.rs
68+
|-- graphics
69+
| |-- framebuff
70+
| | `-- mod.rs
71+
| |-- mod.rs
72+
| `-- vga
73+
| |-- backupmod
74+
| |-- mod.rs
75+
| |-- pal.rs
76+
| `-- std_color.rs
77+
|-- init.rs
78+
|-- interrupts.rs
79+
|-- io
80+
| |-- mod.rs
81+
| |-- stderr.rs
82+
| |-- stdin.rs
83+
| `-- stdout.rs
84+
|-- layoud
85+
|-- lib.rs
86+
|-- macros.rs
87+
|-- main.rs
88+
|-- math
89+
| |-- float
90+
| | |-- absval.rs
91+
| | |-- arcsine.rs
92+
| | |-- ceiling.rs
93+
| | |-- cosine.rs
94+
| | |-- cpsign.rs
95+
| | |-- fl.rs
96+
| | |-- floor.rs
97+
| | |-- hypotenuse.rs
98+
| | |-- inv_cos.rs
99+
| | |-- inv_sqrt.rs
100+
| | |-- inv_tan.rs
101+
| | |-- invert.rs
102+
| | |-- ln.rs
103+
| | |-- log.rs
104+
| | |-- log_10.rs
105+
| | |-- log_2.rs
106+
| | |-- mod.rs
107+
| | |-- round.rs
108+
| | |-- sine.rs
109+
| | |-- sqrt.rs
110+
| | `-- tangent.rs
111+
| |-- int
112+
| | |-- mod.rs
113+
| | `-- sr.rs
114+
| |-- measurement
115+
| | |-- mod.rs
116+
| | `-- volt.rs
117+
| |-- mod.rs
118+
| `-- units
119+
| |-- bparse.rs
120+
| |-- bsize.rs
121+
| `-- mod.rs
122+
|-- mem.rs
123+
|-- noblkio.rs
124+
|-- pic.rs
125+
|-- rgx.rs
126+
|-- ser.rs
127+
|-- sys
128+
| |-- acpi.rs
129+
| |-- boot
130+
| | |-- efi.rs
131+
| | |-- efi.rs.save
132+
| | |-- memmap.rs
133+
| | `-- mod.rs
134+
| |-- console.rs
135+
| |-- cpu.rs
136+
| |-- gdt.rs
137+
| |-- idt.rs
138+
| |-- log.rs
139+
| |-- mod.rs
140+
| |-- pci.rs
141+
| |-- proc.rs
142+
| |-- prompt.rs
143+
| |-- rand.rs
144+
| |-- rsdp.rs
145+
| `-- sc
146+
| |-- mod.rs
147+
| `-- svc.rs
148+
|-- task
149+
| |-- exec.rs
150+
| |-- kbd.rs
151+
| |-- mod.rs
152+
| |-- prompt.rs
153+
| `-- simpexec.rs
154+
|-- time.rs
155+
|-- user
156+
| |-- date.rs
157+
| |-- mod.rs
158+
| |-- shell.rs
159+
| `-- ut.rs
160+
`-- vol.rs
161+
162+
31 directories, 128 files

src/allocator/mod.rs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -144,13 +144,14 @@ pub struct Dummy;
144144

145145
unsafe impl GlobalAlloc for Dummy
146146
{
147-
unsafe fn alloc(&self, _layout: Layout) -> *mut u8 {
148-
null_mut()
149-
}
147+
unsafe fn alloc(&self, _layout: Layout) -> *mut u8
148+
{
149+
null_mut()
150+
}
150151

151-
unsafe fn dealloc(&self, _ptr: *mut u8, _layout: Layout)
152-
{
153-
panic!("[ERR] DEALLOC SHOULD NOT BE CALLED")
152+
unsafe fn dealloc(&self, _ptr: *mut u8, _layout: Layout)
153+
{
154+
panic!("[ERR] DEALLOC SHOULD NOT BE CALLED")
154155
}
155156
}
156157

src/dev/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@ pub mod drivers;
88

99
// Keyboard support
1010
pub mod kbd;
11+
12+
pub mod mouse;

0 commit comments

Comments
 (0)