Sen descrición

root edbe4a25b6 vmxnix %!s(int64=5) %!d(string=hai) anos
boot 12d9f823c9 2.131 buggy: no error in bochs, but error qemu and on hardware. (* (&'XNIX kernel init') = 0 in qemu) %!s(int64=5) %!d(string=hai) anos
docs 4fc77ff551 0.228u-boot: load loader to memory %!s(int64=5) %!d(string=hai) anos
include 12d9f823c9 2.131 buggy: no error in bochs, but error qemu and on hardware. (* (&'XNIX kernel init') = 0 in qemu) %!s(int64=5) %!d(string=hai) anos
init 12d9f823c9 2.131 buggy: no error in bochs, but error qemu and on hardware. (* (&'XNIX kernel init') = 0 in qemu) %!s(int64=5) %!d(string=hai) anos
kernel 12d9f823c9 2.131 buggy: no error in bochs, but error qemu and on hardware. (* (&'XNIX kernel init') = 0 in qemu) %!s(int64=5) %!d(string=hai) anos
modules bec0b7eff2 printk %!s(int64=5) %!d(string=hai) anos
LICENSE 0262c90cca copy from cunix %!s(int64=5) %!d(string=hai) anos
LINES ac3de23fcd 2.015u-traps: add handler for interrupt #0x00 divide error %!s(int64=5) %!d(string=hai) anos
Makefile edbe4a25b6 vmxnix %!s(int64=5) %!d(string=hai) anos
README.md ac3de23fcd 2.015u-traps: add handler for interrupt #0x00 divide error %!s(int64=5) %!d(string=hai) anos
kernel.lds 12d9f823c9 2.131 buggy: no error in bochs, but error qemu and on hardware. (* (&'XNIX kernel init') = 0 in qemu) %!s(int64=5) %!d(string=hai) anos
lines aaded51783 vmxnix %!s(int64=5) %!d(string=hai) anos

README.md

XNIX kernel

Overview

XNIX is a UNIX-like operating system uses the GPLv3 license. It is a free and open source software, you can get its source code from https://gitee.com/pengruiyang-cpu/xnix.

Changes

0.066u-boot:
    upload boot.asm -- it puts 'Loading System' on screen, and die.     see 'How XNIX and other operating systems startup' if you are     interested in it.

0.228u-boot:
    update boot.asm: it reads the second sector of boot-driver (loader) and jumps to it.     loader.asm puts a message 'Starting Loader' on screen, and die.

0.431u-boot:
    loader.asm switching to long mode. And it set page map to address 0x00000000. It mapped 4MB memories.

0.427u-init:
    boot.asm read 64 sectors to 0x00007e00, and loader.asm jumps to it after switching to long-mode.     then, head.S displays a message on screen.

0.437u-init:
    head.S 'return' to init(void), then init put a message on screen and return to head.S.
    and then head.S check return value of init, if not zero, it will put a message on screen.     if no error, it will halted the CPU.

1.611s-modules:
    first stable version!     copy some files from Cunix, now XNIX can put a formated message on screen.

1.640u-modules:
    add support for %b, %w, %l, %q support for put hex numbers.

1.706u-int:
    initial IDT in head.S, it set all handlers at defualt_int_handler

1.854u-int:
    new int.c intial idt_table[0x80], and set handler to syscall. it put a message and die.

2.015u-traps:
    add handler for divide-error (always divide by zero). do_divide_error write in C, it pucs a message and return.     divide_error is an assembly function. it saves all registers, and call do_divide_error. then it recover all registers and iretq.