mirror of
https://gitlab.os-k.eu/os-k-team/os-k.git
synced 2023-08-25 14:03:10 +02:00
end of prepaging reorg
This commit is contained in:
parent
c49941df7c
commit
2dd6ce9dc7
2
Makefile
2
Makefile
@ -192,7 +192,7 @@ $(KOBJDIR)/kernel/sched.o: $(KERNELDIR)/kernel/proc/sched.c $(KERNELDIR)/include
|
|||||||
|
|
||||||
.PHONY: test
|
.PHONY: test
|
||||||
test: all
|
test: all
|
||||||
@qemu-system-x86_64 -m 5G -mem-prealloc -hda build/bin/disk.img -d cpu_reset,guest_errors,pcall,int 2> qemu.log &
|
@qemu-system-x86_64 -m 8G -mem-prealloc -hda build/bin/disk.img -d cpu_reset,guest_errors,pcall,int 2> qemu.log &
|
||||||
@ndisasm $(BINDIR)/kaleid -o 0x00100000 -b 64 > loader_disasm64.asm
|
@ndisasm $(BINDIR)/kaleid -o 0x00100000 -b 64 > loader_disasm64.asm
|
||||||
@ndisasm $(BINDIR)/kaleid -o 0x00100000 -b 32 > loader_disasm32.asm
|
@ndisasm $(BINDIR)/kaleid -o 0x00100000 -b 32 > loader_disasm32.asm
|
||||||
.PHONY: test32
|
.PHONY: test32
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
; along with OS/K. If not, see <https://www.gnu.org/licenses/>. ;
|
; along with OS/K. If not, see <https://www.gnu.org/licenses/>. ;
|
||||||
;=----------------------------------------------------------------------------=;
|
;=----------------------------------------------------------------------------=;
|
||||||
|
|
||||||
%define MAX_MEMORY 8 ; GiB
|
%define MAX_MEMORY 4 ; GiB
|
||||||
|
|
||||||
[BITS 32]
|
[BITS 32]
|
||||||
[section .text]
|
[section .text]
|
||||||
|
@ -150,31 +150,6 @@ noreturn void BtStartKern(multiboot_info_t *mbInfo, int mbMagic)
|
|||||||
//if(rc)KernLog("error\n");
|
//if(rc)KernLog("error\n");
|
||||||
//KernLog((char*)buf->buf);
|
//KernLog((char*)buf->buf);
|
||||||
|
|
||||||
uchar *addr = (uchar *)(ullong)(10);
|
|
||||||
*addr = 2;
|
|
||||||
|
|
||||||
addr = (uchar *)(ullong)(1*GB+10);
|
|
||||||
*addr = 4;
|
|
||||||
|
|
||||||
addr = (uchar *)(ullong)(2*GB+10);
|
|
||||||
*addr = 9;
|
|
||||||
|
|
||||||
addr = (uchar *)(ullong)(4*GB + 10);
|
|
||||||
*addr = 16;
|
|
||||||
|
|
||||||
addr = (uchar *)(ullong)(10);
|
|
||||||
KernLog("Test, valeur autour de %p: %hhu\n", addr, *addr);
|
|
||||||
|
|
||||||
addr = (uchar *)(ullong)(1*GB+10);
|
|
||||||
KernLog("Test, valeur autour de %p: %hhu\n", addr, *addr);
|
|
||||||
|
|
||||||
addr = (uchar *)(ullong)(2*GB+10);
|
|
||||||
KernLog("Test, valeur autour de %p: %hhu\n", addr, *addr);
|
|
||||||
|
|
||||||
addr = (uchar *)(ullong)(4*GB + 10);
|
|
||||||
KernLog("Test, valeur autour de %p: %hhu\n", addr, *addr);
|
|
||||||
|
|
||||||
|
|
||||||
// We're out
|
// We're out
|
||||||
PsFiniSched();
|
PsFiniSched();
|
||||||
KeCrashSystem(); //yay
|
KeCrashSystem(); //yay
|
||||||
|
Loading…
Reference in New Issue
Block a user