Skip to content

Commit 46ebda5

Browse files
committed
fix paging
1 parent aeeb202 commit 46ebda5

File tree

4 files changed

+8
-10
lines changed

4 files changed

+8
-10
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
commit aeeb202e06cc3c249505f348e030cb1363573bdd
2+
Author: Alexeev Bronislav <[email protected]>
3+
Date: Sun Aug 24 22:47:15 2025 +0700
4+
5+
fix sh*t from git branch conflicts
6+
17
commit 917716a92eaeeb4a09db3cd7bcc92911e9173f75
28
Author: Alexeev Bronislav <[email protected]>
39
Date: Sun Aug 24 22:35:53 2025 +0700

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,11 @@ run_bin: $(BIN_DIR)/kintsugios.bin
7171

7272
run: $(DISKIMG_DIR)/$(DISKIMG_NAME)
7373
@printf "$(GREEN)[QEMU] Run img %-50s$(RESET)\n" "$<"
74-
@qemu-system-i386 -fda $< -boot a -m 16
74+
@qemu-system-i386 -fda $< -boot a -m 128
7575

7676
debug: $(DISKIMG_DIR)/$(DISKIMG_NAME)
7777
@printf "$(GREEN)[QEMU] Debug img %-50s$(RESET)\n" "$<"
78-
@qemu-system-i386 -fda $< -boot a -s -S -m 16
78+
@qemu-system-i386 -fda $< -boot a -s -S -m 128
7979

8080
clean:
8181
@printf "$(RED)[RM] Clean $(BIN_DIR) and $(DISKIMG_DIR)$(RESET)\n"

src/kernel/kklibc/mem.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -191,9 +191,6 @@ meminfo_t get_meminfo() {
191191

192192
// Информация о страницах (заглушка)
193193
meminfo.page_directory_phys = (u32)get_physical_address(get_current_page_directory());
194-
meminfo.total_pages = 1024; // Примерное значение
195-
meminfo.used_pages = 256; // Примерное значение
196-
meminfo.free_pages = 768; // Примерное значение
197194

198195
return meminfo;
199196
}
@@ -211,8 +208,6 @@ void kmemdump() {
211208
kprintf("Block size: %d bytes\n", info.block_size);
212209
kprintf("Total: USED=%d bytes, FREE=%d bytes, in %d blocks\n",
213210
info.total_used, info.total_free, info.block_count);
214-
kprintf("Pages: TOTAL=%d, USED=%d, FREE=%d\n\n",
215-
info.total_pages, info.used_pages, info.free_pages);
216211

217212
while (current) {
218213
kprintf("Block %d: virt=%x, phys=%x, Size=%d, %s\n", counter++,

src/kernel/kklibc/mem.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@ typedef struct meminfo {
4242
u32 total_free;
4343
u32 block_count;
4444
u32 page_directory_phys; // Физический адрес каталога страниц
45-
u32 total_pages; // Общее количество страниц
46-
u32 used_pages; // Используемые страницы
47-
u32 free_pages; // Свободные страницы
4845
} meminfo_t;
4946

5047
// Обновляем прототипы функций

0 commit comments

Comments
 (0)