Kolibri-A: Linux-friendly now

git-svn-id: svn://kolibrios.org@1678 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Artem Jerdev (art_zh) 2010-10-25 12:43:42 +00:00
parent 72eb0b5fb7
commit 6cb25c9e01
5 changed files with 12 additions and 42 deletions

View File

@ -3,7 +3,6 @@
;; Copyright (C) 2010 KolibriOS team. All rights reserved. ;; ;; Copyright (C) 2010 KolibriOS team. All rights reserved. ;;
;; Distributed under terms of the GNU General Public License ;; ;; Distributed under terms of the GNU General Public License ;;
;; ;; ;; ;;
;; HT.inc ;; ;;
;; ;; ;; ;;
;; AMD HyperTransport bus control ;; ;; AMD HyperTransport bus control ;;
;; ;; ;; ;;

View File

@ -68,7 +68,6 @@ USE_COM_IRQ equ 1 ; make irq 3 and irq 4 available for PCI devices
include "proc32.inc" include "proc32.inc"
include "kglobals.inc" include "kglobals.inc"
include "lang.inc"
include "const.inc" include "const.inc"
max_processes equ 255 max_processes equ 255
@ -125,12 +124,7 @@ version db 'Kolibri OS version 0.7.7.0+ ',13,10,13,10,0
include "boot/bootstr.inc" ; language-independent boot messages include "boot/bootstr.inc" ; language-independent boot messages
include "boot/preboot.inc" include "boot/preboot.inc"
if lang eq en
include "boot/booteng.inc" ; english system boot messages include "boot/booteng.inc" ; english system boot messages
else
include "boot/bootru.inc" ; russian system boot messages
include "boot/ru.inc" ; Russian font
end if
include "boot/bootcode.inc" ; 16 bit system boot code include "boot/bootcode.inc" ; 16 bit system boot code
include "bus/pci/pci16.inc" include "bus/pci/pci16.inc"
@ -1920,6 +1914,7 @@ sysfn_terminate: ; 18.2 = TERMINATE
cmp edx,[application_table_status] ; clear app table stat cmp edx,[application_table_status] ; clear app table stat
jne noatsc jne noatsc
and [application_table_status],0 and [application_table_status],0
noatsc: noatsc:
noprocessterminate: noprocessterminate:

View File

@ -246,8 +246,8 @@ include "gui/skincode.inc"
; Pci functions ; Pci functions
include "bus/pci/pci32.inc" include "bus/pci/pci32.inc"
include "bus/pci/pcie.inc" include "bus/pci/PCIe.inc"
include "bus/ht.inc" ; AMD HyperTransport bus control include "bus/HT.inc" ; AMD HyperTransport bus control
; Floppy drive controller ; Floppy drive controller

View File

@ -0,0 +1,9 @@
#!/bin/bash
# This is a simplified script to compile Kolibri-A kernel
# please place *fasm program to the topmost KOS directory
# and create an empty /bin folder there before run this script
../../../../../fasm -m 65536 kernel.asm ../../../../../bin/kernel.mnt
exit 0

View File

@ -1,33 +0,0 @@
#!/bin/bash
# This script does for linux the same as build.bat for DOS,
# it compiles the KoOS kernel, hopefully ;-)
CLANG=$1;
usage()
{
echo "Usage: make.sh [en|ru|ge|et]"
exit 1
}
compile()
{
fasm -m 65536 kernel.asm bin/kernel.mnt
rm -f lang.inc
exit 0
}
if [ ! $CLANG ] ; then
usage
fi
for i in "en" "ru" "ge" "et"; do
if [ $i == $CLANG ] ; then
echo "lang fix $i" > lang.inc
compile
fi
done
usage