Permalink
Browse files

Editted the todo file and removed some obsolete files.

  • Loading branch information...
1 parent 940abc9 commit 58cd57022a13cb58b4fa9169748b53321d817a9c @bietje bietje committed Aug 8, 2011
Showing with 1 addition and 214 deletions.
  1. +0 −13 Win-bochsrc
  2. +0 −15 bochsrc-usb
  3. +0 −163 temp.asm
  4. +0 −22 test.asm
  5. +1 −1 todo
View
@@ -1,13 +0,0 @@
-#config_interface: wx
-#display_library: wx
-romimage: file="C:\Program Files (x86)\Bochs-2.4.6\BIOS-bochs-latest"
-megs: 32
-vgaromimage: file="C:\Program Files (x86)\Bochs-2.4.6\VGABIOS-lgpl-latest"
-ata0: enabled=1
-ata0-master: type=disk, path="goldeneaglebl.bin", mode=flat, cylinders=1, heads=1, spt=2
-ata1: enabled=0
-boot: disk
-#gdbstub: enabled=1, port=1234, text_base=0, data_base=0, bss_base=0
-#keyboard_mapping: enabled=1, map=/usr/share/bochs/keymaps/x11-pc-us.map
-info: action=ignore
-#log: /dev/stdout
View
@@ -1,15 +0,0 @@
-config_interface: wx
-display_library: wx
-romimage: file=/usr/share/bochs/BIOS-bochs-latest
-megs: 1024
-vgaromimage: file=/usr/share/vgabios/vgabios.bin
-ata0: enabled=1
-ata0-master: type=disk, path="/dev/sdf", mode=flat, cylinders=16, heads=16, spt=63
-ata1: enabled=1
-ata1-master: type=disk, path="build/goldeneaglebl.bin", mode=flat, cylinders=1, heads=1, spt=6
-boot: disk
-#gdbstub: enabled=1, port=1234, text_base=0, data_base=0, bss_base=0
-#keyboard_mapping: enabled=1, map=/usr/share/bochs/keymaps/x11-pc-us.map
-info: action=ignore
-#log: /home/michel/osdev/goldeneagle/bochs.log
-log: /dev/stdout
View
163 temp.asm
@@ -1,163 +0,0 @@
-;
-; Entry point for stage 1.5. This sector will use a dynamic sector loader to load the second stage and the micro kernel.
-; Copyright (C) 2011 Michel Megens
-;
-; This program is free software: you can redistribute it and/or modify
-; it under the terms of the GNU General Public License as published by
-; the Free Software Foundation, either version 3 of the License, or
-; (at your option) any later version.
-;
-; This program is distributed in the hope that it will be useful,
-; but WITHOUT ANY WARRANTY; without even the implied warranty of
-; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-; GNU General Public License for more details.
-;
-; You should have received a copy of the GNU General Public License
-; along with this program. If not, see <http://www.gnu.org/licenses/>.
-;
-
-[BITS 16]
-[SECTION .stage1]
-[EXTERN endptr]
-
-%include "boot/x86/include/masterboot.asmh"
-
-jmp short main
-nop
-
-gdt:
- times 8 db 0
- UNREAL_SEG equ $ - gdt ; Data segment, read/write, expand down
- dw 0FFFFh
- dw 0
- db 0
- db 0x92
- db 0xCF
- db 0
-gdt_end equ $ - gdt
-
-gdtr:
- dw gdt_end - 1; gdt limit = size
- dd gdt ; gdt base address
-
-main:
- mov di, 0x7c00
- mov si, OL_BUFOFF+OL_PART_TABLE
- push di
- mov cx, 0x40
- cld
- rep movsw
- push dx
-
- jmp .unrealmode
-
-.bailout:
- mov si, failed
- call println
- cli
- jmp $
-
-.unrealmode:
-; before we load the core image and the second stage with the bios we
-; have to hack the processor in unreal mode first.
- cli
- push ds ; save for later
- push es
- lgdt [gdtr]
- mov eax, cr0
- or eax, 1b
- mov cr0, eax
-
- mov ax, UNREAL_SEG
- mov ds, ax
- mov es, ax
-
- mov eax, cr0
- xor eax, 1b
- mov cr0, eax
- pop es
- pop ds
- sti
-; hello unreal mode
-
-.loadcore:
- call calcsectors
- push eax ; to be compatible with the loop
- xor ebp, ebp
- xor ecx, ecx
-
-.looptop:
- pop eax
- cmp eax, 4
- jb .lastsectors
-
- sub eax, 4
- push eax
- mov cx, 4
- jmp .loadsectors
-
-.lastsectors:
- pop eax
- sub eax, 1
- jmp .end
- jz .end
- mov cx, 1
- push eax
-
-.loadsectors:
- ; dl already contains the drive number
- mov eax, dword [0x7c00+8]
- add eax, 2 ; third sector
- add eax, ebp ; add sector offset from previous reads
- xor ebx, ebx
-
- mov bx, 0x7e0
- mov es, bx
- mov di, 0x200
-
- call int13_read
- jc .bailout
-
- ; ecx is set by the int13_read routine
- mov esi, 0x8000
- mov edi, 0x8000
-
- shl ebp, 9 ; sectors *512
- add edi, ebp ; make sure we do not overwrite previous writes
- shr ebp, 9 ; sectors / 512
- add ebp, ecx ; add for next copy
- shl ecx, 9
-
-.cpysectors:
- mov al, byte [ds:esi]
- mov byte [ds:edi], al
- add esi, 1
- add edi, 1
- dec ecx
- jnz .cpysectors
- jmp .looptop
-
-.end:
- pop dx
- pop si
-; jmp $
- jmp 0x7e0:0x200
-; jmp 0x0:0x8000
-
-; jmp .bailout
-
-;
-; 16-bit bios disk interface
-;
-
-%include 'boot/x86/interface/disk.asm'
-
-;
-; Print routine
-;
-
-%include 'boot/x86/println.asm'
-
- failed db '0x2', 0x0
-
-times 512 - ($ - $$) db 0
View
@@ -1,22 +0,0 @@
-[BITS 16]
-[ORG 0x8000]
-
-jmp short main
-nop
-
-main: ; entry point
- mov al, 0x42
- mov ah, 0x0E
- xor bh, bh
- int 0x10
-
-jmp $
-
-;
-; Print routines
-;
-
-; %include 'boot/x86/println.asm'
-
-times 510 - ($-$$) db 0
-dw 0xaa55
View
2 todo
@@ -22,12 +22,12 @@
* Made a load buffer for int 0x13, so the kernel size isn't bound to
the 1MiB limit anymore.
* wrote code to reprogram the pit.
+ * Improved the Makefile system with 10000%
What should be improved:
Next item:
* memory allocator
- * Change Makefile structure
What has to be done:

0 comments on commit 58cd570

Please sign in to comment.