kvisc/ka/doskrnl.k

50 lines
847 B
Plaintext

; The OS/K Team licenses this file to you under the MIT license.
; See the LICENSE file in the project root for more information.
__sysmain:
jmp start
include "crt/crt.k"
;
; Special addresses
;
DOSKRNL_CODE := 0x100000 ; 1MB (code)
DOSKRNL_STACK := 0x110000 ; + 64KB
TRAP0_STACK := 0x112000 ; + 8KB
INTR0_STACK := 0x114000 ; + 8KB
EXCT0_STACK := 0x118000 ; + 8KB
CMDCOM_LOADP := 0x120000 ; 1MB + 128KB
CMDCOM_MAXSZ := 0x80000 ; 512KB
;
; Entry point
;
start:
mov rsp, DOSKRNL_STACK
mov rbp, zero
;dump
call main
crash
;
; Disk Operating System
;
include "sys/drv/cpudev.k"
include "sys/drv/memdev.k"
include "sys/drv/diskdev.k"
include "sys/intr/excepts.k"
include "sys/intr/common.k"
include "sys/intr/trap0.k"
include "sys/dumprf.k"
include "sys/main.k"