Compare commits
67 Commits
docs/libs
...
45b299d80c
Author | SHA1 | Date | |
---|---|---|---|
45b299d80c | |||
|
9b08b20cc3 | ||
38fdd13e0c | |||
d9679f5f81 | |||
92ea2a97eb | |||
98cccc438c | |||
79d9f42085 | |||
b39150ecea | |||
1a40899780 | |||
25b79ca6d1 | |||
2e3548d92a | |||
ed8e4ecf33 | |||
6a9608c7a4 | |||
d8c6274d19 | |||
1df7b2fd4c | |||
9001dbc1b4 | |||
c11c7922bd | |||
739facfeca | |||
8c9a971e2c | |||
5aa17d5823 | |||
4d6ef342e1 | |||
8e5b315fd4 | |||
1525cb7e37 | |||
bad1a3c3ca | |||
b1d8436000 | |||
3da226faf6 | |||
70297cd8f4 | |||
bf9f7d2a19 | |||
|
84aec355b8 | ||
|
a576b68db3 | ||
|
2e72ebc96f | ||
|
aa3ae8a8ea | ||
|
78d5942bb8 | ||
|
3da29f23e9 | ||
|
6301b42142 | ||
|
e0f45e268a | ||
a11466d56b | |||
54669d62b4 | |||
|
aa74ea51d7 | ||
|
83a8240eb8 | ||
9f5dd6cbdd | |||
e633ea8eac | |||
|
c07e2a9857 | ||
195f996c1b | |||
17eebff188 | |||
84bc176353 | |||
|
50220d0cd9 | ||
|
d68b350360 | ||
|
f366d6d925 | ||
d235c8914c | |||
6933ee64cd | |||
4cfb1a27b5 | |||
8f7ee79d05 | |||
|
da418f65b3 | ||
|
bfc59f6636 | ||
|
f7bdaa8909 | ||
|
2dd6a1516e | ||
5593d344cd | |||
|
28668acd86 | ||
|
cb733c6d1d | ||
|
cf354ec8d3 | ||
c8e9e5a2a7 | |||
|
b815aee084 | ||
|
7a6d042da7 | ||
2d9007da32 | |||
|
b558f23604 | ||
|
dd5a6a7316 |
174
.gitea/workflows/build.yaml
Normal file
174
.gitea/workflows/build.yaml
Normal file
@@ -0,0 +1,174 @@
|
|||||||
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
# SPDX-FileCopyrightText: 2025 KolibriOS team
|
||||||
|
|
||||||
|
name: 'Build system'
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- 'main'
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- '**'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
codestyle:
|
||||||
|
name: "Check kernel codestyle"
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup dependencies
|
||||||
|
run: |
|
||||||
|
sudo apt update && sudo apt install perl -y
|
||||||
|
|
||||||
|
- name: Check codestyle
|
||||||
|
run: |
|
||||||
|
find kernel/trunk -iname '*.asm' -or -iname '*.inc' -exec bash -c "echo {}; cat {} | perl .gitea/workflows/checker.pl" \;
|
||||||
|
|
||||||
|
build:
|
||||||
|
name: 'Build'
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Get describe
|
||||||
|
id: vars
|
||||||
|
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
- name: Setup dependencies
|
||||||
|
run: |
|
||||||
|
cd /tmp
|
||||||
|
sudo apt update
|
||||||
|
sudo apt install p7zip-full fasm nasm make gcc gcc-multilib g++ g++-multilib mtools mkisofs parted gdisk -y
|
||||||
|
wget http://mirrors.kernel.org/ubuntu/pool/universe/t/tup/tup_0.8-1_amd64.deb
|
||||||
|
sudo apt install ./tup_0.8-1_amd64.deb -y
|
||||||
|
|
||||||
|
- name: Install GCC toolchain
|
||||||
|
run: |
|
||||||
|
chmod +x ${{ gitea.workspace }}/.gitea/workflows/install_kgcc
|
||||||
|
${{ gitea.workspace }}/.gitea/workflows/install_kgcc
|
||||||
|
|
||||||
|
- name: Install JWasm
|
||||||
|
run: |
|
||||||
|
cd /tmp
|
||||||
|
wget -O JWasm211bl.zip https://sourceforge.net/projects/jwasm/files/JWasm%20Linux%20binary/JWasm211bl.zip/download
|
||||||
|
unzip JWasm211bl.zip "jwasm" -d /home/autobuild/tools/win32/bin/
|
||||||
|
chmod +x /home/autobuild/tools/win32/bin/jwasm
|
||||||
|
|
||||||
|
- name: Build and install C--
|
||||||
|
run: |
|
||||||
|
cd ${{ gitea.workspace }}/programs/develop/cmm/
|
||||||
|
make -f Makefile.lin32
|
||||||
|
chmod +x c--
|
||||||
|
mv c-- /home/autobuild/tools/win32/bin/c--
|
||||||
|
cp ${{ gitea.workspace }}/programs/cmm/c--/c--.ini /home/autobuild/tools/win32/bin/c--.ini
|
||||||
|
make -f Makefile.lin32 clean
|
||||||
|
|
||||||
|
- name: Install TCC
|
||||||
|
run: |
|
||||||
|
cp ${{ gitea.workspace }}/programs/develop/ktcc/trunk/bin/kos32-tcc /home/autobuild/tools/win32/bin/kos32-tcc
|
||||||
|
chmod +x /home/autobuild/tools/win32/bin/kos32-tcc
|
||||||
|
|
||||||
|
- name: Compile objconv
|
||||||
|
run: |
|
||||||
|
cd ${{ gitea.workspace }}/programs/develop/objconv/
|
||||||
|
g++ -o /home/autobuild/tools/win32/bin/objconv -O2 *.cpp
|
||||||
|
chmod +x /home/autobuild/tools/win32/bin/objconv
|
||||||
|
|
||||||
|
- name: Compile kerpack
|
||||||
|
run: |
|
||||||
|
cd ${{ gitea.workspace }}/programs/other/kpack/kerpack_linux/
|
||||||
|
make
|
||||||
|
chmod +x kerpack
|
||||||
|
mv kerpack /home/autobuild/tools/win32/bin/.
|
||||||
|
|
||||||
|
- name: Compile kpack
|
||||||
|
run: |
|
||||||
|
cd ${{ gitea.workspace }}/programs/other/kpack/linux/
|
||||||
|
bash build.sh
|
||||||
|
chmod +x kpack
|
||||||
|
mv kpack /home/autobuild/tools/win32/bin/.
|
||||||
|
|
||||||
|
- name: Compile clink
|
||||||
|
run: |
|
||||||
|
cd ${{ github.workspace }}/programs/develop/clink
|
||||||
|
gcc main.c -o clink
|
||||||
|
chmod a+x clink
|
||||||
|
mv clink /home/autobuild/tools/win32/bin/clink
|
||||||
|
|
||||||
|
- name: Configure tup
|
||||||
|
run: |
|
||||||
|
cd ${{ gitea.workspace }}
|
||||||
|
export ROOT=${{ gitea.workspace }}
|
||||||
|
cd $ROOT
|
||||||
|
|
||||||
|
echo "CONFIG_KPACK_CMD=&& kpack --nologo %o" > tup.config
|
||||||
|
echo "CONFIG_KERPACK_CMD=&& kerpack %o" >> tup.config
|
||||||
|
echo "CONFIG_PESTRIP_CMD=&& EXENAME=%o fasm $ROOT/data/common/pestrip.asm %o" >> tup.config
|
||||||
|
echo "CONFIG_NO_MSVC=full" >> tup.config
|
||||||
|
echo "CONFIG_INSERT_REVISION_ID=1" >> tup.config
|
||||||
|
|
||||||
|
tup -v
|
||||||
|
tup init
|
||||||
|
|
||||||
|
- name: Build KolibriOS (en_US)
|
||||||
|
run: |
|
||||||
|
cp tup.config tup.config.en_US
|
||||||
|
echo "CONFIG_LANG=en_US" >> tup.config.en_US
|
||||||
|
echo "CONFIG_BUILD_TYPE=en_US" >> tup.config.en_US
|
||||||
|
|
||||||
|
export PATH=/home/autobuild/tools/win32/bin:$PATH
|
||||||
|
tup generate --config tup.config.en_US build-en_US.sh
|
||||||
|
./build-en_US.sh
|
||||||
|
|
||||||
|
- name: Upload floppy image (en_US)
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: kolibrios-en_US-${{ steps.vars.outputs.sha_short }}.img
|
||||||
|
path: data/kolibri.img
|
||||||
|
|
||||||
|
- name: Upload CD image (en_US)
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: kolibrios-en_US-${{ steps.vars.outputs.sha_short }}.iso
|
||||||
|
path: data/kolibri.iso
|
||||||
|
|
||||||
|
- name: Upload raw image (en_US)
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: kolibrios-en_US-${{ steps.vars.outputs.sha_short }}.raw
|
||||||
|
path: data/kolibri.raw
|
||||||
|
|
||||||
|
- name: Build KolibriOS (ru_RU)
|
||||||
|
run: |
|
||||||
|
git clean -d -x -f -e tup.config
|
||||||
|
cp tup.config tup.config.ru_RU
|
||||||
|
echo "CONFIG_LANG=ru_RU" >> tup.config.ru_RU
|
||||||
|
echo "CONFIG_BUILD_TYPE=ru_RU" >> tup.config.ru_RU
|
||||||
|
|
||||||
|
export PATH=/home/autobuild/tools/win32/bin:$PATH
|
||||||
|
tup generate --config tup.config.ru_RU build-ru_RU.sh
|
||||||
|
./build-ru_RU.sh
|
||||||
|
|
||||||
|
- name: Upload floppy image (ru_RU)
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: kolibrios-ru_RU-${{ steps.vars.outputs.sha_short }}.img
|
||||||
|
path: data/kolibri.img
|
||||||
|
|
||||||
|
- name: Upload CD image (ru_RU)
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: kolibrios-ru_RU-${{ steps.vars.outputs.sha_short }}.iso
|
||||||
|
path: data/kolibri.iso
|
||||||
|
|
||||||
|
- name: Upload raw image (ru_RU)
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: kolibrios-ru_RU-${{ steps.vars.outputs.sha_short }}.raw
|
||||||
|
path: data/kolibri.raw
|
54
.gitea/workflows/checker.pl
Normal file
54
.gitea/workflows/checker.pl
Normal file
File diff suppressed because one or more lines are too long
82
.gitea/workflows/install_kgcc
Normal file
82
.gitea/workflows/install_kgcc
Normal file
@@ -0,0 +1,82 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
# SPDX-FileCopyrightText: 2025 KolibriOS Team
|
||||||
|
|
||||||
|
# Written by mxlgv (Maxim Logaev)
|
||||||
|
# Installation steps described by maxcodehack (Maxim Kuzmitsky)
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
print_msg(){
|
||||||
|
echo -e "\e[34m$1\e[0m"
|
||||||
|
}
|
||||||
|
|
||||||
|
print_ok(){
|
||||||
|
echo -e "\e[32m$1\e[0m"
|
||||||
|
}
|
||||||
|
|
||||||
|
print_err(){
|
||||||
|
echo -e "\e[31m$1\e[0m"
|
||||||
|
exit
|
||||||
|
}
|
||||||
|
|
||||||
|
check_utils(){
|
||||||
|
printf "%s: " $1
|
||||||
|
if command -v $1 &> /dev/null
|
||||||
|
then
|
||||||
|
print_ok "ok\r"
|
||||||
|
else
|
||||||
|
print_err "no\r"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
print_msg "Checking utilities..."
|
||||||
|
|
||||||
|
check_utils wget
|
||||||
|
check_utils 7z
|
||||||
|
|
||||||
|
print_msg "Create the /home/autobuild folder..."
|
||||||
|
sudo rm -rf ~/autobuild /home/autobuild
|
||||||
|
mkdir -p ~/autobuild/tools
|
||||||
|
sudo ln -sf ~/autobuild /home/autobuild
|
||||||
|
print_ok "Successfully!"
|
||||||
|
|
||||||
|
print_msg "Download the kos32-gcc toolchain..."
|
||||||
|
wget http://ftp.kolibrios.org/users/Serge/new/Toolchain/x86_64-linux-kos32-5.4.0.7z -O ~/autobuild/tools/kos32-toolchain.7z
|
||||||
|
print_ok "Successfully!"
|
||||||
|
|
||||||
|
print_msg "Extracting files ..."
|
||||||
|
cd ~/autobuild/tools/
|
||||||
|
7z x -y kos32-toolchain.7z
|
||||||
|
rm -rf kos32-toolchain.7z
|
||||||
|
print_ok "Successfully!"
|
||||||
|
|
||||||
|
print_msg "Downloading libisl..."
|
||||||
|
cd /tmp
|
||||||
|
sudo wget http://board.kolibrios.org/download/file.php?id=8301libisl.so.10.2.2.7z -O /tmp/libisl.so.10.2.2.7z
|
||||||
|
sudo 7z x -y libisl.so.10.2.2.7z
|
||||||
|
|
||||||
|
if ! [ -d /usr/lib/x86_64-linux-gnu/ ]; then
|
||||||
|
sudo mkdir -p /usr/lib/x86_64-linux-gnu/
|
||||||
|
fi
|
||||||
|
|
||||||
|
print_msg "Fixing libisl..."
|
||||||
|
sudo mv /tmp/libisl.so.10.2.2 /usr/lib/x86_64-linux-gnu/libisl.so.10.2.2
|
||||||
|
sudo ln -sf /usr/lib/x86_64-linux-gnu/libisl.so.10.2.2 /usr/lib/x86_64-linux-gnu/libisl.so.10
|
||||||
|
sudo ln -sf /usr/lib/x86_64-linux-gnu/libisl.so.10.2.2 /usr/lib/libisl.so.10
|
||||||
|
sudo chmod go-w /usr/lib/x86_64-linux-gnu/libisl.so.10
|
||||||
|
sudo chmod go-w /usr/lib/x86_64-linux-gnu/libisl.so.10.2.2
|
||||||
|
print_ok "Successfully!"
|
||||||
|
|
||||||
|
print_msg "Fixing libmpfr..."
|
||||||
|
sudo ln -sf /usr/lib/x86_64-linux-gnu/libmpfr.so.6 /usr/lib/x86_64-linux-gnu/libmpfr.so.4
|
||||||
|
sudo ln -sf /usr/lib/libmpfr.so.6 /usr/lib/libmpfr.so.4
|
||||||
|
print_ok "Successfully!"
|
||||||
|
|
||||||
|
if ! grep -q 'export PATH=$PATH:/home/autobuild/tools/win32/bin' ~/.bashrc; then
|
||||||
|
export PATH=$PATH:/home/autobuild/tools/win32/bin
|
||||||
|
print_msg "Adding '/home/autobuild/tools/win32/bin' to '~/.bashrc'"
|
||||||
|
echo 'export PATH=$PATH:/home/autobuild/tools/win32/bin' >> ~/.bashrc
|
||||||
|
fi
|
||||||
|
print_ok "Installation was successful!"
|
2
.gitignore
vendored
2
.gitignore
vendored
@@ -7,3 +7,5 @@ ehthumbs_vista.db
|
|||||||
### macOS ###
|
### macOS ###
|
||||||
.DS_Store
|
.DS_Store
|
||||||
._*
|
._*
|
||||||
|
programs/cmm/cmm.code-workspace
|
||||||
|
programs/cmm/menu/.gitignore
|
||||||
|
41
CODE_OF_CONDUCT.md
Normal file
41
CODE_OF_CONDUCT.md
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
# Code of Conduct
|
||||||
|
|
||||||
|
__Code of Conduct__ of __KolibriOS__ project
|
||||||
|
|
||||||
|
## Purpose
|
||||||
|
|
||||||
|
The primary goal of our community is to be inclusive of a large number of contributors, with the most varied and diverse backgrounds possible. As such, we are committed to providing a friendly, safe and welcoming environment for all, regardless of gender, ability, ethnicity, socioeconomic status, and religion (or lack thereof)
|
||||||
|
|
||||||
|
This code of conduct outlines our expectations for all those who participate in our community, as well as the consequences for unacceptable behavior
|
||||||
|
|
||||||
|
We invite all those who participate in our community to help us create safe and positive experience for everyone
|
||||||
|
|
||||||
|
## Expected Behavior
|
||||||
|
|
||||||
|
The following behaviors are expected and requested of all community members:
|
||||||
|
|
||||||
|
- Exercise consideration and respect in your speech and actions
|
||||||
|
- Attempt collaboration before conflict
|
||||||
|
- Refrain from demeaning or discriminatory behavior and speech
|
||||||
|
- Be mindful of your surroundings and of your fellow participants
|
||||||
|
|
||||||
|
Also alert community leaders if you notice a dangerous situation, someone in distress, or violations of this *Code of Conduct*, even if they seem inconsequential
|
||||||
|
|
||||||
|
## Unacceptable Behavior
|
||||||
|
|
||||||
|
The following behaviors are considered harassment and are unacceptable within our community:
|
||||||
|
|
||||||
|
- Threats of violence or violent language directed against another person
|
||||||
|
- Posting or displaying sexually explicit material
|
||||||
|
- Personal insults
|
||||||
|
- Deliberate intimidation, stalking or following
|
||||||
|
- Advocating for, or encouraging, any of the above behaviors
|
||||||
|
- Sustained disruption of community events, including talks and presentations
|
||||||
|
|
||||||
|
## Reporting Guidelines
|
||||||
|
|
||||||
|
If you are subject to or witness unacceptable behavior, or have any other concerns, please notify a community organizer as soon as possible
|
||||||
|
|
||||||
|
## Scope
|
||||||
|
|
||||||
|
We expect all community participants (contributors, sponsors and other guests) to abide by this *Code of Conduct* in all community venues as well as in all one-on-one communications pertaining to community business
|
99
CONTRIBUTING.md
Normal file
99
CONTRIBUTING.md
Normal file
@@ -0,0 +1,99 @@
|
|||||||
|
# Contributing guide
|
||||||
|
|
||||||
|
The __KolibriOS__ project __Contributing__ guide
|
||||||
|
|
||||||
|
## Overview
|
||||||
|
|
||||||
|
The process of contributing to the project is described in detail in this document.
|
||||||
|
|
||||||
|
## Code of Conduct
|
||||||
|
|
||||||
|
The first thing to do is to read and follow our [Code of Conduct](./CODE_OF_CONDUCT.md).
|
||||||
|
|
||||||
|
## Type of contributing
|
||||||
|
|
||||||
|
There are two main types of contributions: submitting issues about problems and submitting pull requests. Each of these types of contributions is described in detail below.
|
||||||
|
|
||||||
|
## Issues
|
||||||
|
|
||||||
|
You can help us by submitting issues to repository. At the moment there are 2 main ways of submitting an issue in the project: _bug reports_ and _feature requests_. All existing forms are provided with brief explanations
|
||||||
|
|
||||||
|
- Reports are suitable if you find a __bug__ in some part of the project and want to create a report;
|
||||||
|
- Also there is a possibility submit a __feature request__ if it seems to you that the project lacks any feature.
|
||||||
|
|
||||||
|
## Pull requests
|
||||||
|
|
||||||
|
You can also help us by submitting pull requests. The process of submitting a pull request consists of several steps:
|
||||||
|
|
||||||
|
- Find what you want to implement or improve;
|
||||||
|
- Make a fork (not relevant for owners);
|
||||||
|
- Create a branch with a name that matches your changes;
|
||||||
|
- Make and test the changes;
|
||||||
|
- Create commits according to the [accepted style](##commit-style);
|
||||||
|
- Create and submit a pull request;
|
||||||
|
- Wait for CI/CD pipelines and code review to pass.
|
||||||
|
|
||||||
|
When a pull request is submitted, at least two project participants must conduct a code review, after which the changes are corrected (if it's necessary) and merged into the project.
|
||||||
|
|
||||||
|
## Commit style
|
||||||
|
|
||||||
|
### Naming
|
||||||
|
|
||||||
|
- Pattern
|
||||||
|
|
||||||
|
Regular commit message should consist of several parts and be built according to the following template:
|
||||||
|
|
||||||
|
```test
|
||||||
|
Category: Commit message body
|
||||||
|
|
||||||
|
Long description if necessary
|
||||||
|
```
|
||||||
|
|
||||||
|
- Commit message body and description should briefly reflect the meaning of the commit changes;
|
||||||
|
- Commit message body should be written starting with a capital letter;
|
||||||
|
- Description should be separated from the body by one empty line.
|
||||||
|
|
||||||
|
- Length
|
||||||
|
|
||||||
|
The maximum number of characters in a commit header is __72__ (standard for __Git__). Additionally, __72__ is the maximum length of a line in a commit body.
|
||||||
|
|
||||||
|
- Categories
|
||||||
|
|
||||||
|
List of existing categories accepted in the project:
|
||||||
|
|
||||||
|
- `Krn` - kernel
|
||||||
|
- `Drv` - drivers
|
||||||
|
- `Libs` - libraries
|
||||||
|
- `Skins` - skins
|
||||||
|
- `Build` - build system
|
||||||
|
- `CI/CD` - CI/CD
|
||||||
|
- `Docs` - documentation
|
||||||
|
- `Data` - images, configs, resources, etc.
|
||||||
|
|
||||||
|
List of categories for exceptional situations:
|
||||||
|
|
||||||
|
- `All` - global changes
|
||||||
|
- `Other` - unclassifiable changes
|
||||||
|
|
||||||
|
If changes are made to a specific component, the name of the component separated by `/` character needs to be specified. For example:
|
||||||
|
|
||||||
|
```text
|
||||||
|
Apps/shell
|
||||||
|
Libs/libimg
|
||||||
|
```
|
||||||
|
|
||||||
|
### Merge commits
|
||||||
|
|
||||||
|
Merge commits are __prohibited__ in the project
|
||||||
|
|
||||||
|
### Unwanted commits
|
||||||
|
|
||||||
|
Commit messages like `Refactoring`/`Update files` are __unwanted__ in the project
|
||||||
|
|
||||||
|
### Signing
|
||||||
|
|
||||||
|
This is not a requirement, but it is strongly recommended to sign commits. This can be done by the following command:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
git commit -s
|
||||||
|
```
|
22
README.md
Normal file
22
README.md
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
# KolibriOS
|
||||||
|
|
||||||
|
[](./COPYING.TXT)
|
||||||
|
[](https://git.kolibrios.org/KolibriOS/kolibrios/actions/workflows/build.yaml)
|
||||||
|
|
||||||
|
KolibriOS is a hobby operating system for x86-compatible computers, its kernel is written entirely in [Fasm](https://flatassembler.net/) assembly language. Based on [MenuetOS](https://www.menuetos.net/), it uses its own standards and is not fully POSIX or UNIX compliant
|
||||||
|
|
||||||
|
## Contributing
|
||||||
|
|
||||||
|
Detailed instructions for the contribution process can be found in the [contributing guide](./CONTRIBUTING.md)
|
||||||
|
|
||||||
|
Also there is an accepted [code of conduct](./CODE_OF_CONDUCT.md) in the project
|
||||||
|
|
||||||
|
Common list of project tasks is located on [this page](https://git.kolibrios.org/KolibriOS/kolibrios/issues).
|
||||||
|
|
||||||
|
## Special thanks
|
||||||
|
|
||||||
|
The KolibriOS team expresses special thanks to the author of the 32-bit __MenuetOS__, [Ville Turjanmaa](https://www.menuetos.net/contact.htm). We also want to note that all __MenuetOS__ copyrights have been preserved
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
Contents of this repository are licensed under the terms of __GNU GPL 2.0__ unless otherwise specified. See [this](COPYING.TXT) file for details
|
164
data/Tupfile.lua
164
data/Tupfile.lua
@@ -38,7 +38,7 @@ img_files = {
|
|||||||
{"UNIMG", SRC_PROGS .. "/fs/unimg/unimg"},
|
{"UNIMG", SRC_PROGS .. "/fs/unimg/unimg"},
|
||||||
{"3D/HOUSE.3DS", "common/3d/house.3ds"},
|
{"3D/HOUSE.3DS", "common/3d/house.3ds"},
|
||||||
{"File Managers/ICONS.INI", "common/File Managers/icons.ini"},
|
{"File Managers/ICONS.INI", "common/File Managers/icons.ini"},
|
||||||
{"GAMES/FLPYBIRD", SRC_PROGS .. "/games/flappybird/Release/flappybird"},
|
{"GAMES/FLPYBIRD", SRC_PROGS .. "/games/floppybird/Release/floppybird"},
|
||||||
{"FONTS/TAHOMA.KF", "common/fonts/tahoma.kf"},
|
{"FONTS/TAHOMA.KF", "common/fonts/tahoma.kf"},
|
||||||
-- {"LIB/ICONV.OBJ", "common/lib/iconv.obj"},
|
-- {"LIB/ICONV.OBJ", "common/lib/iconv.obj"},
|
||||||
{"LIB/KMENU.OBJ", "common/lib/kmenu.obj"},
|
{"LIB/KMENU.OBJ", "common/lib/kmenu.obj"},
|
||||||
@@ -139,7 +139,7 @@ a named subitem "group=path/<groupname>" and the file should be put in <groupnam
|
|||||||
--]]
|
--]]
|
||||||
extra_files = {
|
extra_files = {
|
||||||
{"/", "common/distr_data/autorun.inf"},
|
{"/", "common/distr_data/autorun.inf"},
|
||||||
{"/", "common/distr_data/KolibriOS_icon.ico"},
|
{"/", "common/distr_data/kolibrios.ico"},
|
||||||
{"Docs/stack.txt", "../kernel/trunk/docs/stack.txt"},
|
{"Docs/stack.txt", "../kernel/trunk/docs/stack.txt"},
|
||||||
{"HD_Load/9x2klbr/", "common/HD_load/9x2klbr/LDKLBR.VXD"},
|
{"HD_Load/9x2klbr/", "common/HD_load/9x2klbr/LDKLBR.VXD"},
|
||||||
{"HD_Load/MeOSLoad/", SRC_PROGS .. "/hd_load/meosload/AUTOEXEC.BAT"},
|
{"HD_Load/MeOSLoad/", SRC_PROGS .. "/hd_load/meosload/AUTOEXEC.BAT"},
|
||||||
@@ -180,7 +180,6 @@ extra_files = {
|
|||||||
{"kolibrios/develop/c--/manual_c--.htm", SRC_PROGS .. "/cmm/c--/manual_c--.htm"},
|
{"kolibrios/develop/c--/manual_c--.htm", SRC_PROGS .. "/cmm/c--/manual_c--.htm"},
|
||||||
{"kolibrios/develop/fpc/", "common/develop/fpc/*"},
|
{"kolibrios/develop/fpc/", "common/develop/fpc/*"},
|
||||||
{"kolibrios/develop/fpc/examples/", "../programs/develop/fp/examples/src/*"},
|
{"kolibrios/develop/fpc/examples/", "../programs/develop/fp/examples/src/*"},
|
||||||
{"kolibrios/develop/fpc/examples/build.sh", "common/develop/fpc/build.sh"},
|
|
||||||
{"kolibrios/develop/oberon07/", "../programs/develop/oberon07/*"},
|
{"kolibrios/develop/oberon07/", "../programs/develop/oberon07/*"},
|
||||||
{"kolibrios/develop/oberon07/doc/", "../programs/develop/oberon07/doc/*"},
|
{"kolibrios/develop/oberon07/doc/", "../programs/develop/oberon07/doc/*"},
|
||||||
{"kolibrios/develop/oberon07/lib/KolibriOS/", "../programs/develop/oberon07/lib/KolibriOS/*"},
|
{"kolibrios/develop/oberon07/lib/KolibriOS/", "../programs/develop/oberon07/lib/KolibriOS/*"},
|
||||||
@@ -311,20 +310,20 @@ extra_files = {
|
|||||||
{"kolibrios/utils/tedit/info/INI.SYN", VAR_PROGS .. "/other/t_edit/info/ini_files.syn"},
|
{"kolibrios/utils/tedit/info/INI.SYN", VAR_PROGS .. "/other/t_edit/info/ini_files.syn"},
|
||||||
}
|
}
|
||||||
if build_type == "ru_RU" then tup.append_table(extra_files, {
|
if build_type == "ru_RU" then tup.append_table(extra_files, {
|
||||||
{"Docs/cp866/config.txt", build_type .. "/docs/CONFIG.TXT"},
|
{"Docs/cp866/Config.txt", build_type .. "/docs/Config.txt"},
|
||||||
{"Docs/cp866/gnu.txt", build_type .. "/docs/GNU.TXT"},
|
{"Docs/cp866/Copying.txt", build_type .. "/docs/Copying.txt"},
|
||||||
{"Docs/cp866/history.txt", build_type .. "/docs/HISTORY.TXT"},
|
{"Docs/cp866/History.txt", build_type .. "/docs/History.txt"},
|
||||||
{"Docs/cp866/hot_keys.txt", build_type .. "/docs/HOT_KEYS.TXT"},
|
{"Docs/cp866/Hot_Keys.txt", build_type .. "/docs/Hot_Keys.txt"},
|
||||||
{"Docs/cp866/install.txt", build_type .. "/docs/INSTALL.TXT"},
|
{"Docs/cp866/Install.txt", build_type .. "/docs/Install.txt"},
|
||||||
{"Docs/cp866/credits.txt", build_type .. "/docs/CREDITS.TXT"},
|
{"Docs/cp866/Credits.txt", build_type .. "/docs/Credits.txt"},
|
||||||
{"Docs/cp866/sysfuncr.txt", VAR_PROGS .. "/system/docpack/trunk/SYSFUNCR.TXT"},
|
{"Docs/cp866/SysFuncr.txt", VAR_PROGS .. "/system/docpack/trunk/SysFuncr.txt"},
|
||||||
{"Docs/cp1251/config.txt", VAR_DATA .. "/" .. build_type .. "/docs/CONFIG.WIN.TXT", cp1251_from = build_type .. "/docs/CONFIG.TXT"},
|
{"Docs/cp1251/Config.txt", VAR_DATA .. "/" .. build_type .. "/docs/CONFIG.WIN.TXT", cp1251_from = build_type .. "/docs/Config.txt"},
|
||||||
{"Docs/cp1251/gnu.txt", "$(VAR_DATA)/$(build_type)/docs/GNU.WIN.TXT", cp1251_from = build_type .. "/docs/GNU.TXT"},
|
{"Docs/cp1251/Copying.txt", "$(VAR_DATA)/$(build_type)/docs/COPYING.WIN.TXT", cp1251_from = build_type .. "/docs/Copying.txt"},
|
||||||
{"Docs/cp1251/history.txt", "$(VAR_DATA)/$(build_type)/docs/HISTORY.WIN.TXT", cp1251_from = build_type .. "/docs/HISTORY.TXT"},
|
{"Docs/cp1251/History.txt", "$(VAR_DATA)/$(build_type)/docs/HISTORY.WIN.TXT", cp1251_from = build_type .. "/docs/History.txt"},
|
||||||
{"Docs/cp1251/hot_keys.txt", "$(VAR_DATA)/$(build_type)/docs/HOT_KEYS.WIN.TXT", cp1251_from = build_type .. "/docs/HOT_KEYS.TXT"},
|
{"Docs/cp1251/Hot_Keys.txt", "$(VAR_DATA)/$(build_type)/docs/HOT_KEYS.WIN.TXT", cp1251_from = build_type .. "/docs/Hot_Keys.txt"},
|
||||||
{"Docs/cp1251/install.txt", "$(VAR_DATA)/$(build_type)/docs/INSTALL.WIN.TXT", cp1251_from = build_type .. "/docs/INSTALL.TXT"},
|
{"Docs/cp1251/Install.txt", "$(VAR_DATA)/$(build_type)/docs/INSTALL.WIN.TXT", cp1251_from = build_type .. "/docs/Install.txt"},
|
||||||
{"Docs/cp1251/credits.txt", "$(VAR_DATA)/$(build_type)/docs/CREDITS.WIN.TXT", cp1251_from = build_type .. "/docs/CREDITS.TXT"},
|
{"Docs/cp1251/credits.txt", "$(VAR_DATA)/$(build_type)/docs/CREDITS.WIN.TXT", cp1251_from = build_type .. "/docs/Credits.txt"},
|
||||||
{"Docs/cp1251/sysfuncr.txt", "$(VAR_DATA)/$(build_type)/docs/SYSFUNCR.WIN.TXT", cp1251_from = SRC_PROGS .. "/system/docpack/trunk/SYSFUNCR.TXT"},
|
{"Docs/cp1251/SysFuncr.txt", "$(VAR_DATA)/$(build_type)/docs/SYSFUNCR.WIN.TXT", cp1251_from = SRC_PROGS .. "/system/docpack/trunk/SysFuncr.txt"},
|
||||||
{"HD_Load/9x2klbr/", SRC_PROGS .. "/hd_load/9x2klbr/readme_dos.txt"},
|
{"HD_Load/9x2klbr/", SRC_PROGS .. "/hd_load/9x2klbr/readme_dos.txt"},
|
||||||
{"HD_Load/9x2klbr/", SRC_PROGS .. "/hd_load/9x2klbr/readme_win.txt"},
|
{"HD_Load/9x2klbr/", SRC_PROGS .. "/hd_load/9x2klbr/readme_win.txt"},
|
||||||
{"HD_Load/mtldr/", SRC_PROGS .. "/hd_load/mtldr/install.txt"},
|
{"HD_Load/mtldr/", SRC_PROGS .. "/hd_load/mtldr/install.txt"},
|
||||||
@@ -342,12 +341,12 @@ if build_type == "ru_RU" then tup.append_table(extra_files, {
|
|||||||
{"kolibrios/res/guide/", build_type .. "/docs/guide/*"},
|
{"kolibrios/res/guide/", build_type .. "/docs/guide/*"},
|
||||||
{"kolibrios/develop/tcc/doc/", SRC_PROGS .. "/develop/ktcc/trunk/bin/doc/ru/*"},
|
{"kolibrios/develop/tcc/doc/", SRC_PROGS .. "/develop/ktcc/trunk/bin/doc/ru/*"},
|
||||||
}) else tup.append_table(extra_files, {
|
}) else tup.append_table(extra_files, {
|
||||||
{"Docs/config.txt", build_type .. "/docs/CONFIG.TXT"},
|
{"Docs/Config.txt", build_type .. "/docs/Config.txt"},
|
||||||
{"Docs/copying.txt", build_type .. "/docs/COPYING.TXT"},
|
{"Docs/Copying.txt", build_type .. "/docs/Copying.txt"},
|
||||||
{"Docs/hot_keys.txt", build_type .. "/docs/HOT_KEYS.TXT"},
|
{"Docs/Hot_Keys.txt", build_type .. "/docs/Hot_Keys.txt"},
|
||||||
{"Docs/install.txt", build_type .. "/docs/INSTALL.TXT"},
|
{"Docs/Install.txt", build_type .. "/docs/Install.txt"},
|
||||||
{"Docs/credits.txt", build_type .. "/docs/CREDITS.TXT"},
|
{"Docs/Credits.txt", build_type .. "/docs/Credits.txt"},
|
||||||
{"Docs/sysfuncs.txt", VAR_PROGS .. "/system/docpack/trunk/SYSFUNCS.TXT"},
|
{"Docs/SysFuncs.txt", VAR_PROGS .. "/system/docpack/trunk/SysFuncs.txt"},
|
||||||
{"HD_Load/9x2klbr/", SRC_PROGS .. "/hd_load/9x2klbr/readme.txt"},
|
{"HD_Load/9x2klbr/", SRC_PROGS .. "/hd_load/9x2klbr/readme.txt"},
|
||||||
{"HD_Load/mtldr/install.txt", SRC_PROGS .. "/hd_load/mtldr/install_eng.txt"},
|
{"HD_Load/mtldr/install.txt", SRC_PROGS .. "/hd_load/mtldr/install_eng.txt"},
|
||||||
{"HD_Load/USB_Boot/readme.txt", SRC_PROGS .. "/hd_load/usb_boot/readme_eng.txt"},
|
{"HD_Load/USB_Boot/readme.txt", SRC_PROGS .. "/hd_load/usb_boot/readme_eng.txt"},
|
||||||
@@ -370,6 +369,9 @@ distr_extra_files = {
|
|||||||
{"/readme.txt", build_type .. "/distr_data/readme_distr.txt"},
|
{"/readme.txt", build_type .. "/distr_data/readme_distr.txt"},
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
tup.append_table(distr_extra_files, {
|
||||||
|
{"distribution_kit/kolibri.img", VAR_DATA .. "/kolibri.img"},
|
||||||
|
})
|
||||||
--[[
|
--[[
|
||||||
Files to be included in kolibri.iso outside of kolibri.img, but not distribution kit.
|
Files to be included in kolibri.iso outside of kolibri.img, but not distribution kit.
|
||||||
Same syntax as extra_files.
|
Same syntax as extra_files.
|
||||||
@@ -384,6 +386,12 @@ iso_extra_files = {
|
|||||||
{"/readme.txt", build_type .. "/distr_data/readme.txt"},
|
{"/readme.txt", build_type .. "/distr_data/readme.txt"},
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
tup.append_table(iso_extra_files, {
|
||||||
|
-- files for native CD boot
|
||||||
|
{"cdboot.bin", VAR_KERNEL .. "/bootloader/extended_primary_loader/cdfs/bootsect.bin"},
|
||||||
|
{"kernel.mnt", VAR_KERNEL .. "/kernel.mnt.ext_loader"},
|
||||||
|
{"kolibri.img", VAR_DATA .. "/kolibri.img"},
|
||||||
|
})
|
||||||
|
|
||||||
-- Programs that require FASM to compile.
|
-- Programs that require FASM to compile.
|
||||||
if tup.getconfig('NO_FASM') ~= 'full' then
|
if tup.getconfig('NO_FASM') ~= 'full' then
|
||||||
@@ -399,6 +407,7 @@ tup.append_table(img_files, {
|
|||||||
{"@SS", VAR_PROGS .. "/system/scrsaver/scrsaver"},
|
{"@SS", VAR_PROGS .. "/system/scrsaver/scrsaver"},
|
||||||
{"@VOLUME", VAR_PROGS .. "/media/volume/volume"},
|
{"@VOLUME", VAR_PROGS .. "/media/volume/volume"},
|
||||||
{"HACONFIG", VAR_PROGS .. "/other/ha/HACONFIG"},
|
{"HACONFIG", VAR_PROGS .. "/other/ha/HACONFIG"},
|
||||||
|
{"ACLOCK", VAR_PROGS .. "/demos/aclock/aclock"},
|
||||||
{"APM", VAR_PROGS .. "/system/apm/apm"},
|
{"APM", VAR_PROGS .. "/system/apm/apm"},
|
||||||
{"CALC", VAR_PROGS .. "/other/calc/trunk/calc"},
|
{"CALC", VAR_PROGS .. "/other/calc/trunk/calc"},
|
||||||
{"CALENDAR", VAR_PROGS .. "/system/calendar/trunk/calendar"},
|
{"CALENDAR", VAR_PROGS .. "/system/calendar/trunk/calendar"},
|
||||||
@@ -433,6 +442,8 @@ tup.append_table(img_files, {
|
|||||||
{"TERMINAL", VAR_PROGS .. "/system/terminal/terminal"},
|
{"TERMINAL", VAR_PROGS .. "/system/terminal/terminal"},
|
||||||
{"TEST", VAR_PROGS .. "/testing/protection/trunk/test"},
|
{"TEST", VAR_PROGS .. "/testing/protection/trunk/test"},
|
||||||
{"TINYPAD", VAR_PROGS .. "/develop/tinypad/trunk/tinypad"},
|
{"TINYPAD", VAR_PROGS .. "/develop/tinypad/trunk/tinypad"},
|
||||||
|
{"TINFO", VAR_PROGS .. "/system/tinfo/tinfo"},
|
||||||
|
{"TIMER", VAR_PROGS .. "/other/Timer/Timer"},
|
||||||
{"UNZ", VAR_PROGS .. "/fs/unz/unz"},
|
{"UNZ", VAR_PROGS .. "/fs/unz/unz"},
|
||||||
{"ZKEY", VAR_PROGS .. "/system/zkey/trunk/ZKEY"},
|
{"ZKEY", VAR_PROGS .. "/system/zkey/trunk/ZKEY"},
|
||||||
{"3D/3DWAV", VAR_PROGS .. "/demos/3dwav/trunk/3dwav"},
|
{"3D/3DWAV", VAR_PROGS .. "/demos/3dwav/trunk/3dwav"},
|
||||||
@@ -455,16 +466,18 @@ tup.append_table(img_files, {
|
|||||||
{"DEMOS/UNVWATER", VAR_PROGS .. "/demos/unvwater/trunk/unvwater"},
|
{"DEMOS/UNVWATER", VAR_PROGS .. "/demos/unvwater/trunk/unvwater"},
|
||||||
{"DEMOS/WEB", VAR_PROGS .. "/demos/web/trunk/web"},
|
{"DEMOS/WEB", VAR_PROGS .. "/demos/web/trunk/web"},
|
||||||
{"DEMOS/ZEROLINE", VAR_PROGS .. "/demos/zeroline/trunk/zeroline"},
|
{"DEMOS/ZEROLINE", VAR_PROGS .. "/demos/zeroline/trunk/zeroline"},
|
||||||
{"DEVELOP/ASCIIVJU", VAR_PROGS .. "/develop/asciivju/trunk/asciivju"},
|
|
||||||
{"DEVELOP/BOARD", VAR_PROGS .. "/system/board/trunk/board"},
|
{"DEVELOP/BOARD", VAR_PROGS .. "/system/board/trunk/board"},
|
||||||
|
{"DEVELOP/DBGBOARD", VAR_PROGS .. "/system/dbgboard/dbgboard"},
|
||||||
{"DEVELOP/CEDIT", SRC_PROGS .. "/develop/cedit/CEDIT"},
|
{"DEVELOP/CEDIT", SRC_PROGS .. "/develop/cedit/CEDIT"},
|
||||||
|
{"DEVELOP/CHARSETS", VAR_PROGS .. "/develop/charsets/charsets"},
|
||||||
{"DEVELOP/COBJ", VAR_PROGS .. "/develop/cObj/trunk/cObj"},
|
{"DEVELOP/COBJ", VAR_PROGS .. "/develop/cObj/trunk/cObj"},
|
||||||
{"DEVELOP/ENTROPYV", VAR_PROGS .. "/develop/entropyview/entropyview"},
|
{"DEVELOP/ENTROPYV", VAR_PROGS .. "/develop/entropyview/entropyview"},
|
||||||
{"DEVELOP/FASM", VAR_PROGS .. "/develop/fasm/1.73/fasm"},
|
{"DEVELOP/FASM", VAR_PROGS .. "/develop/fasm/1.73/fasm"},
|
||||||
|
{"DEVELOP/GENFILES", VAR_PROGS .. "/testing/genfiles/GenFiles"},
|
||||||
{"DEVELOP/H2D2B", VAR_PROGS .. "/develop/h2d2b/trunk/h2d2b"},
|
{"DEVELOP/H2D2B", VAR_PROGS .. "/develop/h2d2b/trunk/h2d2b"},
|
||||||
{"DEVELOP/HEED", VAR_PROGS .. "/develop/heed/trunk/heed"},
|
{"DEVELOP/HEED", VAR_PROGS .. "/develop/heed/trunk/heed"},
|
||||||
{"DEVELOP/KEYASCII", VAR_PROGS .. "/develop/keyascii/trunk/keyascii"},
|
|
||||||
{"DEVELOP/MTDBG", VAR_PROGS .. "/develop/mtdbg/mtdbg"},
|
{"DEVELOP/MTDBG", VAR_PROGS .. "/develop/mtdbg/mtdbg"},
|
||||||
|
{"DEVELOP/MSTATE", VAR_PROGS .. "/develop/mstate/mstate"},
|
||||||
{"DEVELOP/SCANCODE", VAR_PROGS .. "/develop/scancode/trunk/scancode"},
|
{"DEVELOP/SCANCODE", VAR_PROGS .. "/develop/scancode/trunk/scancode"},
|
||||||
{"DEVELOP/EXAMPLES/CIRCLE", VAR_PROGS .. "/develop/examples/circle/trunk/circle"},
|
{"DEVELOP/EXAMPLES/CIRCLE", VAR_PROGS .. "/develop/examples/circle/trunk/circle"},
|
||||||
{"DEVELOP/EXAMPLES/COLORREF", VAR_PROGS .. "/demos/colorref/trunk/colorref"},
|
{"DEVELOP/EXAMPLES/COLORREF", VAR_PROGS .. "/demos/colorref/trunk/colorref"},
|
||||||
@@ -474,21 +487,23 @@ tup.append_table(img_files, {
|
|||||||
{"DEVELOP/EXAMPLES/USE_MB", VAR_PROGS .. "/demos/use_mb/use_mb"},
|
{"DEVELOP/EXAMPLES/USE_MB", VAR_PROGS .. "/demos/use_mb/use_mb"},
|
||||||
{"File Managers/KFAR", VAR_PROGS .. "/fs/kfar/trunk/kfar"},
|
{"File Managers/KFAR", VAR_PROGS .. "/fs/kfar/trunk/kfar"},
|
||||||
{"File Managers/OPENDIAL", VAR_PROGS .. "/fs/opendial/opendial"},
|
{"File Managers/OPENDIAL", VAR_PROGS .. "/fs/opendial/opendial"},
|
||||||
{"GAMES/15", VAR_PROGS .. "/games/15/trunk/15"},
|
{"LOD", VAR_PROGS .. "/fs/lod/lod"},
|
||||||
|
{"GAMES/15", VAR_PROGS .. "/games/15/15"},
|
||||||
{"GAMES/FREECELL", VAR_PROGS .. "/games/freecell/freecell"},
|
{"GAMES/FREECELL", VAR_PROGS .. "/games/freecell/freecell"},
|
||||||
{"GAMES/GOMOKU", VAR_PROGS .. "/games/gomoku/trunk/gomoku"},
|
{"GAMES/GOMOKU", VAR_PROGS .. "/games/gomoku/gomoku"},
|
||||||
{"GAMES/LIGHTS", VAR_PROGS .. "/games/sq_game/trunk/SQ_GAME"},
|
{"GAMES/LIGHTS", VAR_PROGS .. "/games/sq_game/SQ_GAME"},
|
||||||
{"GAMES/LINES", VAR_PROGS .. "/games/lines/lines"},
|
{"GAMES/LINES", VAR_PROGS .. "/games/lines/lines"},
|
||||||
{"GAMES/MSQUARE", VAR_PROGS .. "/games/MSquare/trunk/MSquare"},
|
{"GAMES/MSQUARE", VAR_PROGS .. "/games/MSquare/MSquare"},
|
||||||
{"GAMES/PIPES", VAR_PROGS .. "/games/pipes/pipes"},
|
{"GAMES/PIPES", VAR_PROGS .. "/games/pipes/pipes"},
|
||||||
{"GAMES/PONG", VAR_PROGS .. "/games/pong/trunk/pong"},
|
{"GAMES/PONG", VAR_PROGS .. "/games/pong/pong"},
|
||||||
{"GAMES/PONG3", VAR_PROGS .. "/games/pong3/trunk/pong3"},
|
{"GAMES/PONG3", VAR_PROGS .. "/games/pong3/pong3"},
|
||||||
{"GAMES/RSQUARE", VAR_PROGS .. "/games/rsquare/trunk/rsquare"},
|
{"GAMES/RSQUARE", VAR_PROGS .. "/games/rsquare/rsquare"},
|
||||||
{"GAMES/SNAKE", VAR_PROGS .. "/games/snake/trunk/snake"},
|
{"GAMES/SNAKE", VAR_PROGS .. "/games/snake/snake"},
|
||||||
{"GAMES/SUDOKU", VAR_PROGS .. "/games/sudoku/trunk/sudoku"},
|
{"GAMES/SUDOKU", VAR_PROGS .. "/games/sudoku/sudoku"},
|
||||||
{"GAMES/SW", VAR_PROGS .. "/games/sw/trunk/sw"},
|
{"GAMES/SW", VAR_PROGS .. "/games/sw/sw"},
|
||||||
{"GAMES/TANKS", VAR_PROGS .. "/games/tanks/trunk/tanks"},
|
{"GAMES/TANKS", VAR_PROGS .. "/games/tanks/tanks"},
|
||||||
{"GAMES/TETRIS", VAR_PROGS .. "/games/tetris/trunk/tetris"},
|
{"GAMES/TETRIS", VAR_PROGS .. "/games/tetris/tetris"},
|
||||||
|
{"GAMES/C4", VAR_PROGS .. "/games/c4/c4"},
|
||||||
{"LIB/ARCHIVER.OBJ", VAR_PROGS .. "/fs/kfar/trunk/kfar_arc/kfar_arc.obj"},
|
{"LIB/ARCHIVER.OBJ", VAR_PROGS .. "/fs/kfar/trunk/kfar_arc/kfar_arc.obj"},
|
||||||
{"LIB/BOX_LIB.OBJ", VAR_PROGS .. "/develop/libraries/box_lib/trunk/box_lib.obj"},
|
{"LIB/BOX_LIB.OBJ", VAR_PROGS .. "/develop/libraries/box_lib/trunk/box_lib.obj"},
|
||||||
{"LIB/BUF2D.OBJ", VAR_PROGS .. "/develop/libraries/buf2d/trunk/buf2d.obj"},
|
{"LIB/BUF2D.OBJ", VAR_PROGS .. "/develop/libraries/buf2d/trunk/buf2d.obj"},
|
||||||
@@ -508,6 +523,7 @@ tup.append_table(img_files, {
|
|||||||
{"LIB/SORT.OBJ", VAR_PROGS .. "/develop/libraries/sorter/sort.obj"},
|
{"LIB/SORT.OBJ", VAR_PROGS .. "/develop/libraries/sorter/sort.obj"},
|
||||||
{"LIB/TINYGL.OBJ", VAR_PROGS .. "/develop/libraries/TinyGL/asm_fork/tinygl.obj"},
|
{"LIB/TINYGL.OBJ", VAR_PROGS .. "/develop/libraries/TinyGL/asm_fork/tinygl.obj"},
|
||||||
{"MEDIA/ANIMAGE", VAR_PROGS .. "/media/animage/trunk/animage"},
|
{"MEDIA/ANIMAGE", VAR_PROGS .. "/media/animage/trunk/animage"},
|
||||||
|
{"MEDIA/FILLSCR", VAR_PROGS .. "/media/FillScr/fillscr"},
|
||||||
{"MEDIA/KIV", VAR_PROGS .. "/media/kiv/trunk/kiv"},
|
{"MEDIA/KIV", VAR_PROGS .. "/media/kiv/trunk/kiv"},
|
||||||
{"MEDIA/LISTPLAY", VAR_PROGS .. "/media/listplay/trunk/listplay"},
|
{"MEDIA/LISTPLAY", VAR_PROGS .. "/media/listplay/trunk/listplay"},
|
||||||
{"MEDIA/MIDAMP", VAR_PROGS .. "/media/midamp/trunk/midamp"},
|
{"MEDIA/MIDAMP", VAR_PROGS .. "/media/midamp/trunk/midamp"},
|
||||||
@@ -587,20 +603,20 @@ tup.append_table(extra_files, {
|
|||||||
{"kolibrios/3D/voxel_utilites/VOX_CREATOR" , VAR_PROGS .. "/media/voxel_editor/utilites/vox_creator"},
|
{"kolibrios/3D/voxel_utilites/VOX_CREATOR" , VAR_PROGS .. "/media/voxel_editor/utilites/vox_creator"},
|
||||||
{"kolibrios/3D/voxel_utilites/VOX_MOVER" , VAR_PROGS .. "/media/voxel_editor/utilites/vox_mover"},
|
{"kolibrios/3D/voxel_utilites/VOX_MOVER" , VAR_PROGS .. "/media/voxel_editor/utilites/vox_mover"},
|
||||||
{"kolibrios/3D/voxel_utilites/VOX_TGL" , VAR_PROGS .. "/media/voxel_editor/utilites/vox_tgl"},
|
{"kolibrios/3D/voxel_utilites/VOX_TGL" , VAR_PROGS .. "/media/voxel_editor/utilites/vox_tgl"},
|
||||||
{"kolibrios/demos/life3", VAR_PROGS .. "/games/life3/trunk/life3"},
|
{"kolibrios/demos/life3", VAR_PROGS .. "/games/life3/life3"},
|
||||||
{"kolibrios/demos/qjulia", VAR_PROGS .. "/demos/qjulia/trunk/qjulia"},
|
{"kolibrios/demos/qjulia", VAR_PROGS .. "/demos/qjulia/trunk/qjulia"},
|
||||||
{"kolibrios/develop/utils/koldbg", VAR_PROGS .. "/develop/koldbg/koldbg"},
|
{"kolibrios/develop/koldbg", VAR_PROGS .. "/develop/koldbg/koldbg"},
|
||||||
{"kolibrios/games/Almaz", VAR_PROGS .. "/games/almaz/almaz"},
|
{"kolibrios/games/Almaz", VAR_PROGS .. "/games/almaz/almaz"},
|
||||||
{"kolibrios/games/arcanii", VAR_PROGS .. "/games/arcanii/trunk/arcanii"},
|
{"kolibrios/games/arcanii", VAR_PROGS .. "/games/arcanii/arcanii"},
|
||||||
{"kolibrios/games/bomber/bomber", VAR_PROGS .. "/games/bomber/bomber"},
|
{"kolibrios/games/bomber/bomber", VAR_PROGS .. "/games/bomber/bomber"},
|
||||||
{"kolibrios/games/bomber/bomberdata.bin", VAR_PROGS .. "/games/bomber/sounds/bomberdata.bin"},
|
{"kolibrios/games/bomber/bomberdata.bin", VAR_PROGS .. "/games/bomber/sounds/bomberdata.bin"},
|
||||||
{"kolibrios/games/codemaster/binary_master", VAR_PROGS .. "/games/codemaster/binary_master"},
|
{"kolibrios/games/codemaster/binary_master", VAR_PROGS .. "/games/codemaster/binary_master"},
|
||||||
{"kolibrios/games/codemaster/hang_programmer", VAR_PROGS .. "/games/codemaster/hang_programmer"},
|
{"kolibrios/games/codemaster/hang_programmer", VAR_PROGS .. "/games/codemaster/hang_programmer"},
|
||||||
{"kolibrios/games/codemaster/kolibri_puzzle", VAR_PROGS .. "/games/codemaster/kolibri_puzzle"},
|
{"kolibrios/games/codemaster/kolibri_puzzle", VAR_PROGS .. "/games/codemaster/kolibri_puzzle"},
|
||||||
{"kolibrios/games/megamaze", VAR_PROGS .. "/games/megamaze/trunk/megamaze"},
|
{"kolibrios/games/megamaze", VAR_PROGS .. "/games/megamaze/megamaze"},
|
||||||
{"kolibrios/games/invaders", VAR_PROGS .. "/games/invaders/invaders"},
|
{"kolibrios/games/invaders", VAR_PROGS .. "/games/invaders/invaders"},
|
||||||
{"kolibrios/games/phenix", VAR_PROGS .. "/games/phenix/trunk/phenix"},
|
{"kolibrios/games/phenix", VAR_PROGS .. "/games/phenix/phenix"},
|
||||||
{"kolibrios/games/soko/soko", VAR_PROGS .. "/games/soko/trunk/SOKO"},
|
{"kolibrios/games/soko/soko", VAR_PROGS .. "/games/soko/SOKO"},
|
||||||
{"kolibrios/media/img_transform", VAR_PROGS .. "/media/img_transform/img_transform"},
|
{"kolibrios/media/img_transform", VAR_PROGS .. "/media/img_transform/img_transform"},
|
||||||
{"kolibrios/media/zsea/zsea", VAR_PROGS .. "/media/zsea/zSea"},
|
{"kolibrios/media/zsea/zsea", VAR_PROGS .. "/media/zsea/zSea"},
|
||||||
{"kolibrios/media/zsea/plugins/cnv_bmp.obj", VAR_PROGS .. "/media/zsea/plugins/bmp/cnv_bmp.obj"},
|
{"kolibrios/media/zsea/plugins/cnv_bmp.obj", VAR_PROGS .. "/media/zsea/plugins/bmp/cnv_bmp.obj"},
|
||||||
@@ -617,7 +633,7 @@ tup.append_table(extra_files, {
|
|||||||
-- For russian build, add russian-only programs.
|
-- For russian build, add russian-only programs.
|
||||||
if build_type == "ru_RU" then tup.append_table(img_files, {
|
if build_type == "ru_RU" then tup.append_table(img_files, {
|
||||||
{"PERIOD", VAR_PROGS .. "/other/period/trunk/period"},
|
{"PERIOD", VAR_PROGS .. "/other/period/trunk/period"},
|
||||||
{"GAMES/KLAVISHA", VAR_PROGS .. "/games/klavisha/trunk/klavisha"},
|
{"GAMES/KLAVISHA", VAR_PROGS .. "/games/klavisha/klavisha"},
|
||||||
{"DEVELOP/EXAMPLES/TESTCON2", VAR_PROGS .. "/develop/libraries/console_coff/examples/testcon2_rus"},
|
{"DEVELOP/EXAMPLES/TESTCON2", VAR_PROGS .. "/develop/libraries/console_coff/examples/testcon2_rus"},
|
||||||
}) else tup.append_table(img_files, {
|
}) else tup.append_table(img_files, {
|
||||||
{"DEVELOP/TESTCON2", VAR_PROGS .. "/develop/libraries/console_coff/examples/testcon2_eng"},
|
{"DEVELOP/TESTCON2", VAR_PROGS .. "/develop/libraries/console_coff/examples/testcon2_eng"},
|
||||||
@@ -629,22 +645,6 @@ if build_type == "ru_RU" then tup.append_table(extra_files, {
|
|||||||
|
|
||||||
end -- tup.getconfig('NO_FASM') ~= 'full'
|
end -- tup.getconfig('NO_FASM') ~= 'full'
|
||||||
|
|
||||||
-- Programs that require NASM to compile.
|
|
||||||
if tup.getconfig('NO_NASM') ~= 'full' then
|
|
||||||
tup.append_table(img_files, {
|
|
||||||
{"ACLOCK", VAR_PROGS .. "/demos/aclock/trunk/aclock"},
|
|
||||||
{"LOD", VAR_PROGS .. "/fs/lod/lod"},
|
|
||||||
{"TIMER", VAR_PROGS .. "/other/Timer/timer"},
|
|
||||||
{"TINFO", VAR_PROGS .. "/system/tinfo/tinfo"},
|
|
||||||
{"DEVELOP/MSTATE", VAR_PROGS .. "/develop/mstate/mstate"},
|
|
||||||
{"DEVELOP/GENFILES", VAR_PROGS .. "/testing/genfiles/GenFiles"},
|
|
||||||
{"GAMES/C4", VAR_PROGS .. "/games/c4/trunk/c4"},
|
|
||||||
{"MEDIA/FILLSCR", VAR_PROGS .. "/media/FillScr/fillscr"},
|
|
||||||
})
|
|
||||||
tup.append_table(extra_files, {
|
|
||||||
})
|
|
||||||
end -- tup.getconfig('NO_NASM') ~= 'full'
|
|
||||||
|
|
||||||
-- Programs that require JWASM to compile.
|
-- Programs that require JWASM to compile.
|
||||||
if tup.getconfig('NO_JWASM') ~= 'full' then
|
if tup.getconfig('NO_JWASM') ~= 'full' then
|
||||||
tup.append_table(img_files, {
|
tup.append_table(img_files, {
|
||||||
@@ -675,11 +675,11 @@ tup.append_table(img_files, {
|
|||||||
{"File Managers/KFM2", VAR_PROGS .. "/cmm/misc/kfm2.com"},
|
{"File Managers/KFM2", VAR_PROGS .. "/cmm/misc/kfm2.com"},
|
||||||
{"KF_VIEW", VAR_PROGS .. "/cmm/kf_font_viewer/font_viewer.com"},
|
{"KF_VIEW", VAR_PROGS .. "/cmm/kf_font_viewer/font_viewer.com"},
|
||||||
{"DEVELOP/DIFF", VAR_PROGS .. "/cmm/diff/diff.com"},
|
{"DEVELOP/DIFF", VAR_PROGS .. "/cmm/diff/diff.com"},
|
||||||
{"GAMES/CLICKS", VAR_PROGS .. "/games/clicks/trunk/clicks.com"},
|
{"GAMES/CLICKS", VAR_PROGS .. "/games/clicks/clicks.com"},
|
||||||
{"GAMES/MBLOCKS", VAR_PROGS .. "/cmm/misc/mblocks.com"},
|
{"GAMES/MBLOCKS", VAR_PROGS .. "/cmm/misc/mblocks.com"},
|
||||||
{"GAMES/FLOOD-IT", VAR_PROGS .. "/games/flood-it/trunk/flood-it.com"},
|
{"GAMES/FLOOD-IT", VAR_PROGS .. "/games/flood-it/flood-it.com"},
|
||||||
{"GAMES/MINE", VAR_PROGS .. "/games/mine/trunk/mine"},
|
{"GAMES/MINE", VAR_PROGS .. "/games/mine/mine"},
|
||||||
{"GAMES/NUMBERS", VAR_PROGS .. "/games/FindNumbers/trunk/FindNumbers"},
|
{"GAMES/NUMBERS", VAR_PROGS .. "/games/FindNumbers/FindNumbers"},
|
||||||
{"MEDIA/PIXIE", VAR_PROGS .. "/cmm/pixie2/pixie.com"},
|
{"MEDIA/PIXIE", VAR_PROGS .. "/cmm/pixie2/pixie.com"},
|
||||||
{"MEDIA/ICONEDIT", VAR_PROGS .. "/cmm/iconedit/iconedit.com"},
|
{"MEDIA/ICONEDIT", VAR_PROGS .. "/cmm/iconedit/iconedit.com"},
|
||||||
{"NETWORK/DL", VAR_PROGS .. "/cmm/downloader/dl.com"},
|
{"NETWORK/DL", VAR_PROGS .. "/cmm/downloader/dl.com"},
|
||||||
@@ -706,12 +706,12 @@ tup.append_table(img_files, {
|
|||||||
{"TABLE", VAR_PROGS .. "/other/table/table"},
|
{"TABLE", VAR_PROGS .. "/other/table/table"},
|
||||||
{"MEDIA/AC97SND", VAR_PROGS .. "/media/ac97snd/ac97snd.bin"},
|
{"MEDIA/AC97SND", VAR_PROGS .. "/media/ac97snd/ac97snd.bin"},
|
||||||
{"GAMES/KOSILKA", VAR_PROGS .. "/games/kosilka/kosilka"},
|
{"GAMES/KOSILKA", VAR_PROGS .. "/games/kosilka/kosilka"},
|
||||||
{"GAMES/RFORCES", VAR_PROGS .. "/games/rforces/trunk/rforces"},
|
{"GAMES/RFORCES", VAR_PROGS .. "/games/rforces/rforces"},
|
||||||
{"GAMES/XONIX", VAR_PROGS .. "/games/xonix/trunk/xonix"},
|
{"GAMES/XONIX", VAR_PROGS .. "/games/xonix/xonix"},
|
||||||
})
|
})
|
||||||
tup.append_table(extra_files, {
|
tup.append_table(extra_files, {
|
||||||
{"kolibrios/games/fara/fara", VAR_PROGS .. "/games/fara/trunk/fara"},
|
{"kolibrios/games/fara/fara", VAR_PROGS .. "/games/fara/fara"},
|
||||||
{"kolibrios/games/LaserTank/LaserTank", VAR_PROGS .. "/games/LaserTank/trunk/LaserTank"},
|
{"kolibrios/games/LaserTank/LaserTank", VAR_PROGS .. "/games/LaserTank/LaserTank"},
|
||||||
})
|
})
|
||||||
end -- tup.getconfig('NO_MSVC') ~= 'full'
|
end -- tup.getconfig('NO_MSVC') ~= 'full'
|
||||||
|
|
||||||
@@ -720,6 +720,7 @@ if tup.getconfig('NO_TCC') ~= 'full' then
|
|||||||
tup.append_table(img_files, {
|
tup.append_table(img_files, {
|
||||||
{"NETWORK/WHOIS", VAR_PROGS .. "/network/whois/whois"},
|
{"NETWORK/WHOIS", VAR_PROGS .. "/network/whois/whois"},
|
||||||
{"SHELL", VAR_PROGS .. "/system/shell/shell"},
|
{"SHELL", VAR_PROGS .. "/system/shell/shell"},
|
||||||
|
{"GAMES/DINO", VAR_PROGS .. "/games/dino/dino"},
|
||||||
})
|
})
|
||||||
tup.append_table(extra_files, {
|
tup.append_table(extra_files, {
|
||||||
{"kolibrios/utils/thashview", VAR_PROGS .. "/other/TinyHashView/thashview"},
|
{"kolibrios/utils/thashview", VAR_PROGS .. "/other/TinyHashView/thashview"},
|
||||||
@@ -741,7 +742,7 @@ end -- tup.getconfig('NO_TCC') ~= 'full'
|
|||||||
-- Programs that require GCC to compile.
|
-- Programs that require GCC to compile.
|
||||||
if tup.getconfig('NO_GCC') ~= 'full' then
|
if tup.getconfig('NO_GCC') ~= 'full' then
|
||||||
tup.append_table(img_files, {
|
tup.append_table(img_files, {
|
||||||
{"GAMES/REVERSI", VAR_PROGS .. "/games/reversi/trunk/reversi"},
|
{"GAMES/REVERSI", VAR_PROGS .. "/games/reversi/reversi"},
|
||||||
{"LIB/BASE64.OBJ", VAR_PROGS .. "/develop/libraries/base64/base64.obj"},
|
{"LIB/BASE64.OBJ", VAR_PROGS .. "/develop/libraries/base64/base64.obj"},
|
||||||
{"LIB/LIBC.OBJ", VAR_PROGS .. "/develop/ktcc/trunk/libc.obj/source/libc.obj"},
|
{"LIB/LIBC.OBJ", VAR_PROGS .. "/develop/ktcc/trunk/libc.obj/source/libc.obj"},
|
||||||
{"LIB/ICONV.OBJ", VAR_PROGS .. "/develop/libraries/iconv/iconv.obj"},
|
{"LIB/ICONV.OBJ", VAR_PROGS .. "/develop/libraries/iconv/iconv.obj"},
|
||||||
@@ -753,7 +754,7 @@ tup.append_table(extra_files, {
|
|||||||
{"kolibrios/emul/e80/e80", VAR_PROGS .. "/emulator/e80/trunk/e80"},
|
{"kolibrios/emul/e80/e80", VAR_PROGS .. "/emulator/e80/trunk/e80"},
|
||||||
{"kolibrios/emul/uarm/", VAR_CONTRIB .. "/other/uarm/uARM"},
|
{"kolibrios/emul/uarm/", VAR_CONTRIB .. "/other/uarm/uARM"},
|
||||||
{"kolibrios/games/2048", VAR_PROGS .. "/games/2048/2048"},
|
{"kolibrios/games/2048", VAR_PROGS .. "/games/2048/2048"},
|
||||||
{"kolibrios/games/checkers", VAR_PROGS .. "/games/checkers/trunk/checkers"},
|
{"kolibrios/games/checkers", VAR_PROGS .. "/games/checkers/checkers"},
|
||||||
{"kolibrios/games/donkey", VAR_PROGS .. "/games/donkey/donkey"},
|
{"kolibrios/games/donkey", VAR_PROGS .. "/games/donkey/donkey"},
|
||||||
{"kolibrios/games/heliothryx", VAR_PROGS .. "/games/heliothryx/heliothryx"},
|
{"kolibrios/games/heliothryx", VAR_PROGS .. "/games/heliothryx/heliothryx"},
|
||||||
{"kolibrios/games/marblematch3", VAR_PROGS .. "/games/marblematch3/marblematch3"},
|
{"kolibrios/games/marblematch3", VAR_PROGS .. "/games/marblematch3/marblematch3"},
|
||||||
@@ -907,7 +908,6 @@ end
|
|||||||
tup.definerule{inputs = input_deps, command = make_img_command1, outputs = {"kolibri.img"}}
|
tup.definerule{inputs = input_deps, command = make_img_command1, outputs = {"kolibri.img"}}
|
||||||
|
|
||||||
-- generate command and dependencies for mkisofs
|
-- generate command and dependencies for mkisofs
|
||||||
input_deps = {VAR_DATA .. "/kolibri.img"}
|
|
||||||
iso_files_list = ""
|
iso_files_list = ""
|
||||||
for i,v in ipairs(iso_extra_files) do
|
for i,v in ipairs(iso_extra_files) do
|
||||||
iso_files_list = iso_files_list .. ' "' .. v[1] .. '=' .. v[2] .. '"'
|
iso_files_list = iso_files_list .. ' "' .. v[1] .. '=' .. v[2] .. '"'
|
||||||
@@ -921,14 +921,16 @@ else volume_id = "KolibriOS"
|
|||||||
end
|
end
|
||||||
tup.definerule{inputs = input_deps, command =
|
tup.definerule{inputs = input_deps, command =
|
||||||
'^ MKISOFS kolibri.iso^ ' .. -- for tup: don't write full command to logs
|
'^ MKISOFS kolibri.iso^ ' .. -- for tup: don't write full command to logs
|
||||||
'mkisofs -U -J -pad -b kolibri.img -c boot.catalog -hide-joliet boot.catalog -graft-points ' ..
|
'mkisofs -U -J -pad -b cdboot.bin -no-emul-boot -c boot.catalog'
|
||||||
'-A "KolibriOS AutoBuilder" -p "CleverMouse" -publisher "KolibriOS Team" -V "' .. volume_id .. '" -sysid "KOLIBRI" ' ..
|
.. ' -hide-joliet boot.catalog -hide-joliet cdboot.bin'
|
||||||
'-iso-level 3 -o %o ' .. VAR_DATA .. '/kolibri.img' .. iso_files_list .. ' 2>&1',
|
.. ' -hide-joliet kernel.mnt -graft-points'
|
||||||
|
.. ' -A "KolibriOS AutoBuilder" -p "CleverMouse"'
|
||||||
|
.. ' -publisher "KolibriOS Team" -V "' .. volume_id .. '" -sysid "KOLIBRI"'
|
||||||
|
.. ' -iso-level 3 -o %o ' .. iso_files_list .. ' 2>&1',
|
||||||
outputs = {"kolibri.iso"}}
|
outputs = {"kolibri.iso"}}
|
||||||
|
|
||||||
-- generate command and dependencies for distribution kit
|
-- generate command and dependencies for distribution kit
|
||||||
cp = 'cp "%f" "%o"'
|
cp = 'cp "%f" "%o"'
|
||||||
tup.definerule{inputs = {VAR_DATA .. "/kolibri.img"}, command = cp, outputs = {"distribution_kit/kolibri.img"}}
|
|
||||||
for i,v in ipairs(distr_extra_files) do
|
for i,v in ipairs(distr_extra_files) do
|
||||||
cmd = cp:gsub("%%f", string.gsub(v[2], "%%", "%%%%")) -- input can be a group, we can't rely on tup's expansion of %f in this case
|
cmd = cp:gsub("%%f", string.gsub(v[2], "%%", "%%%%")) -- input can be a group, we can't rely on tup's expansion of %f in this case
|
||||||
if string.sub(v[1], -1) == "/"
|
if string.sub(v[1], -1) == "/"
|
||||||
@@ -1017,9 +1019,15 @@ for i,v in ipairs(raw_files) do
|
|||||||
table.insert(input_deps, v.group or local_file)
|
table.insert(input_deps, v.group or local_file)
|
||||||
end
|
end
|
||||||
|
|
||||||
tup.definerule{inputs = {}, command = "echo '" .. make_raw_command1 .. "' > %o", outputs = {'make_raw_command1_file'}}
|
tup.definerule{inputs = {}, command = "^ Prepare command file #1 for the raw image^"
|
||||||
tup.definerule{inputs = {}, command = "echo '" .. make_raw_command2 .. "' > %o", outputs = {'make_raw_command2_file'}}
|
.. "echo '" .. make_raw_command1 .. "' > %o",
|
||||||
tup.definerule{inputs = {}, command = "echo '" .. make_raw_command3 .. "' > %o", outputs = {'make_raw_command3_file'}}
|
outputs = {'make_raw_command1_file'}}
|
||||||
|
tup.definerule{inputs = {}, command = "^ Prepare command file #2 for the raw image^"
|
||||||
|
.. "echo '" .. make_raw_command2 .. "' > %o",
|
||||||
|
outputs = {'make_raw_command2_file'}}
|
||||||
|
tup.definerule{inputs = {}, command = "^ Prepare command file #3 for the raw image^"
|
||||||
|
.. "echo '" .. make_raw_command3 .. "' > %o",
|
||||||
|
outputs = {'make_raw_command3_file'}}
|
||||||
|
|
||||||
table.insert(input_deps, 'make_raw_command1_file')
|
table.insert(input_deps, 'make_raw_command1_file')
|
||||||
table.insert(input_deps, 'make_raw_command2_file')
|
table.insert(input_deps, 'make_raw_command2_file')
|
||||||
|
@@ -1,8 +0,0 @@
|
|||||||
KolibriOS 0.7.7.0+ nightly build, Live CD version.
|
|
||||||
|
|
||||||
This is a bootable CD-ROM. To run, reboot your computer and select the
|
|
||||||
correct drive from the system settings or BIOS if required.
|
|
||||||
|
|
||||||
The minimum system requirements and installation instructions can be found
|
|
||||||
in 'install.txt'. Further details for configuring and customizing KolibriOS
|
|
||||||
are given in 'config.txt'.
|
|
@@ -1,5 +0,0 @@
|
|||||||
KolibriOS 0.7.7.0+ nightly build.
|
|
||||||
|
|
||||||
The minimum system requirements and installation instructions can be found
|
|
||||||
in 'install.txt'. Further details for configuring and customizing KolibriOS
|
|
||||||
are given in 'config.txt'.
|
|
@@ -1,16 +0,0 @@
|
|||||||
The following "hot" shortcut keys are used in the system:
|
|
||||||
(Indexing on time of appearance in the system)
|
|
||||||
1) Ctrl + Alt + Del start of the application CPU (the manager of processes), is a sole combination maintained on a level of a kernel, all rest "hot" key is realized at the expense of the application @TASKBAR.
|
|
||||||
2) Ctrl + Shift - switching of keyboard layout.
|
|
||||||
3) Win - start of the application MENU.
|
|
||||||
4) Alt + Ctrl + F12 - start of the application END.
|
|
||||||
5) Alt + F4 - terminate the active application.
|
|
||||||
6) Alt + Tab - switch to the next (in the window stack) window
|
|
||||||
7) Alt + Shift + Tab - switch to the previous (in the window stack) window
|
|
||||||
8) Alt + Shift + NumLock - start of the application MOUSEMUL, which emulates mouse with numpad, when NumLock is on.
|
|
||||||
9) Alt + 1...7 - fast switching to the selected keyboard layout (even if absent for Ctrl + Shift)
|
|
||||||
10) Win + D - minimize/restore all windows (cleaning of desktop)
|
|
||||||
11) Win + R - start of the application RUN
|
|
||||||
12) Alt + Ctrl + ArrowLeft - to scroll back a list of the taskbar
|
|
||||||
13) Alt + Ctrl + ArrowRight - to scroll forward a list of the taskbar
|
|
||||||
14) Ctrl + PrintScreen - start of the application SCRSHOOT. Just do a screen shot and the user is offered to specify (with OpenDialog) where to save the BMP image.
|
|
@@ -1,109 +0,0 @@
|
|||||||
Minimal system requirements for Kolibri 0.7.x.0:
|
|
||||||
* CPU: Pentium, AMD 5x86 or Cyrix 5x86 without MMX with frequency 100 MHz
|
|
||||||
* RAM: 8 Mb
|
|
||||||
* Videocard: supporting VGA (640*480*16 mode) or Vesa
|
|
||||||
* Keyboard: AT
|
|
||||||
* Mouse: COM or PS/2
|
|
||||||
|
|
||||||
The system can boot from any of following devices:
|
|
||||||
- Floppy 3.5
|
|
||||||
- IDE HDD LBA
|
|
||||||
- CD/DVD
|
|
||||||
- USB Flash
|
|
||||||
|
|
||||||
I. Install to floppy.
|
|
||||||
1) Insert clean floppy without bad sectors to drive.
|
|
||||||
2) Write to it kolibri.img image with any available methods:
|
|
||||||
a) (if you have already loaded Kolibri by any method) run the program
|
|
||||||
rdsave and select the variant corresponding to floppy
|
|
||||||
b) (for DOS and Windows) run subjoined install.bat
|
|
||||||
c) with program WinImage or its analogue (e.g. DiskExplorer)
|
|
||||||
d) (for Linux) set "executable" attribute to subjoined script install.sh
|
|
||||||
and run it
|
|
||||||
Now you can boot from floppy (keep it in drive, reboot, set in BIOS option
|
|
||||||
of floppy booting).
|
|
||||||
|
|
||||||
II. Install to hard disk.
|
|
||||||
There exists several loaders from hard disk. All are oriented on DOS and
|
|
||||||
Windows users. Also standard Linux-loader GRUB can be used. All methods work
|
|
||||||
with file kolibri.img. If you already have old version of Kolibri installed,
|
|
||||||
simply replace kolibri.img to new. If you have booted from LiveCD, which
|
|
||||||
does not contain the file kolibri.img, Kolibri can create it independently,
|
|
||||||
to do this, run the program rdsave, enter the file name for saving and select
|
|
||||||
the corresponding variant. Of course, in this case Kolibri must be able to
|
|
||||||
write to file system of selected partitions, currently this means that
|
|
||||||
only FAT volumes are ok.
|
|
||||||
1) Most of all features has the loader mtldr (author - Diamond) - works with
|
|
||||||
DOS/Win95/98/NT/2k/XP/Vista, supports FAT32 and NTFS, has installator, can
|
|
||||||
be installed to any folder on disk.
|
|
||||||
To install, simply run file HD_load\mtldr_install.exe and select image file.
|
|
||||||
Apropos, by this way you can install several images. There is also
|
|
||||||
variant of install by hand - for those who want to know what installator
|
|
||||||
does: directions in HD_load\mtldr
|
|
||||||
2) There is also the loader MeOSLoad (author - Trans, expanded by Mario79) -
|
|
||||||
works with DOS/Win95/98, supports FAT32, it is placed with the instruction
|
|
||||||
to the folder HD_load\MeOSLoad.
|
|
||||||
3) Moreover, there exist a program which allow load Kolibri directly from
|
|
||||||
Windows 95/98/Me (of course, unloading it) - 9x2klbr (author - Diamond),
|
|
||||||
supports FAT32 and NTFS.
|
|
||||||
4) Usage of the loader GRUB. The way of using file 'memdisk' to load Kolibri
|
|
||||||
has been described by derPENGUIN on english forum
|
|
||||||
(http://meos32.7.forumer.com/viewtopic.php?t=110).
|
|
||||||
The suggested method (described by Alver) is based on that description
|
|
||||||
and was checked on grub-0.97-19mdv2007.0.
|
|
||||||
1. Kolibri can write only on FAT filesystem, so if image file is placed not
|
|
||||||
to FAT volume, the system can not save settings. Therefore if you have
|
|
||||||
FAT32 partition, place 'kolibri.img' there.
|
|
||||||
2. This method requires the file 'memdisk' from the package 'syslinux'
|
|
||||||
(http://syslinux.zytor.com). You may install the whole package or only
|
|
||||||
extract the mentioned file. Only the file 'memdisk' is needed. (After
|
|
||||||
package install it will be in '/usr/lib/syslinux').
|
|
||||||
3. Place the file 'memdisk' to the folder 'boot' or to the partition used
|
|
||||||
for Kolibri.
|
|
||||||
4. Add to the configuration file 'menu.lst' ('grub.conf') lines as follow:
|
|
||||||
|
|
||||||
title KolibriOS
|
|
||||||
kernel (hd[Hard disk number],[partition number])[path]/memdisk
|
|
||||||
initrd (hd[Hard disk number],[partition number])[path]/kolibri.img
|
|
||||||
|
|
||||||
(Remember that numeration of partitions in GRUB starts from 0.)
|
|
||||||
Example:
|
|
||||||
title KolibriOS
|
|
||||||
kernel (hd0,0)/boot/memdisk
|
|
||||||
initrd (hd0,3)/kolibri/kolibri.img
|
|
||||||
|
|
||||||
The initial variant was:
|
|
||||||
|
|
||||||
label KolibriOS
|
|
||||||
root (hd[Hard disk number],[partition number])
|
|
||||||
kernel [path]/memdisk
|
|
||||||
initrd [path]/kolibri.img
|
|
||||||
|
|
||||||
Here 'memdisk' and 'kolibri.img' must be placed on the same partition.
|
|
||||||
|
|
||||||
Example:
|
|
||||||
label KolibriOS
|
|
||||||
root (hd0,0)
|
|
||||||
kernel /boot/memdisk
|
|
||||||
initrd /boot/kolibri.img
|
|
||||||
This example is the variant described on english forum, with install to
|
|
||||||
Linux boot partition (of course, without FAT partition).
|
|
||||||
|
|
||||||
5) The previous method could not work as is in GRUB2 (tested by Apocalypse_dn),
|
|
||||||
the commands "linux16" and "initrd16" should be used instead of "kernel"
|
|
||||||
and "initrd" (suggested by vkos).
|
|
||||||
|
|
||||||
III. Install to USB-Flash-drive.
|
|
||||||
The special loader for FAT32-volumes has been written, it and its installer
|
|
||||||
to flash drive can be found in the folder HD_load\USB_Boot.
|
|
||||||
For not-FAT32 drives you may use article placed in the folder
|
|
||||||
HD_load\USB_Boot_old.
|
|
||||||
|
|
||||||
IV. Install to CD and DVD.
|
|
||||||
There exists special LiveCD-version of Kolibri, which contains
|
|
||||||
in addition to standard things some "heavy" (in Kolibri standards) programs:
|
|
||||||
the ported emulator DosBox, games "Fixed Rate Pig" and "sokoban".
|
|
||||||
You can also create bootable CD or DVD on the base of kolibri.img, adding
|
|
||||||
anything what you want, in the mode of floppy emulation.
|
|
||||||
The appropriate actions are determined by used CD/DVD write program
|
|
||||||
(focus on words such as "boot floppy emulation").
|
|
Binary file not shown.
Binary file not shown.
@@ -1 +0,0 @@
|
|||||||
lang fix ca_ES
|
|
@@ -1,230 +0,0 @@
|
|||||||
[rbmenu]
|
|
||||||
Processes=cpu
|
|
||||||
Themes=desktop
|
|
||||||
Background=/sys/media/palitra
|
|
||||||
Device setup=setup
|
|
||||||
Shell=shell
|
|
||||||
[00]
|
|
||||||
name=KFM2
|
|
||||||
path=/SYS/FILE MANAGERS/KFM2
|
|
||||||
param=
|
|
||||||
ico=3
|
|
||||||
x=0
|
|
||||||
y=0
|
|
||||||
[01]
|
|
||||||
name=TINYPAD
|
|
||||||
path=TINYPAD
|
|
||||||
param=
|
|
||||||
ico=9
|
|
||||||
x=0
|
|
||||||
y=68
|
|
||||||
[02]
|
|
||||||
name=EOLITE
|
|
||||||
path=/SYS/FILE MANAGERS/EOLITE
|
|
||||||
param=
|
|
||||||
ico=1
|
|
||||||
x=68
|
|
||||||
y=0
|
|
||||||
[03]
|
|
||||||
name=SHELL
|
|
||||||
path=SHELL
|
|
||||||
param=
|
|
||||||
ico=2
|
|
||||||
x=136
|
|
||||||
y=0
|
|
||||||
[04]
|
|
||||||
name=KFAR
|
|
||||||
path=/SYS/FILE MANAGERS/KFAR
|
|
||||||
param=
|
|
||||||
ico=16
|
|
||||||
x=68
|
|
||||||
y=68
|
|
||||||
[05]
|
|
||||||
name=RDSAVE
|
|
||||||
path=RDSAVE
|
|
||||||
param=
|
|
||||||
ico=17
|
|
||||||
x=0
|
|
||||||
y=136
|
|
||||||
[06]
|
|
||||||
name=FB2READ
|
|
||||||
path=FB2READ
|
|
||||||
param=
|
|
||||||
ico=44
|
|
||||||
x=68
|
|
||||||
y=136
|
|
||||||
[07]
|
|
||||||
name=ANIMAGE
|
|
||||||
path=/SYS/MEDIA/ANIMAGE
|
|
||||||
param=
|
|
||||||
ico=15
|
|
||||||
x=136
|
|
||||||
y=68
|
|
||||||
[08]
|
|
||||||
name=KPACK
|
|
||||||
path=KPACK
|
|
||||||
param=
|
|
||||||
ico=10
|
|
||||||
x=-67
|
|
||||||
y=0
|
|
||||||
[09]
|
|
||||||
name=SNAKE
|
|
||||||
path=/SYS/GAMES/SNAKE
|
|
||||||
param=
|
|
||||||
ico=32
|
|
||||||
x=-135
|
|
||||||
y=-135
|
|
||||||
[0A]
|
|
||||||
name=MINE
|
|
||||||
path=/SYS/GAMES/MINE
|
|
||||||
param=
|
|
||||||
ico=14
|
|
||||||
x=-67
|
|
||||||
y=-67
|
|
||||||
[0B]
|
|
||||||
name=SEAWAR
|
|
||||||
path=/SYS/GAMES/SW
|
|
||||||
param=
|
|
||||||
ico=66
|
|
||||||
x=-135
|
|
||||||
y=-67
|
|
||||||
[0C]
|
|
||||||
name=MBLOCKS
|
|
||||||
path=/SYS/GAMES/MBLOCKS
|
|
||||||
param=
|
|
||||||
ico=11
|
|
||||||
x=-67
|
|
||||||
y=-135
|
|
||||||
[0D]
|
|
||||||
name=PONG
|
|
||||||
path=/SYS/GAMES/PONG3
|
|
||||||
param=
|
|
||||||
ico=12
|
|
||||||
x=-203
|
|
||||||
y=-67
|
|
||||||
[0E]
|
|
||||||
name=15
|
|
||||||
path=/SYS/GAMES/15
|
|
||||||
param=
|
|
||||||
ico=34
|
|
||||||
x=-271
|
|
||||||
y=-67
|
|
||||||
[0F]
|
|
||||||
name=DOCPACK
|
|
||||||
path=DOCPACK
|
|
||||||
param=
|
|
||||||
ico=8
|
|
||||||
x=-67
|
|
||||||
y=68
|
|
||||||
[10]
|
|
||||||
name=BOARD
|
|
||||||
path=/SYS/DEVELOP/BOARD
|
|
||||||
param=
|
|
||||||
ico=19
|
|
||||||
x=-135
|
|
||||||
y=0
|
|
||||||
[11]
|
|
||||||
name=HEXEDIT
|
|
||||||
path=/SYS/DEVELOP/HEED
|
|
||||||
param=
|
|
||||||
ico=22
|
|
||||||
x=-135
|
|
||||||
y=136
|
|
||||||
[12]
|
|
||||||
name=DEBUG
|
|
||||||
path=/SYS/DEVELOP/MTDBG
|
|
||||||
param=
|
|
||||||
ico=39
|
|
||||||
x=-203
|
|
||||||
y=0
|
|
||||||
[13]
|
|
||||||
name=PIPES
|
|
||||||
path=/SYS/GAMES/PIPES
|
|
||||||
param=
|
|
||||||
ico=26
|
|
||||||
x=0
|
|
||||||
y=-135
|
|
||||||
[14]
|
|
||||||
name=SUDOKU
|
|
||||||
path=/SYS/GAMES/SUDOKU
|
|
||||||
param=
|
|
||||||
ico=25
|
|
||||||
x=0
|
|
||||||
y=-67
|
|
||||||
[15]
|
|
||||||
name=GOMOKU
|
|
||||||
path=/SYS/GAMES/GOMOKU
|
|
||||||
param=
|
|
||||||
ico=24
|
|
||||||
x=68
|
|
||||||
y=-67
|
|
||||||
[16]
|
|
||||||
name=XONIX
|
|
||||||
path=/SYS/GAMES/XONIX
|
|
||||||
param=
|
|
||||||
ico=21
|
|
||||||
x=68
|
|
||||||
y=-135
|
|
||||||
[17]
|
|
||||||
name=FLAPPY-BIRD
|
|
||||||
path=/SYS/GAMES/FLPYBIRD
|
|
||||||
param=
|
|
||||||
ico=49
|
|
||||||
x=-271
|
|
||||||
y=-135
|
|
||||||
[18]
|
|
||||||
name=KOSILKA
|
|
||||||
path=/SYS/GAMES/KOSILKA
|
|
||||||
param=
|
|
||||||
ico=23
|
|
||||||
x=136
|
|
||||||
y=-67
|
|
||||||
[19]
|
|
||||||
name=FLOOD-IT
|
|
||||||
path=/SYS/GAMES/FLOOD-IT
|
|
||||||
param=
|
|
||||||
ico=59
|
|
||||||
x=136
|
|
||||||
y=-135
|
|
||||||
[1A]
|
|
||||||
name=FASM
|
|
||||||
path=/SYS/DEVELOP/FASM
|
|
||||||
param=
|
|
||||||
ico=10
|
|
||||||
x=-135
|
|
||||||
y=68
|
|
||||||
[1B]
|
|
||||||
name=CLICKS
|
|
||||||
path=/SYS/GAMES/CLICKS
|
|
||||||
param=
|
|
||||||
ico=18
|
|
||||||
x=-203
|
|
||||||
y=-135
|
|
||||||
[1C]
|
|
||||||
name=WEBVIEW
|
|
||||||
path=/sys/NETWORK/WebView
|
|
||||||
param=
|
|
||||||
ico=31
|
|
||||||
x=136
|
|
||||||
y=136
|
|
||||||
[1D]
|
|
||||||
name=SYSPANEL
|
|
||||||
path=SYSPANEL
|
|
||||||
param=
|
|
||||||
ico=6
|
|
||||||
x=-67
|
|
||||||
y=136
|
|
||||||
[1E]
|
|
||||||
name=CALC
|
|
||||||
path=CALC
|
|
||||||
param=
|
|
||||||
ico=4
|
|
||||||
x=-203
|
|
||||||
y=68
|
|
||||||
[1F]
|
|
||||||
name=APP+
|
|
||||||
path=app_plus
|
|
||||||
param=
|
|
||||||
ico=27
|
|
||||||
x=-203
|
|
||||||
y=136
|
|
@@ -1,9 +0,0 @@
|
|||||||
KolibriOS
|
|
||||||
version 0770
|
|
||||||
svnr 4483
|
|
||||||
language ca_ES
|
|
||||||
|
|
||||||
;just comment
|
|
||||||
; Hi, curious person! :-)
|
|
||||||
; Thanks
|
|
||||||
; 08/01/2016 Creating lang català
|
|
@@ -1,30 +0,0 @@
|
|||||||
[start]
|
|
||||||
startlng = 1
|
|
||||||
|
|
||||||
[comkey]
|
|
||||||
ccomkey1 = 1
|
|
||||||
ccomkey2 = 4
|
|
||||||
ccomkey3 = 0
|
|
||||||
|
|
||||||
[altkey]
|
|
||||||
altkey1 = 1
|
|
||||||
altkey2 = 4
|
|
||||||
altkey3 = 7
|
|
||||||
altkey4 = 3
|
|
||||||
altkey5 = 5
|
|
||||||
altkey6 = 6
|
|
||||||
altkey7 = 2
|
|
||||||
altkey8 = 8
|
|
||||||
altkey9 = 9
|
|
||||||
altkey0 = 0
|
|
||||||
|
|
||||||
[langs]
|
|
||||||
1 = En
|
|
||||||
2 = Fi
|
|
||||||
3 = Ge
|
|
||||||
4 = Ru
|
|
||||||
5 = Fr
|
|
||||||
6 = Et
|
|
||||||
7 = Ua
|
|
||||||
8 = It
|
|
||||||
9 = Be
|
|
@@ -1,128 +0,0 @@
|
|||||||
#0 **** Principal ****
|
|
||||||
58 Welcome |welcome.htm
|
|
||||||
00 2D Demos > |@1
|
|
||||||
00 3D Demos > |@2
|
|
||||||
00 Gr<47>fics > |@3
|
|
||||||
00 Multim<69>dia > |@4
|
|
||||||
00 Emuladors > |@15
|
|
||||||
00 Desenvolupament > |@5
|
|
||||||
00 Sistema > |@7
|
|
||||||
00 Proc<6F>s de dades > |@9
|
|
||||||
00 Xarxa > |@10
|
|
||||||
00 Altres > |@13
|
|
||||||
23 Centre de jocs |allgames
|
|
||||||
60 System panel |syspanel
|
|
||||||
18 Ajuda |docpack
|
|
||||||
53 Executar aplicaci<63> |run
|
|
||||||
04 Aturar |end
|
|
||||||
#1 **** DEMOS ****
|
|
||||||
16 Cercle |demos/circle
|
|
||||||
16 Fractal |demos/tinyfrac
|
|
||||||
16 Color demo |demos/colorref
|
|
||||||
16 Ulls |demos/eyes
|
|
||||||
16 Tub |demos/tube
|
|
||||||
16 Plasma |demos/plasma
|
|
||||||
16 Spiral |demos/spiral
|
|
||||||
16 Retrocedir |demos/movback
|
|
||||||
16 Vida |demos/life2
|
|
||||||
16 TranTest |demos/trantest
|
|
||||||
16 WEB |demos/web
|
|
||||||
16 FireWork |demos/firework
|
|
||||||
16 UnvWater |demos/unvwater
|
|
||||||
#2 **** 3D ****
|
|
||||||
15 Protector de pantalla |3d/crownscr
|
|
||||||
15 3D-laberint |3d/free3d04
|
|
||||||
15 Cor |3d/3dsheart
|
|
||||||
15 VeureDS |3d/view3ds
|
|
||||||
15 CubeLine |3d/cubeline
|
|
||||||
15 Engranatges |3d/gears
|
|
||||||
15 zona ondulada-3D |3d/3dwav
|
|
||||||
#3 **** GR<47>FICS ****
|
|
||||||
06 Visor d'imatges KIV |media/kiv
|
|
||||||
06 Visor d'imatges zSea |/kolibrios/media/zsea/zsea
|
|
||||||
38 Animage |media/animage
|
|
||||||
38 IconEdit |media/iconedit
|
|
||||||
40 Efectes d'imatges |media/imgf/imgf
|
|
||||||
52 Palitra |media/palitra
|
|
||||||
39 Pipet |develop/pipet
|
|
||||||
#4 **** MULTIM<49>DIA ****
|
|
||||||
53 Pixie - audio |media/pixie
|
|
||||||
07 MidAMP |media/midamp
|
|
||||||
22 Toy piano |media/piano
|
|
||||||
52 Generador de fons |media/palitra
|
|
||||||
11 Fplay - video * |/kolibrios/media/fplay
|
|
||||||
#5 **** DESARROLLO ****
|
|
||||||
00 Exemples > |@6
|
|
||||||
09 Arxivador KPack |kpack
|
|
||||||
54 Assemblador Flat |develop/fasm
|
|
||||||
13 Panell de depuraci<63> |develop/board
|
|
||||||
16 Depurador |develop/mtdbg
|
|
||||||
34 Hex2Dec2Bin |develop/h2d2b
|
|
||||||
59 Taula de car<61>cters |develop/ASCIIVju
|
|
||||||
59 Codis ASCII |develop/keyascii
|
|
||||||
59 Codis SCAN |develop/scancode
|
|
||||||
#6 **** EXEMPLES ****
|
|
||||||
16 Threads |develop/thread
|
|
||||||
16 Selector de color |demos/cslide
|
|
||||||
16 Exemple de consola 1 |develop/testcon2
|
|
||||||
16 Exemple de consola 2 |develop/test_gets
|
|
||||||
16 Exemple Missatge caixa|demos/use_mb
|
|
||||||
#7 **** SISTEMA ****
|
|
||||||
00 Arxius > |@8
|
|
||||||
00 Accesibilitat > |@14
|
|
||||||
13 Panell depuraci<63> |develop/board
|
|
||||||
56 Clipboard viewer |develop/clipview
|
|
||||||
24 Terminal |terminal
|
|
||||||
24 SHELL |shell
|
|
||||||
51 Virtual disks |tmpdisk
|
|
||||||
05 Guardar imatge RD |rdsave
|
|
||||||
#8 **** ARCHIUS ****
|
|
||||||
24 KFAR |File Managers/kfar
|
|
||||||
05 KFM2 |File Managers/kfm2
|
|
||||||
50 Eolite |File Managers/Eolite
|
|
||||||
20 fNav * |/kolibrios/utils/fNav/fNav
|
|
||||||
#9 **** PROC<4F>S DE DADES ****
|
|
||||||
16 Calculadora |calc
|
|
||||||
03 Tinypad |tinypad
|
|
||||||
28 TextEdit |develop/cedit
|
|
||||||
21 Procesador de tables |table
|
|
||||||
47 Generador de gr<67>fique |graph
|
|
||||||
59 Hex-Editor |develop/heed
|
|
||||||
09 Unarchiver Unz |unz
|
|
||||||
#10 **** XARXA ****
|
|
||||||
00 Servidors > |@11
|
|
||||||
00 Clients > |@12
|
|
||||||
25 Dispositius de xarxa |network/netcfg
|
|
||||||
25 Estat de la xarxa |network/netstat
|
|
||||||
#11 **** SERVIDORS ****
|
|
||||||
16 Dimoni FTP |network/ftpd
|
|
||||||
#12 **** CLIENTS ****
|
|
||||||
13 Client IRC |network/ircc
|
|
||||||
16 Client FTP |network/ftpc
|
|
||||||
50 Cliente TFTP |network/tftpc
|
|
||||||
24 Ping |network/ping
|
|
||||||
24 Client Telnet |network/telnet
|
|
||||||
24 Client Synergy |network/synergyc
|
|
||||||
24 Resoluci<63><69> de noms |network/nslookup
|
|
||||||
61 VNC Viewer |network/vncc
|
|
||||||
33 Client de baixades |network/downloader
|
|
||||||
12 Navegador (mode text) |network/webview
|
|
||||||
#13 **** ALTRES ****
|
|
||||||
16 Rellotge anal<61>gic |aclock
|
|
||||||
16 Rellotge binari |demos/bcdclk
|
|
||||||
16 Contador |timer
|
|
||||||
45 Capturador de pantalla|scrshoot
|
|
||||||
45 Easyshot |easyshot
|
|
||||||
16 Calendari |calendar
|
|
||||||
03 Lector de RTF |rtfread
|
|
||||||
#14 **** ACCESIBILITAT ****
|
|
||||||
49 Ampliaci<63> de pantalla |magnify
|
|
||||||
59 Teclat en pantalla |zkey
|
|
||||||
#15 **** EMULADORS ****
|
|
||||||
24 DOSBox * |/kolibrios/emul/DosBox/dosbox
|
|
||||||
16 e80 (ZX Spectrum) * |/kolibrios/emul/e80/e80
|
|
||||||
23 Gameboy Color * |/kolibrios/emul/gameboy
|
|
||||||
23 FCE Ultra (NES) * |/kolibrios/emul/fceu/fceu
|
|
||||||
23 ZSNES * |/kolibrios/emul/zsnes/zsnes
|
|
||||||
16 ScummVM * |/kolibrios/emul/scummvm
|
|
||||||
##
|
|
@@ -1 +0,0 @@
|
|||||||
CONFIG_LANG=ca
|
|
@@ -3,165 +3,165 @@
|
|||||||
<up>=1
|
<up>=1
|
||||||
<lot>=20
|
<lot>=20
|
||||||
mnt=2
|
mnt=2
|
||||||
txt=3
|
|
||||||
rtf=3
|
|
||||||
log=3
|
|
||||||
dic=3
|
dic=3
|
||||||
doc=3
|
doc=3
|
||||||
docx=3
|
docx=3
|
||||||
exc=3
|
exc=3
|
||||||
wtx=3
|
|
||||||
inf=3
|
inf=3
|
||||||
odt=3
|
log=3
|
||||||
ob07=3
|
ob07=3
|
||||||
inc=4
|
odt=3
|
||||||
c=14
|
rtf=3
|
||||||
|
txt=3
|
||||||
|
wtx=3
|
||||||
h=4
|
h=4
|
||||||
img=5
|
inc=4
|
||||||
ima=5
|
|
||||||
imz=5
|
|
||||||
bwz=5
|
bwz=5
|
||||||
dsk=5
|
dsk=5
|
||||||
|
ima=5
|
||||||
|
img=5
|
||||||
|
imz=5
|
||||||
vfd=5
|
vfd=5
|
||||||
wil=5
|
wil=5
|
||||||
wlz=5
|
wlz=5
|
||||||
jpg=6
|
ani=6
|
||||||
|
bmp=6
|
||||||
|
cr2=6
|
||||||
|
crw=6
|
||||||
|
cur=6
|
||||||
|
dcr=6
|
||||||
|
dcx=6
|
||||||
|
dib=6
|
||||||
|
djv=6
|
||||||
|
djvu=6
|
||||||
|
fpx=6
|
||||||
|
gif=6
|
||||||
|
ico=6
|
||||||
|
iff=6
|
||||||
|
ilbm=6
|
||||||
|
iw4=6
|
||||||
|
j2c=6
|
||||||
|
j2k=6
|
||||||
|
jfif=6
|
||||||
|
jif=6
|
||||||
|
jp2=6
|
||||||
|
jpc=6
|
||||||
jpe=6
|
jpe=6
|
||||||
jpeg=6
|
jpeg=6
|
||||||
jif=6
|
jpg=6
|
||||||
jfif=6
|
|
||||||
jp2=6
|
|
||||||
jpx=6
|
|
||||||
jpk=6
|
jpk=6
|
||||||
j2k=6
|
jpx=6
|
||||||
jpc=6
|
lbm=6
|
||||||
j2c=6
|
mrw=6
|
||||||
bmp=6
|
nef=6
|
||||||
dib=6
|
orf=6
|
||||||
rle=6
|
|
||||||
pbm=6
|
pbm=6
|
||||||
pgm=6
|
pcd=6
|
||||||
pnm=6
|
pct=6
|
||||||
wbm=6
|
|
||||||
wbmp=6
|
|
||||||
xbm=6
|
|
||||||
xpm=6
|
|
||||||
gif=6
|
|
||||||
png=6
|
|
||||||
ico=6
|
|
||||||
cur=6
|
|
||||||
ani=6
|
|
||||||
tif=6
|
|
||||||
tiff=6
|
|
||||||
xif=6
|
|
||||||
tga=6
|
|
||||||
pcx=6
|
pcx=6
|
||||||
xcf=6
|
pef=6
|
||||||
dcx=6
|
pgm=6
|
||||||
|
pic=6
|
||||||
|
pict=6
|
||||||
|
pix=6
|
||||||
|
png=6
|
||||||
|
pnm=6
|
||||||
ppm=6
|
ppm=6
|
||||||
psd=6
|
psd=6
|
||||||
psp=6
|
psp=6
|
||||||
raw=6
|
|
||||||
raf=6
|
raf=6
|
||||||
x3f=6
|
|
||||||
orf=6
|
|
||||||
nef=6
|
|
||||||
mrw=6
|
|
||||||
dcr=6
|
|
||||||
crw=6
|
|
||||||
cr2=6
|
|
||||||
ras=6
|
ras=6
|
||||||
pix=6
|
raw=6
|
||||||
pict=6
|
rle=6
|
||||||
pct=6
|
tga=6
|
||||||
pic=6
|
tif=6
|
||||||
pef=6
|
tiff=6
|
||||||
pcd=6
|
wbm=6
|
||||||
iff=6
|
wbmp=6
|
||||||
lbm=6
|
x3f=6
|
||||||
ilbm=6
|
xbm=6
|
||||||
fpx=6
|
xcf=6
|
||||||
djv=6
|
xif=6
|
||||||
djvu=6
|
xpm=6
|
||||||
iw4=6
|
|
||||||
wav=7
|
|
||||||
mp3=7
|
|
||||||
xm=7
|
|
||||||
mid=22
|
|
||||||
midi=22
|
|
||||||
aif=7
|
aif=7
|
||||||
aifc=7
|
aifc=7
|
||||||
aiff=7
|
aiff=7
|
||||||
au=7
|
au=7
|
||||||
|
mp3=7
|
||||||
snd=7
|
snd=7
|
||||||
wma=7
|
wav=7
|
||||||
wm=7
|
wm=7
|
||||||
exe=8
|
wma=7
|
||||||
|
xm=7
|
||||||
com=8
|
com=8
|
||||||
|
exe=8
|
||||||
7z=9
|
7z=9
|
||||||
rar=9
|
|
||||||
zip=9
|
|
||||||
cab=9
|
|
||||||
arj=9
|
arj=9
|
||||||
|
bz=9
|
||||||
|
bz2=9
|
||||||
|
cab=9
|
||||||
|
gz=9
|
||||||
|
ice=9
|
||||||
lha=9
|
lha=9
|
||||||
lzh=9
|
lzh=9
|
||||||
|
rar=9
|
||||||
tar=9
|
tar=9
|
||||||
taz=9
|
taz=9
|
||||||
tbz=9
|
tbz=9
|
||||||
tbz2=9
|
tbz2=9
|
||||||
bz=9
|
|
||||||
bz2=9
|
|
||||||
ice=9
|
|
||||||
gz=9
|
|
||||||
tgz=9
|
tgz=9
|
||||||
uue=9
|
|
||||||
uu=9
|
uu=9
|
||||||
|
uue=9
|
||||||
xxe=9
|
xxe=9
|
||||||
z=9
|
z=9
|
||||||
|
zip=9
|
||||||
ini=10
|
ini=10
|
||||||
avi=11
|
|
||||||
mpg=11
|
|
||||||
mpe=11
|
|
||||||
mpeg=11
|
|
||||||
flv=11
|
|
||||||
3gp=11
|
3gp=11
|
||||||
|
avi=11
|
||||||
|
flv=11
|
||||||
mkv=11
|
mkv=11
|
||||||
wmv=11
|
|
||||||
mov=11
|
mov=11
|
||||||
mp4=11
|
mp4=11
|
||||||
|
mpe=11
|
||||||
|
mpeg=11
|
||||||
|
mpg=11
|
||||||
vob=11
|
vob=11
|
||||||
webm=11
|
webm=11
|
||||||
|
wmv=11
|
||||||
|
eml=12
|
||||||
htm=12
|
htm=12
|
||||||
html=12
|
html=12
|
||||||
mht=12
|
mht=12
|
||||||
eml=12
|
|
||||||
url=12
|
url=12
|
||||||
|
c=14
|
||||||
cpp=14
|
cpp=14
|
||||||
js=14
|
js=14
|
||||||
json=14
|
json=14
|
||||||
lif=15
|
|
||||||
3ds=15
|
3ds=15
|
||||||
asc=15
|
asc=15
|
||||||
vox=15
|
|
||||||
stl=15
|
|
||||||
bjs=15
|
bjs=15
|
||||||
|
lif=15
|
||||||
|
stl=15
|
||||||
|
vox=15
|
||||||
kex=16
|
kex=16
|
||||||
skn=17
|
skn=17
|
||||||
obj=18
|
|
||||||
dll=18
|
dll=18
|
||||||
|
drv=18
|
||||||
|
obj=18
|
||||||
ocx=18
|
ocx=18
|
||||||
so=18
|
so=18
|
||||||
drv=18
|
|
||||||
iso=19
|
|
||||||
cue=19
|
cue=19
|
||||||
|
iso=19
|
||||||
mdf=19
|
mdf=19
|
||||||
csv=21
|
csv=21
|
||||||
xls=21
|
xls=21
|
||||||
xlsx=21
|
xlsx=21
|
||||||
nes=23
|
mid=22
|
||||||
snes=23
|
midi=22
|
||||||
sna=23
|
|
||||||
min=23
|
min=23
|
||||||
|
nes=23
|
||||||
|
sna=23
|
||||||
|
snes=23
|
||||||
bat=24
|
bat=24
|
||||||
sh=24
|
sh=24
|
||||||
sys=25
|
sys=25
|
||||||
@@ -178,14 +178,14 @@ ob7=29
|
|||||||
grf=47
|
grf=47
|
||||||
mgb=47
|
mgb=47
|
||||||
ch8=48
|
ch8=48
|
||||||
dtp=52
|
|
||||||
css=52
|
css=52
|
||||||
|
dtp=52
|
||||||
pal=52
|
pal=52
|
||||||
ttf=59
|
|
||||||
ttc=59
|
|
||||||
chr=59
|
chr=59
|
||||||
kf=59
|
kf=59
|
||||||
mt=59
|
mt=59
|
||||||
|
ttc=59
|
||||||
|
ttf=59
|
||||||
cfg=60
|
cfg=60
|
||||||
scr=61
|
scr=61
|
||||||
com=63
|
com=63
|
||||||
@@ -195,9 +195,8 @@ com=63
|
|||||||
<dir>=45
|
<dir>=45
|
||||||
<up>=45
|
<up>=45
|
||||||
<lot>=60
|
<lot>=60
|
||||||
com=1
|
|
||||||
bat=1
|
bat=1
|
||||||
sh=55
|
com=1
|
||||||
exe=2
|
exe=2
|
||||||
img=3
|
img=3
|
||||||
ini=5
|
ini=5
|
||||||
@@ -208,51 +207,51 @@ xlsx=28
|
|||||||
vox=30
|
vox=30
|
||||||
htm=31
|
htm=31
|
||||||
html=31
|
html=31
|
||||||
url=31
|
|
||||||
mht=31
|
mht=31
|
||||||
|
url=31
|
||||||
sys=38
|
sys=38
|
||||||
avi=40
|
|
||||||
mpg=40
|
|
||||||
mpe=40
|
|
||||||
mpeg=40
|
|
||||||
flv=40
|
|
||||||
3gp=40
|
3gp=40
|
||||||
|
avi=40
|
||||||
|
flv=40
|
||||||
mkv=40
|
mkv=40
|
||||||
wmv=40
|
|
||||||
mov=40
|
mov=40
|
||||||
mp4=40
|
mp4=40
|
||||||
|
mpe=40
|
||||||
|
mpeg=40
|
||||||
|
mpg=40
|
||||||
vob=40
|
vob=40
|
||||||
webm=40
|
webm=40
|
||||||
|
wmv=40
|
||||||
fb2=44
|
fb2=44
|
||||||
asm=55
|
asm=55
|
||||||
log=55
|
log=55
|
||||||
wav=64
|
sh=55
|
||||||
mp3=64
|
mp3=64
|
||||||
|
wav=64
|
||||||
xm=64
|
xm=64
|
||||||
png=70
|
|
||||||
jpg=70
|
|
||||||
jpeg=70
|
|
||||||
bmp=70
|
bmp=70
|
||||||
gif=70
|
gif=70
|
||||||
|
jpeg=70
|
||||||
|
jpg=70
|
||||||
pcx=70
|
pcx=70
|
||||||
|
png=70
|
||||||
pdf=73
|
pdf=73
|
||||||
mid=74
|
mid=74
|
||||||
midi=74
|
midi=74
|
||||||
mid=74
|
|
||||||
midi=74
|
|
||||||
3ds=78
|
3ds=78
|
||||||
stl=78
|
stl=78
|
||||||
zip=89
|
|
||||||
7z=89
|
|
||||||
obj=92
|
|
||||||
dll=92
|
|
||||||
skn=80
|
skn=80
|
||||||
kex=88
|
kex=88
|
||||||
|
7z=89
|
||||||
|
zip=89
|
||||||
|
dll=92
|
||||||
|
obj=92
|
||||||
kf=118
|
kf=118
|
||||||
mgb=121
|
mgb=121
|
||||||
txt=122
|
|
||||||
rtf=122
|
|
||||||
docx=122
|
docx=122
|
||||||
|
rtf=122
|
||||||
|
txt=122
|
||||||
|
|
||||||
|
|
||||||
[drives16]
|
[drives16]
|
||||||
r=58
|
r=58
|
||||||
@@ -263,6 +262,7 @@ b=50
|
|||||||
u=57
|
u=57
|
||||||
c=19
|
c=19
|
||||||
|
|
||||||
|
|
||||||
[drives32]
|
[drives32]
|
||||||
r=49
|
r=49
|
||||||
f=3
|
f=3
|
||||||
|
@@ -1,2 +1,2 @@
|
|||||||
[AutoRun]
|
[AutoRun]
|
||||||
icon=KolibriOS_icon.ico
|
icon=kolibrios.ico
|
||||||
|
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
Binary file not shown.
Before Width: | Height: | Size: 40 KiB After Width: | Height: | Size: 44 KiB |
@@ -27,7 +27,6 @@ Guide=network/webview|/kolibrios/res/guide/guide.htm,92
|
|||||||
DosBox=/k/emul/dosbox/dosbox,11
|
DosBox=/k/emul/dosbox/dosbox,11
|
||||||
Dicty=/k/utils/DICTY.KEX,79
|
Dicty=/k/utils/DICTY.KEX,79
|
||||||
fNav=/k/utils/fNav/fNav,93
|
fNav=/k/utils/fNav/fNav,93
|
||||||
TextEdit=/k/utils/tedit/t_edit,58
|
|
||||||
CncEditor=/k/utils/cnc_editor/cnc_editor,15
|
CncEditor=/k/utils/cnc_editor/cnc_editor,15
|
||||||
Life=/k/demos/life2,13
|
Life=/k/demos/life2,13
|
||||||
Calc+=/k/utils/calcplus,4
|
Calc+=/k/utils/calcplus,4
|
||||||
@@ -36,5 +35,4 @@ THashView=/k/utils/thashview,124
|
|||||||
Notes=/k/utils/notes,117
|
Notes=/k/utils/notes,117
|
||||||
Table=table,28
|
Table=table,28
|
||||||
FtpClient=network/ftpc,90
|
FtpClient=network/ftpc,90
|
||||||
Quark=/k/utils/quark,85
|
|
||||||
|
|
||||||
|
@@ -67,15 +67,9 @@ icon=98
|
|||||||
exec=/kolibrios/utils/thashview
|
exec=/kolibrios/utils/thashview
|
||||||
icon=124
|
icon=124
|
||||||
|
|
||||||
[TextEdit]
|
[FASM]
|
||||||
exec=/kolibrios/utils/tedit/t_edit
|
exec=/sys/develop/fasm
|
||||||
icon=9
|
icon=10
|
||||||
next=$CodeEdit
|
|
||||||
|
|
||||||
[Quark]
|
|
||||||
exec=/kolibrios/utils/quark
|
|
||||||
icon=85
|
|
||||||
next=$TinyPad
|
|
||||||
|
|
||||||
[TinyPad]
|
[TinyPad]
|
||||||
exec=/sys/tinypad
|
exec=/sys/tinypad
|
||||||
@@ -100,11 +94,11 @@ lua=$CodeEdit
|
|||||||
ob07=$CodeEdit
|
ob07=$CodeEdit
|
||||||
json=$CodeEdit
|
json=$CodeEdit
|
||||||
|
|
||||||
asm=$TinyPad
|
asm=$CodeEdit
|
||||||
inc=$TinyPad
|
inc=$CodeEdit
|
||||||
mac=$TinyPad
|
mac=$CodeEdit
|
||||||
inf=$TinyPad
|
inf=$CodeEdit
|
||||||
conf=$TinyPad
|
conf=$CodeEdit
|
||||||
|
|
||||||
ini=$TextEditor
|
ini=$TextEditor
|
||||||
|
|
||||||
|
@@ -16,6 +16,7 @@ Freecell=games/freecell,68
|
|||||||
Pong=games/pong,101
|
Pong=games/pong,101
|
||||||
Pong3=games/pong3,12
|
Pong3=games/pong3,12
|
||||||
Arcanii=/kg/arcanii,12
|
Arcanii=/kg/arcanii,12
|
||||||
|
Dino=games/dino,129
|
||||||
|
|
||||||
[Arcade]
|
[Arcade]
|
||||||
LaserTank=/kg/lasertank/lasertank,72
|
LaserTank=/kg/lasertank/lasertank,72
|
||||||
|
@@ -1,128 +0,0 @@
|
|||||||
|
|
||||||
KolibriOS team
|
|
||||||
--------------
|
|
||||||
|
|
||||||
We thank everyone who helped to create and develop KolibriOS,
|
|
||||||
many of whom are listed below ~
|
|
||||||
|
|
||||||
System Programming (loaders, kernel, etc.) :
|
|
||||||
- Alver
|
|
||||||
- art_zh
|
|
||||||
- Asper
|
|
||||||
- Boppan
|
|
||||||
- CleverMouse
|
|
||||||
- Coldy
|
|
||||||
- Doczom
|
|
||||||
- dunkaist
|
|
||||||
- Galkov
|
|
||||||
- Evgeny Grechnikov 'Diamond'
|
|
||||||
- Andrey Halyavin 'halyavin'
|
|
||||||
- hidnplayr
|
|
||||||
- Andrey Ignatiev 'andrew_programmer'
|
|
||||||
- Johnny_B
|
|
||||||
- kasTIgar
|
|
||||||
- Sergey Kuzmin 'Wildwest'
|
|
||||||
- Mihail Lisovin 'Mihasik'
|
|
||||||
- Maxis
|
|
||||||
- Iliya Mihailov 'Ghost'
|
|
||||||
- Nable
|
|
||||||
- NoName
|
|
||||||
- Ivan Poddubny
|
|
||||||
- rgimad
|
|
||||||
- Rus
|
|
||||||
- Mihail Semenyako 'mike.dld'
|
|
||||||
- Sergey Semyonov 'Serge'
|
|
||||||
- shurf
|
|
||||||
- SPraid
|
|
||||||
- Alexey Teplov '<Lrz>'
|
|
||||||
- Trans
|
|
||||||
- tsdima
|
|
||||||
- turbanoff
|
|
||||||
- VaStaNi
|
|
||||||
- Marat Zakiyanov 'Mario79'
|
|
||||||
|
|
||||||
Application Programming (new creations, porting or revisions) :
|
|
||||||
- Alver
|
|
||||||
- art_zh
|
|
||||||
- Artemonische
|
|
||||||
- Asper
|
|
||||||
- barsuk
|
|
||||||
- Vitaly Bendik 'mistifi(ator'
|
|
||||||
- Mario Birkner 'cYfleXX'
|
|
||||||
- Aleksandr Bogomaz 'Albom'
|
|
||||||
- chaykin
|
|
||||||
- CleverMouse
|
|
||||||
- DedOk
|
|
||||||
- Dron2004
|
|
||||||
- dunkaist
|
|
||||||
- ealex
|
|
||||||
- Pavlushin Evgeny 'Exis'
|
|
||||||
- Maxim Evtihov 'Maxxxx32'
|
|
||||||
- Gluk
|
|
||||||
- Evgeny Grechnikov 'Diamond'
|
|
||||||
- Maciej Guba 'macgub'
|
|
||||||
- Andrey Halyavin 'halyavin'
|
|
||||||
- Hex
|
|
||||||
- iadn
|
|
||||||
- Andrey Ignatiev 'andrew_programmer'
|
|
||||||
- IgorA
|
|
||||||
- Andrey Ivushkin 'Willow'
|
|
||||||
- Johnny_B
|
|
||||||
- kaitz
|
|
||||||
- Vasiliy Kosenko 'vkos'
|
|
||||||
- Sergey Kuzmin 'Wildwest'
|
|
||||||
- Kirill Lipatov 'Leency'
|
|
||||||
- Mihail Lisovin 'Mihasik'
|
|
||||||
- Alexander Meshcheryakov 'Self-Perfection'
|
|
||||||
- Iliya Mihailov 'Ghost'
|
|
||||||
- Navanax
|
|
||||||
- nilgui
|
|
||||||
- Olaf
|
|
||||||
- hidden player 'hidnplayr'
|
|
||||||
- Ivan Poddubny
|
|
||||||
- Pterox
|
|
||||||
- Rus
|
|
||||||
- Pavel Rymovski 'Heavyiron'
|
|
||||||
- Mihail Semenyako 'mike.dld'
|
|
||||||
- Sergey Semyonov 'Serge'
|
|
||||||
- SPraid
|
|
||||||
- staper
|
|
||||||
- Alexey Teplov '<Lrz>'
|
|
||||||
- trolly
|
|
||||||
- tsdima
|
|
||||||
- vectoroc
|
|
||||||
- YELLOW
|
|
||||||
- Vladimir Zaitsev 'Rabid Rabbit'
|
|
||||||
- Marat Zakiyanov 'Mario79'
|
|
||||||
|
|
||||||
Documentation and Translation :
|
|
||||||
- Andrew Dent 'ace_dent'
|
|
||||||
- Evgeny Grechnikov 'Diamond'
|
|
||||||
- Hex
|
|
||||||
|
|
||||||
Infrastructure (forum, site and SVN hosting) :
|
|
||||||
- CodeWorld
|
|
||||||
- mike.dld
|
|
||||||
|
|
||||||
Design (logo, background, icons) :
|
|
||||||
- goglus
|
|
||||||
- Kirill Lipatov 'Leency'
|
|
||||||
- Alexey Teplov '<Lrz>'
|
|
||||||
|
|
||||||
Testing and Support :
|
|
||||||
- AqwAS
|
|
||||||
- Ataualpa
|
|
||||||
- Vitaly Bendik 'mistifi(ator'
|
|
||||||
- camper
|
|
||||||
- ChE
|
|
||||||
- Dmitry the Sorcerer
|
|
||||||
- Galkov
|
|
||||||
- Maxis
|
|
||||||
- Mike
|
|
||||||
- Pavel Rymovski 'Heavyiron'
|
|
||||||
- vectoroc
|
|
||||||
- Veliant
|
|
||||||
|
|
||||||
and many others...
|
|
||||||
|
|
||||||
KolibriOS team
|
|
@@ -30,12 +30,13 @@ Installation: BIOS mode
|
|||||||
* (if you have already loaded KolibriOS by any method) run the program
|
* (if you have already loaded KolibriOS by any method) run the program
|
||||||
`rdsave` and select the variant corresponding to floppy;
|
`rdsave` and select the variant corresponding to floppy;
|
||||||
|
|
||||||
* (for DOS and Windows) run subjoined install.bat;
|
* for DOS use DskImage;
|
||||||
|
|
||||||
|
* for Windows use WinImage, RawWrite for Windows or its analogue;
|
||||||
|
|
||||||
* with program WinImage or its analogue (e.g. DiskExplorer);
|
* if you have Linux then try smth like
|
||||||
|
`dd if=/pathto/kolibri.img of=/dev/fd0 bs=512 count=2880`
|
||||||
* (for Linux) set "executable" attribute to subjoined script install.sh
|
Wait. And make sure to umount the drive before ejecting the disk.
|
||||||
and run it.
|
|
||||||
|
|
||||||
Now you can boot from floppy (keep it in drive, reboot, set in BIOS option of
|
Now you can boot from floppy (keep it in drive, reboot, set in BIOS option of
|
||||||
floppy booting).
|
floppy booting).
|
@@ -106,8 +106,8 @@ name=15
|
|||||||
path=/SYS/GAMES/15
|
path=/SYS/GAMES/15
|
||||||
param=
|
param=
|
||||||
ico=34
|
ico=34
|
||||||
x=-271
|
x=-67
|
||||||
y=-67
|
y=-203
|
||||||
[0F]
|
[0F]
|
||||||
name=DOCPACK
|
name=DOCPACK
|
||||||
path=DOCPACK
|
path=DOCPACK
|
||||||
@@ -116,8 +116,8 @@ ico=8
|
|||||||
x=-67
|
x=-67
|
||||||
y=68
|
y=68
|
||||||
[10]
|
[10]
|
||||||
name=BOARD
|
name=DBGBOARD
|
||||||
path=/SYS/DEVELOP/BOARD
|
path=/SYS/DEVELOP/DBGBOARD
|
||||||
param=
|
param=
|
||||||
ico=19
|
ico=19
|
||||||
x=-135
|
x=-135
|
||||||
@@ -165,12 +165,12 @@ ico=21
|
|||||||
x=68
|
x=68
|
||||||
y=-135
|
y=-135
|
||||||
[17]
|
[17]
|
||||||
name=FLAPPY-BIRD
|
name=FLOPPY-BIRD
|
||||||
path=/SYS/GAMES/FLPYBIRD
|
path=/SYS/GAMES/FLPYBIRD
|
||||||
param=
|
param=
|
||||||
ico=49
|
ico=49
|
||||||
x=-271
|
x=-135
|
||||||
y=-135
|
y=-203
|
||||||
[18]
|
[18]
|
||||||
name=KOSILKA
|
name=KOSILKA
|
||||||
path=/SYS/GAMES/KOSILKA
|
path=/SYS/GAMES/KOSILKA
|
||||||
@@ -248,3 +248,10 @@ param=
|
|||||||
ico=125
|
ico=125
|
||||||
x=204
|
x=204
|
||||||
y=136
|
y=136
|
||||||
|
[23]
|
||||||
|
name=DINO
|
||||||
|
path=/sys/games/dino
|
||||||
|
param=
|
||||||
|
ico=129
|
||||||
|
x=-203
|
||||||
|
y=-203
|
||||||
|
@@ -49,15 +49,15 @@
|
|||||||
11 Fplay Video * |/kolibrios/media/fplay
|
11 Fplay Video * |/kolibrios/media/fplay
|
||||||
#5 **** DEV
|
#5 **** DEV
|
||||||
54 Flat Assembler |develop/fasm
|
54 Flat Assembler |develop/fasm
|
||||||
27 Example.asm |example.asm
|
27 Example.asm |/sys/example.asm
|
||||||
49 Debugger |develop/mtdbg
|
49 Debugger mtdbg |develop/mtdbg
|
||||||
|
49 Debugger koldbg * |/kolibrios/develop/koldbg
|
||||||
13 Debug Board |develop/board
|
13 Debug Board |develop/board
|
||||||
09 KPack Archiver |kpack
|
09 KPack Archiver |kpack
|
||||||
20 Diff Tool |develop/diff
|
20 Diff Tool |develop/diff
|
||||||
52 Shared resources |/sys/@reshare
|
52 Shared resources |/sys/@reshare
|
||||||
34 Base Converter |develop/h2d2b
|
34 Base Converter |develop/h2d2b
|
||||||
59 Character table |develop/ASCIIVju
|
59 Charsets Viewer |develop/CHARSETS
|
||||||
59 Key ASCII-codes |develop/keyascii
|
|
||||||
59 Key SCAN-codes |develop/scancode
|
59 Key SCAN-codes |develop/scancode
|
||||||
#6 **** EMUL
|
#6 **** EMUL
|
||||||
24 DOSBox * |/kolibrios/emul/DosBox/dosbox
|
24 DOSBox * |/kolibrios/emul/DosBox/dosbox
|
||||||
|
@@ -1,98 +0,0 @@
|
|||||||
KolibriOS allows some configures for user requirements. This file describes
|
|
||||||
such settings.
|
|
||||||
For this it is required to change files on ramdisk. If you boot from floppy,
|
|
||||||
there is no problem - change files on floppy. If you use floppy image
|
|
||||||
kolibri.img - either use program which can work with images (for example,
|
|
||||||
WinImage or DiskExplorer) or make changes from Kolibri and do not forget to
|
|
||||||
save ramdisk (with the application rdsave).
|
|
||||||
|
|
||||||
1. Desktop background.
|
|
||||||
a) Replace in the file autorun.dat (it is text file) the parameter for
|
|
||||||
the program kiv ("\S__background.jpg") the name of file to the full
|
|
||||||
Kolibri-path to JPEG-, BMP-, GIF- or PNG-image which you like. It will be
|
|
||||||
new background. background.jpg now can be deleted.
|
|
||||||
b) Replace in the file autorun.dat "/SYS/KIV \S__background.jpg" to
|
|
||||||
"/sys/PIC4" (spaces are ignored by the loader program). You can delete
|
|
||||||
BACKGROUND.JPG. New background will be nice texture.
|
|
||||||
For programmers: you can change texture and color, for this in file
|
|
||||||
pic4.asm from distributive sources change:
|
|
||||||
* to change texture: value of variable usearray (string 585)
|
|
||||||
from ptarray to any of ptarray2,ptarray3, ..., ptarray9.
|
|
||||||
* to change color: in procedure check_parameters find string with
|
|
||||||
the appropriate comment (string 127) and add to 0x40000 1 or 2.
|
|
||||||
After changes recompile pic4, by request pack with kpack (in
|
|
||||||
distributive is so), inject to ramdisk.
|
|
||||||
c) Two previous points sets background for a long time (until next
|
|
||||||
reinstall). It is possible also after Kolibri boot to set background
|
|
||||||
until next reboot in programs kiv, iconedit, pic4, tinyfrac.
|
|
||||||
|
|
||||||
2. Configure system menu.
|
|
||||||
Data for system menu are placed in text file menu.dat. It can be edited
|
|
||||||
in any editor keeping format. If you use Kolibri TINYPAD, you
|
|
||||||
must disable option "optimal fill on saving".
|
|
||||||
|
|
||||||
3. Configure autorun.
|
|
||||||
The list of programs, loading when system boots, is read out from
|
|
||||||
text file autorun.dat. It can be changed in any editor keeping format.
|
|
||||||
For example, you can add as first item start of application startmus
|
|
||||||
(delay 1, without arguments) to hear distinctive melody each time at
|
|
||||||
booting.
|
|
||||||
For programmers: you can change melody, for this edit file startmus.asm
|
|
||||||
from distributive sources: there you can choose melody from three existing
|
|
||||||
or add your own - format of melody is explained in documentation on
|
|
||||||
subfunction 55 of function 55.
|
|
||||||
|
|
||||||
4. Icons list.
|
|
||||||
The list of desktop icons is kept in text file icons.dat, but to
|
|
||||||
change the list it is recommended to use icon manager icon (which can
|
|
||||||
be run from desktop context menu). Images for icons are kept in file
|
|
||||||
iconstrp.gif, which must be edited by external graphics editor.
|
|
||||||
|
|
||||||
5. Skin.
|
|
||||||
The skin can be viewed and changed dynamically with the application
|
|
||||||
desktop; after you choose most likely for you skin, you can make it
|
|
||||||
permanent by replace file default.skn, from which system loads skin at
|
|
||||||
booting. Standard skin is included to ramdisk, some alternative skins can
|
|
||||||
be found in distributive in the folder Skins. You can also create your own
|
|
||||||
skin, for detailed comments look at distributive sources.
|
|
||||||
|
|
||||||
6. Sound.
|
|
||||||
Driver sound.sys, which is located on ramdisk by default, is intended for
|
|
||||||
south bridges Intel ICH, ICH0, ICH2, ICH3, ICH4, ICH5, ICH6, ICH7 and
|
|
||||||
NVidia NForce, NForce 2, NForce 3, NForce 4. If you have SB16-compatible
|
|
||||||
sound card, remove sound.sys and rename sb16.sys from the folder 'drivers'
|
|
||||||
to sound.sys. If you have controller sis7012, rename sis.sys from root
|
|
||||||
folder in distributive to sound.sys and copy it to floppy or image to
|
|
||||||
the folder 'drivers' (replacing old). The driver fm801.sys can be useful
|
|
||||||
for ForceMedia FM801 controller, the driver vt8235.sys - for VIA chipsets,
|
|
||||||
the driver emu10k1x.sys - for EMU10K1X audioprocessor, all are intended to
|
|
||||||
similar with previous case use: copy it to the folder 'drivers' as
|
|
||||||
'sound.sys', replacing the old file.
|
|
||||||
|
|
||||||
7. Bus Disconnect.
|
|
||||||
The application KBD (Kolibri Bus Disconnect) allows to disconnect processor
|
|
||||||
bus in order to decrease its temperature, a side effect is noise in AC97
|
|
||||||
codecs. The application can be loaded automatically at system boot, to do
|
|
||||||
this add to autorun (file autorun.dat, see 3) a line of the form
|
|
||||||
"/SYS/KBD BOOT 20 # Enable Bus Disconnect for AMD K7 processors".
|
|
||||||
|
|
||||||
8. Network settings.
|
|
||||||
Initial network configuration is read at boot from the ini file
|
|
||||||
/sys/network/zeroconf.ini. You can set automatic detection with DHCP
|
|
||||||
("type=zeroconf") or fixed IP addresses ("type=static").
|
|
||||||
|
|
||||||
9. Configuration of videomode for ATI videocards.
|
|
||||||
The driver for ATI can set required screen resolution with refresh rate
|
|
||||||
at system startup, if they are supported. The list of supported modes
|
|
||||||
can be obtained with the utility VMODE, it allows also manual mode setting.
|
|
||||||
To set the mode at startup one must pass to the loader ATIKMS, described
|
|
||||||
in AUTORUN.DAT, the argument -m<width>x<height>x<refresh>, e.g.
|
|
||||||
|
|
||||||
/SYS/DRIVERS/ATIKMS -m1024x768x60 -1
|
|
||||||
|
|
||||||
Pay attention that the format of autorun.dat does not allow spaces in
|
|
||||||
command line, so there must be no other arguments.
|
|
||||||
Also one can disable ability to change videomodes and all linked actions
|
|
||||||
at startup by passing the argument -n. The driver will still support
|
|
||||||
hardware cursor. To fully disable the driver, one can simply delete
|
|
||||||
the line with ATIKMS from autorun.dat.
|
|
@@ -1,347 +0,0 @@
|
|||||||
|
|
||||||
GNU GENERAL PUBLIC LICENSE
|
|
||||||
|
|
||||||
Version 2, June 1991
|
|
||||||
|
|
||||||
|
|
||||||
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
|
|
||||||
675 Mass Ave, Cambridge, MA 02139, USA
|
|
||||||
|
|
||||||
Everyone is permitted to copy and distribute verbatim copies
|
|
||||||
of this license document, but changing it is not allowed.
|
|
||||||
|
|
||||||
|
|
||||||
Preamble
|
|
||||||
|
|
||||||
The licenses for most software are designed to take away your
|
|
||||||
freedom to share and change it. By contrast, the GNU General Public
|
|
||||||
License is intended to guarantee your freedom to share and change free
|
|
||||||
software--to make sure the software is free for all its users. This
|
|
||||||
General Public License applies to most of the Free Software
|
|
||||||
Foundation's software and to any other program whose authors commit to
|
|
||||||
using it. (Some other Free Software Foundation software is covered by
|
|
||||||
the GNU Library General Public License instead.) You can apply it to
|
|
||||||
your programs, too.
|
|
||||||
|
|
||||||
When we speak of free software, we are referring to freedom, not
|
|
||||||
price. Our General Public Licenses are designed to make sure that you
|
|
||||||
have the freedom to distribute copies of free software (and charge for
|
|
||||||
this service if you wish), that you receive source code or can get it
|
|
||||||
if you want it, that you can change the software or use pieces of it
|
|
||||||
in new free programs; and that you know you can do these things.
|
|
||||||
|
|
||||||
To protect your rights, we need to make restrictions that forbid
|
|
||||||
anyone to deny you these rights or to ask you to surrender the rights.
|
|
||||||
These restrictions translate to certain responsibilities for you if you
|
|
||||||
distribute copies of the software, or if you modify it.
|
|
||||||
|
|
||||||
For example, if you distribute copies of such a program, whether
|
|
||||||
gratis or for a fee, you must give the recipients all the rights that
|
|
||||||
you have. You must make sure that they, too, receive or can get the
|
|
||||||
source code. And you must show them these terms so they know their
|
|
||||||
rights.
|
|
||||||
|
|
||||||
We protect your rights with two steps: (1) copyright the software, and
|
|
||||||
(2) offer you this license which gives you legal permission to copy,
|
|
||||||
distribute and/or modify the software.
|
|
||||||
|
|
||||||
Also, for each author's protection and ours, we want to make certain
|
|
||||||
that everyone understands that there is no warranty for this free
|
|
||||||
software. If the software is modified by someone else and passed on, we
|
|
||||||
want its recipients to know that what they have is not the original, so
|
|
||||||
that any problems introduced by others will not reflect on the original
|
|
||||||
authors' reputations.
|
|
||||||
|
|
||||||
Finally, any free program is threatened constantly by software
|
|
||||||
patents. We wish to avoid the danger that redistributors of a free
|
|
||||||
program will individually obtain patent licenses, in effect making the
|
|
||||||
program proprietary. To prevent this, we have made it clear that any
|
|
||||||
patent must be licensed for everyone's free use or not licensed at all.
|
|
||||||
|
|
||||||
The precise terms and conditions for copying, distribution and
|
|
||||||
modification follow.
|
|
||||||
|
|
||||||
|
|
||||||
GNU GENERAL PUBLIC LICENSE
|
|
||||||
|
|
||||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
|
||||||
|
|
||||||
|
|
||||||
0. This License applies to any program or other work which contains
|
|
||||||
a notice placed by the copyright holder saying it may be distributed
|
|
||||||
under the terms of this General Public License. The "Program", below,
|
|
||||||
refers to any such program or work, and a "work based on the Program"
|
|
||||||
means either the Program or any derivative work under copyright law:
|
|
||||||
that is to say, a work containing the Program or a portion of it,
|
|
||||||
either verbatim or with modifications and/or translated into another
|
|
||||||
language. (Hereinafter, translation is included without limitation in
|
|
||||||
the term "modification".) Each licensee is addressed as "you".
|
|
||||||
|
|
||||||
Activities other than copying, distribution and modification are not
|
|
||||||
covered by this License; they are outside its scope. The act of
|
|
||||||
running the Program is not restricted, and the output from the Program
|
|
||||||
is covered only if its contents constitute a work based on the
|
|
||||||
Program (independent of having been made by running the Program).
|
|
||||||
Whether that is true depends on what the Program does.
|
|
||||||
|
|
||||||
1. You may copy and distribute verbatim copies of the Program's
|
|
||||||
source code as you receive it, in any medium, provided that you
|
|
||||||
conspicuously and appropriately publish on each copy an appropriate
|
|
||||||
copyright notice and disclaimer of warranty; keep intact all the
|
|
||||||
notices that refer to this License and to the absence of any warranty;
|
|
||||||
and give any other recipients of the Program a copy of this License
|
|
||||||
along with the Program.
|
|
||||||
|
|
||||||
You may charge a fee for the physical act of transferring a copy, and
|
|
||||||
you may at your option offer warranty protection in exchange for a fee.
|
|
||||||
|
|
||||||
2. You may modify your copy or copies of the Program or any portion
|
|
||||||
of it, thus forming a work based on the Program, and copy and
|
|
||||||
distribute such modifications or work under the terms of Section 1
|
|
||||||
above, provided that you also meet all of these conditions:
|
|
||||||
|
|
||||||
a) You must cause the modified files to carry prominent notices
|
|
||||||
stating that you changed the files and the date of any change.
|
|
||||||
|
|
||||||
b) You must cause any work that you distribute or publish, that in
|
|
||||||
whole or in part contains or is derived from the Program or any
|
|
||||||
part thereof, to be licensed as a whole at no charge to all third
|
|
||||||
parties under the terms of this License.
|
|
||||||
|
|
||||||
c) If the modified program normally reads commands interactively
|
|
||||||
when run, you must cause it, when started running for such
|
|
||||||
interactive use in the most ordinary way, to print or display an
|
|
||||||
announcement including an appropriate copyright notice and a
|
|
||||||
notice that there is no warranty (or else, saying that you provide
|
|
||||||
a warranty) and that users may redistribute the program under
|
|
||||||
these conditions, and telling the user how to view a copy of this
|
|
||||||
License. (Exception: if the Program itself is interactive but
|
|
||||||
does not normally print such an announcement, your work based on
|
|
||||||
the Program is not required to print an announcement.)
|
|
||||||
|
|
||||||
These requirements apply to the modified work as a whole. If
|
|
||||||
identifiable sections of that work are not derived from the Program,
|
|
||||||
and can be reasonably considered independent and separate works in
|
|
||||||
themselves, then this License, and its terms, do not apply to those
|
|
||||||
sections when you distribute them as separate works. But when you
|
|
||||||
distribute the same sections as part of a whole which is a work based
|
|
||||||
on the Program, the distribution of the whole must be on the terms of
|
|
||||||
this License, whose permissions for other licensees extend to the
|
|
||||||
entire whole, and thus to each and every part regardless of who wrote it.
|
|
||||||
|
|
||||||
Thus, it is not the intent of this section to claim rights or contest
|
|
||||||
your rights to work written entirely by you; rather, the intent is to
|
|
||||||
exercise the right to control the distribution of derivative or
|
|
||||||
collective works based on the Program.
|
|
||||||
|
|
||||||
In addition, mere aggregation of another work not based on the Program
|
|
||||||
with the Program (or with a work based on the Program) on a volume of
|
|
||||||
a storage or distribution medium does not bring the other work under
|
|
||||||
the scope of this License.
|
|
||||||
|
|
||||||
3. You may copy and distribute the Program (or a work based on it,
|
|
||||||
under Section 2) in object code or executable form under the terms of
|
|
||||||
Sections 1 and 2 above provided that you also do one of the following:
|
|
||||||
|
|
||||||
a) Accompany it with the complete corresponding machine-readable
|
|
||||||
source code, which must be distributed under the terms of Sections
|
|
||||||
1 and 2 above on a medium customarily used for software interchange; or,
|
|
||||||
|
|
||||||
b) Accompany it with a written offer, valid for at least three
|
|
||||||
years, to give any third party, for a charge no more than your
|
|
||||||
cost of physically performing source distribution, a complete
|
|
||||||
machine-readable copy of the corresponding source code, to be
|
|
||||||
distributed under the terms of Sections 1 and 2 above on a medium
|
|
||||||
customarily used for software interchange; or,
|
|
||||||
|
|
||||||
c) Accompany it with the information you received as to the offer
|
|
||||||
to distribute corresponding source code. (This alternative is
|
|
||||||
allowed only for noncommercial distribution and only if you
|
|
||||||
received the program in object code or executable form with such
|
|
||||||
an offer, in accord with Subsection b above.)
|
|
||||||
|
|
||||||
The source code for a work means the preferred form of the work for
|
|
||||||
making modifications to it. For an executable work, complete source
|
|
||||||
code means all the source code for all modules it contains, plus any
|
|
||||||
associated interface definition files, plus the scripts used to
|
|
||||||
control compilation and installation of the executable. However, as a
|
|
||||||
special exception, the source code distributed need not include
|
|
||||||
anything that is normally distributed (in either source or binary
|
|
||||||
form) with the major components (compiler, kernel, and so on) of the
|
|
||||||
operating system on which the executable runs, unless that component
|
|
||||||
itself accompanies the executable.
|
|
||||||
|
|
||||||
If distribution of executable or object code is made by offering
|
|
||||||
access to copy from a designated place, then offering equivalent
|
|
||||||
access to copy the source code from the same place counts as
|
|
||||||
distribution of the source code, even though third parties are not
|
|
||||||
compelled to copy the source along with the object code.
|
|
||||||
|
|
||||||
4. You may not copy, modify, sublicense, or distribute the Program
|
|
||||||
except as expressly provided under this License. Any attempt
|
|
||||||
otherwise to copy, modify, sublicense or distribute the Program is
|
|
||||||
void, and will automatically terminate your rights under this License.
|
|
||||||
However, parties who have received copies, or rights, from you under
|
|
||||||
this License will not have their licenses terminated so long as such
|
|
||||||
parties remain in full compliance.
|
|
||||||
|
|
||||||
5. You are not required to accept this License, since you have not
|
|
||||||
signed it. However, nothing else grants you permission to modify or
|
|
||||||
distribute the Program or its derivative works. These actions are
|
|
||||||
prohibited by law if you do not accept this License. Therefore, by
|
|
||||||
modifying or distributing the Program (or any work based on the
|
|
||||||
Program), you indicate your acceptance of this License to do so, and
|
|
||||||
all its terms and conditions for copying, distributing or modifying
|
|
||||||
the Program or works based on it.
|
|
||||||
|
|
||||||
6. Each time you redistribute the Program (or any work based on the
|
|
||||||
Program), the recipient automatically receives a license from the
|
|
||||||
original licensor to copy, distribute or modify the Program subject to
|
|
||||||
these terms and conditions. You may not impose any further
|
|
||||||
restrictions on the recipients' exercise of the rights granted herein.
|
|
||||||
You are not responsible for enforcing compliance by third parties to
|
|
||||||
this License.
|
|
||||||
|
|
||||||
7. If, as a consequence of a court judgment or allegation of patent
|
|
||||||
infringement or for any other reason (not limited to patent issues),
|
|
||||||
conditions are imposed on you (whether by court order, agreement or
|
|
||||||
otherwise) that contradict the conditions of this License, they do not
|
|
||||||
excuse you from the conditions of this License. If you cannot
|
|
||||||
distribute so as to satisfy simultaneously your obligations under this
|
|
||||||
License and any other pertinent obligations, then as a consequence you
|
|
||||||
may not distribute the Program at all. For example, if a patent
|
|
||||||
license would not permit royalty-free redistribution of the Program by
|
|
||||||
all those who receive copies directly or indirectly through you, then
|
|
||||||
the only way you could satisfy both it and this License would be to
|
|
||||||
refrain entirely from distribution of the Program.
|
|
||||||
|
|
||||||
If any portion of this section is held invalid or unenforceable under
|
|
||||||
any particular circumstance, the balance of the section is intended to
|
|
||||||
apply and the section as a whole is intended to apply in other
|
|
||||||
circumstances.
|
|
||||||
|
|
||||||
It is not the purpose of this section to induce you to infringe any
|
|
||||||
patents or other property right claims or to contest validity of any
|
|
||||||
such claims; this section has the sole purpose of protecting the
|
|
||||||
integrity of the free software distribution system, which is
|
|
||||||
implemented by public license practices. Many people have made
|
|
||||||
generous contributions to the wide range of software distributed
|
|
||||||
through that system in reliance on consistent application of that
|
|
||||||
system; it is up to the author/donor to decide if he or she is willing
|
|
||||||
to distribute software through any other system and a licensee cannot
|
|
||||||
impose that choice.
|
|
||||||
|
|
||||||
This section is intended to make thoroughly clear what is believed to
|
|
||||||
be a consequence of the rest of this License.
|
|
||||||
|
|
||||||
8. If the distribution and/or use of the Program is restricted in
|
|
||||||
certain countries either by patents or by copyrighted interfaces, the
|
|
||||||
original copyright holder who places the Program under this License
|
|
||||||
may add an explicit geographical distribution limitation excluding
|
|
||||||
those countries, so that distribution is permitted only in or among
|
|
||||||
countries not thus excluded. In such case, this License incorporates
|
|
||||||
the limitation as if written in the body of this License.
|
|
||||||
|
|
||||||
9. The Free Software Foundation may publish revised and/or new versions
|
|
||||||
of the General Public License from time to time. Such new versions will
|
|
||||||
be similar in spirit to the present version, but may differ in detail to
|
|
||||||
address new problems or concerns.
|
|
||||||
|
|
||||||
Each version is given a distinguishing version number. If the Program
|
|
||||||
specifies a version number of this License which applies to it and "any
|
|
||||||
later version", you have the option of following the terms and conditions
|
|
||||||
either of that version or of any later version published by the Free
|
|
||||||
Software Foundation. If the Program does not specify a version number of
|
|
||||||
this License, you may choose any version ever published by the Free Software
|
|
||||||
Foundation.
|
|
||||||
|
|
||||||
10. If you wish to incorporate parts of the Program into other free
|
|
||||||
programs whose distribution conditions are different, write to the author
|
|
||||||
to ask for permission. For software which is copyrighted by the Free
|
|
||||||
Software Foundation, write to the Free Software Foundation; we sometimes
|
|
||||||
make exceptions for this. Our decision will be guided by the two goals
|
|
||||||
of preserving the free status of all derivatives of our free software and
|
|
||||||
of promoting the sharing and reuse of software generally.
|
|
||||||
|
|
||||||
NO WARRANTY
|
|
||||||
|
|
||||||
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
|
||||||
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
|
||||||
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
|
||||||
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
|
||||||
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
|
||||||
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
|
||||||
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
|
||||||
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
|
||||||
REPAIR OR CORRECTION.
|
|
||||||
|
|
||||||
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
|
||||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
|
||||||
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
|
||||||
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
|
||||||
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
|
||||||
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
|
||||||
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
|
||||||
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
|
||||||
POSSIBILITY OF SUCH DAMAGES.
|
|
||||||
|
|
||||||
END OF TERMS AND CONDITIONS
|
|
||||||
|
|
||||||
Appendix: How to Apply These Terms to Your New Programs
|
|
||||||
|
|
||||||
If you develop a new program, and you want it to be of the greatest
|
|
||||||
possible use to the public, the best way to achieve this is to make it
|
|
||||||
free software which everyone can redistribute and change under these terms.
|
|
||||||
|
|
||||||
To do so, attach the following notices to the program. It is safest
|
|
||||||
to attach them to the start of each source file to most effectively
|
|
||||||
convey the exclusion of warranty; and each file should have at least
|
|
||||||
the "copyright" line and a pointer to where the full notice is found.
|
|
||||||
|
|
||||||
<one line to give the program's name and a brief idea of what it does.>
|
|
||||||
Copyright (C) 19yy <name of author>
|
|
||||||
|
|
||||||
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 2 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, write to the Free Software
|
|
||||||
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
||||||
|
|
||||||
Also add information on how to contact you by electronic and paper mail.
|
|
||||||
|
|
||||||
If the program is interactive, make it output a short notice like this
|
|
||||||
when it starts in an interactive mode:
|
|
||||||
|
|
||||||
Gnomovision version 69, Copyright (C) 19yy name of author
|
|
||||||
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
|
||||||
This is free software, and you are welcome to redistribute it
|
|
||||||
under certain conditions; type `show c' for details.
|
|
||||||
|
|
||||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
|
||||||
parts of the General Public License. Of course, the commands you use may
|
|
||||||
be called something other than `show w' and `show c'; they could even be
|
|
||||||
mouse-clicks or menu items--whatever suits your program.
|
|
||||||
|
|
||||||
You should also get your employer (if you work as a programmer) or your
|
|
||||||
school, if any, to sign a "copyright disclaimer" for the program, if
|
|
||||||
necessary. Here is a sample; alter the names:
|
|
||||||
|
|
||||||
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
|
|
||||||
`Gnomovision' (which makes passes at compilers) written by James Hacker.
|
|
||||||
|
|
||||||
<signature of Ty Coon>, 1 April 1989
|
|
||||||
Ty Coon, President of Vice
|
|
||||||
|
|
||||||
This General Public License does not permit incorporating your program into
|
|
||||||
proprietary programs. If your program is a subroutine library, you may
|
|
||||||
consider it more useful to permit linking proprietary applications with the
|
|
||||||
library. If this is what you want to do, use the GNU Library General
|
|
||||||
Public License instead of this License.
|
|
@@ -1,48 +0,0 @@
|
|||||||
PHARAOH TOMB
|
|
||||||
|
|
||||||
The purpose of the game is to open passage by moving hieroglyphs on entrance
|
|
||||||
in the next room of the pharaoh tomb (8X8). You can exchange two hieroglyphs
|
|
||||||
located near each other on vertical or horizontal if after such transposition
|
|
||||||
a combination of three or more identical pictures abreast is generated. Such
|
|
||||||
lines are disappeared immediately, and free place is filled by hieroglyphs
|
|
||||||
which "falled" from top. Missing hieroglyphs are generated randomly. For
|
|
||||||
disappearing hieroglyphs points are added. For combination of hieroglyphs
|
|
||||||
number of points is calculated by formula L+(L+1)^(N-3), but no more than
|
|
||||||
20*L*N, where N is number of hieroglyphs in combination, and L is level number.
|
|
||||||
To pass to the next level it is required to remove certain number of
|
|
||||||
hieroglyphs (different on each level). From below of panel with hieroglyphs is
|
|
||||||
located field which indicates how many is passed and how many is remained.
|
|
||||||
|
|
||||||
1st level - 500
|
|
||||||
2nd level - 450
|
|
||||||
3rd level - 400
|
|
||||||
4th level - 350
|
|
||||||
5th level - 300
|
|
||||||
6th level and further - 50*(L+1)
|
|
||||||
|
|
||||||
On the first level combinations are composed from 6 states of hieroglyphs.
|
|
||||||
With each new level one new hieroglyph is involved, but no more than 10
|
|
||||||
(i.e. starting from 5th level and further 10 different hieroglyphs are
|
|
||||||
involved, not counting special ones).
|
|
||||||
|
|
||||||
Starting from 2nd level for each combination from 4 and more hieroglyphs,
|
|
||||||
and also for passing each fourth of level the player gets "free" hieroglyph -
|
|
||||||
it is usual hieroglyph (generated randomly), which keeps "in pocket" of player
|
|
||||||
and can be necessarily inserted by player to any place and replace thus
|
|
||||||
located there hieroglyph.
|
|
||||||
|
|
||||||
Starting from 3rd level for each combination from 5 and more hieroglyphs,
|
|
||||||
and also for passing each third of level the player gets "universal key",
|
|
||||||
which matches to any combination of hieroglyphs and to several different
|
|
||||||
combination simultaneously.
|
|
||||||
|
|
||||||
Starting from 4th level for each combination from 6 and more hieroglyphs,
|
|
||||||
and also for passing a half of level the player gets "space crooker",
|
|
||||||
which allows, when is used, to make 3 moves (not obligatory successive) at
|
|
||||||
diagonal.
|
|
||||||
|
|
||||||
The player can not have simultaneously more than 1 extra hieroglyph of each
|
|
||||||
type (1 usual, 1 joker and 1 crooker).
|
|
||||||
|
|
||||||
The game is ended, if the player can not make any combination with existing
|
|
||||||
hieroglyphs.
|
|
@@ -1,25 +0,0 @@
|
|||||||
Ini-files are text files of special contents:
|
|
||||||
|
|
||||||
[name of first section]
|
|
||||||
Key1=value1
|
|
||||||
Key2=value2
|
|
||||||
;comment
|
|
||||||
[name of second section]
|
|
||||||
Key3=value3
|
|
||||||
|
|
||||||
All lines beginning with ';' are considered as comments and ignored.
|
|
||||||
|
|
||||||
Keyboard shortcuts are described as follows:
|
|
||||||
any number of modificators Ctrl/Alt/Shift/LCtrl/LAlt/LShift/RCtrl/RAlt/RShift,
|
|
||||||
followed by latin letter, digit or key name. The following keys have a name:
|
|
||||||
F1 - F12
|
|
||||||
Home; End; PgUp; PgDn; Ins, equivalently, Insert; Del, equivalently, Delete;
|
|
||||||
Tab; Plus; Esc; Enter; Backspace; Space;
|
|
||||||
Left (left arrow); Right (right arrow); Up (up arrow); Down (down arrow).
|
|
||||||
The string for shortcut is case-insensitive. Parts of the string
|
|
||||||
can be written without delimiters or with '+' between parts. Examples:
|
|
||||||
Ctrl+Alt+Backspace
|
|
||||||
RCtrl+RShift
|
|
||||||
ShiftA
|
|
||||||
f10
|
|
||||||
shiftalt5
|
|
@@ -1,92 +0,0 @@
|
|||||||
Minimal system requirements for KolibriOS:
|
|
||||||
* CPU: Pentium, AMD 5x86 or Cyrix 5x86 without MMX with frequency 100 MHz
|
|
||||||
* RAM: 8 Mb
|
|
||||||
* Videocard: supporting VGA (640*480*16 mode) or Vesa
|
|
||||||
* Keyboard: AT
|
|
||||||
* Mouse: COM, PS/2 or USB
|
|
||||||
|
|
||||||
The system can boot from any of following devices:
|
|
||||||
- Floppy 3.5
|
|
||||||
- IDE HDD LBA
|
|
||||||
- CD/DVD
|
|
||||||
- USB Flash
|
|
||||||
|
|
||||||
I. Install to floppy.
|
|
||||||
1) Insert clean floppy without bad sectors to drive.
|
|
||||||
2) Write to it kolibri.img image with any available methods:
|
|
||||||
a) (if you have already loaded Kolibri by any method) run the program
|
|
||||||
rdsave and select the variant corresponding to floppy
|
|
||||||
b) (for DOS and Windows) run subjoined install.bat
|
|
||||||
c) with program WinImage or its analogue (e.g. DiskExplorer)
|
|
||||||
d) (for Linux) set "executable" attribute to subjoined script install.sh
|
|
||||||
and run it
|
|
||||||
Now you can boot from floppy (keep it in drive, reboot, set in BIOS option
|
|
||||||
of floppy booting).
|
|
||||||
|
|
||||||
II. Install to hard disk.
|
|
||||||
There exists several loaders from hard disk. All are oriented on DOS and
|
|
||||||
Windows users. Also standard Linux-loader GRUB can be used. All methods work
|
|
||||||
with file kolibri.img. If you already have old version of Kolibri installed,
|
|
||||||
simply replace kolibri.img to new. If you have booted from LiveCD, which
|
|
||||||
does not contain the file kolibri.img, Kolibri can create it independently,
|
|
||||||
to do this, run the program rdsave, enter the file name for saving and select
|
|
||||||
the corresponding variant. Of course, in this case Kolibri must be able to
|
|
||||||
write to file system of selected partitions, currently this means that
|
|
||||||
only FAT volumes are ok.
|
|
||||||
1) Most of all features has the loader mtldr (author - Diamond) - works with
|
|
||||||
DOS/Win95/98/NT/2k/XP/Vista, supports FAT32 and NTFS, has installator, can
|
|
||||||
be installed to any folder on disk.
|
|
||||||
To install, simply run file HD_load\mtldr_install.exe and select image file.
|
|
||||||
Apropos, by this way you can install several images. There is also
|
|
||||||
variant of install by hand - for those who want to know what installator
|
|
||||||
does: directions in HD_load\mtldr
|
|
||||||
2) There is also the loader MeOSLoad (author - Trans, expanded by Mario79) -
|
|
||||||
works with DOS/Win95/98, supports FAT32, it is placed with the instruction
|
|
||||||
to the folder HD_load\MeOSLoad.
|
|
||||||
3) Moreover, there exist a program which allow load Kolibri directly from
|
|
||||||
Windows 95/98/Me (of course, unloading it) - 9x2klbr (author - Diamond),
|
|
||||||
supports FAT32 and NTFS.
|
|
||||||
4) Usage of the loader GRUB. Place the file 'memdisk' to the folder 'boot'
|
|
||||||
or to the partition used for Kolibri.
|
|
||||||
a) For GRUB2, in the folder /etc/grub.d add to one of files next lines:
|
|
||||||
|
|
||||||
menuentry 'KolibriOS' {
|
|
||||||
linux16 (hd[Hard disk number],[partition number])[path]/memdisk
|
|
||||||
initrd16 (hd[Hard disk number],[partition number])[path]/kolibri.img
|
|
||||||
}
|
|
||||||
|
|
||||||
example:
|
|
||||||
|
|
||||||
menuentry 'KolibriOS' {
|
|
||||||
linux16 (hd0,msdos1)/boot/memdisk
|
|
||||||
initrd16 (hd0,msdos1)/boot/kolibri.img
|
|
||||||
}
|
|
||||||
|
|
||||||
then, run in terminal 'sudo update-grub'.
|
|
||||||
|
|
||||||
b) For old GRUB, add to the configuration file 'menu.lst' next lines:
|
|
||||||
|
|
||||||
title KolibriOS
|
|
||||||
kernel (hd[Hard disk number],[partition number])[path]/memdisk
|
|
||||||
initrd (hd[Hard disk number],[partition number])[path]/kolibri.img
|
|
||||||
|
|
||||||
Remember that numeration in GRUB starts from 0. Example:
|
|
||||||
|
|
||||||
title KolibriOS
|
|
||||||
kernel (hd0,0)/boot/memdisk
|
|
||||||
initrd (hd0,3)/kolibri/kolibri.img
|
|
||||||
|
|
||||||
III. Install to USB-Flash-drive.
|
|
||||||
The special loader for FAT32-volumes has been written, it and its installer
|
|
||||||
to flash drive can be found in the folder HD_load\USB_Boot.
|
|
||||||
For not-FAT32 drives you may use article placed in the folder
|
|
||||||
HD_load\USB_Boot_old.
|
|
||||||
|
|
||||||
IV. Install to CD and DVD.
|
|
||||||
There exists special LiveCD-version of Kolibri, which contains
|
|
||||||
in addition to standard things some "heavy" (in Kolibri standards) programs:
|
|
||||||
the ported emulator DosBox, games "Fixed Rate Pig" and "sokoban".
|
|
||||||
You can also create bootable CD or DVD on the base of kolibri.img, adding
|
|
||||||
anything what you want, in the mode of floppy emulation.
|
|
||||||
The appropriate actions are determined by used CD/DVD write program
|
|
||||||
(focus on words such as "boot floppy emulation").
|
|
@@ -16,10 +16,11 @@ I. Install to floppy.
|
|||||||
2) Write to it kolibri.img image with any available methods:
|
2) Write to it kolibri.img image with any available methods:
|
||||||
a) (if you have already loaded Kolibri by any method) run the program
|
a) (if you have already loaded Kolibri by any method) run the program
|
||||||
rdsave and select the variant corresponding to floppy
|
rdsave and select the variant corresponding to floppy
|
||||||
b) (for DOS and Windows) run subjoined install.bat
|
b) for DOS use DskImage;
|
||||||
c) with program WinImage or its analogue (e.g. DiskExplorer)
|
c) for Windows use WinImage, RawWrite for Windows or its analogue;
|
||||||
d) (for Linux) set "executable" attribute to subjoined script install.sh
|
d) if you have Linux then try smth like
|
||||||
and run it
|
`dd if=/pathto/kolibri.img of=/dev/fd0 bs=512 count=2880`
|
||||||
|
Wait. And make sure to umount the drive before ejecting the disk.
|
||||||
Now you can boot from floppy (keep it in drive, reboot, set in BIOS option
|
Now you can boot from floppy (keep it in drive, reboot, set in BIOS option
|
||||||
of floppy booting).
|
of floppy booting).
|
||||||
|
|
@@ -1,94 +0,0 @@
|
|||||||
Control keys in KFar.
|
|
||||||
For panels:
|
|
||||||
arrows, Home, End - move cursor on active panel
|
|
||||||
Tab - change active panel
|
|
||||||
Enter - enter to folder or run program under cursor
|
|
||||||
F3 - view file under cursor
|
|
||||||
F5 - copy selected items or item under cursor to another panel
|
|
||||||
Shift+F5 - copy selected items or item under cursor to the same panel
|
|
||||||
(of course, you must specify another file name)
|
|
||||||
F7 - create folder
|
|
||||||
F8 - delete selected elements or element under cursor
|
|
||||||
F10 - exit
|
|
||||||
Alt+F1/Alt+F2 - change drive on left/right panel
|
|
||||||
Alt+F9 - resize window to maximum possible size and restore initial size
|
|
||||||
Ctrl+F3 - sort file/folders on active panel by name
|
|
||||||
Ctrl+F4 - sort by extension
|
|
||||||
Ctrl+F5 - sort by date/time of last modification
|
|
||||||
Ctrl+F6 - sort by size
|
|
||||||
Ctrl+F7 - don't sort (display in order as on disk)
|
|
||||||
Ctrl+F8 - sort by date/time of creation
|
|
||||||
Ctrl+F9 - sort by date/time of last access
|
|
||||||
F12 - display screens menu
|
|
||||||
Ctrl+R - refresh active panel
|
|
||||||
Menu - display context menu for file under cursor
|
|
||||||
LeftCtrl+1/2/3/4 - select panel mode (brief/medium/full/wide)
|
|
||||||
RightCtrl+0..9 - go to folder specified in the section [FolderShortcuts]
|
|
||||||
of ini-file as Shortcut0..9 accordingly
|
|
||||||
Insert - select/deselect current element
|
|
||||||
Grey[+] - select files and folders with mask
|
|
||||||
Grey[-] - deselect files and folders with mask
|
|
||||||
The mask is like "*.asm,*.inc|template.asm" (which selects all files with
|
|
||||||
extensions ASM and INC except for template.asm): one or more elementary
|
|
||||||
including masks with standard mean of '*' and '?', delimited by ',' or ';',
|
|
||||||
optionally followed by '|' and one or more elementary excluding masks.
|
|
||||||
The mask "*.*" specifies all files having '.' in name (i.e. files with
|
|
||||||
any non-empty extension); to specify all files use "*".
|
|
||||||
Grey[*] - invert selection
|
|
||||||
Alt+<letter or digit> - position cursor on name of file/folder,
|
|
||||||
beginning from selected letter or digit; it shows fast find window,
|
|
||||||
in which one can enter subsequent symbols of file/folder name to more precise
|
|
||||||
selection, and also Ctrl+Enter/Shift+Ctrl+Enter to move to the next/previous
|
|
||||||
panel item, whose name starts with specified letters
|
|
||||||
|
|
||||||
For viewer:
|
|
||||||
Esc = F3 = F10 = Numpad5 - exit
|
|
||||||
Down - line down
|
|
||||||
PgDn - page down
|
|
||||||
Up - line up
|
|
||||||
PgUp - page up
|
|
||||||
Home - to begin of file
|
|
||||||
End - to end of file
|
|
||||||
Left - character left
|
|
||||||
Right - character right
|
|
||||||
Ctrl+Left - in Text-mode 20 characters left;
|
|
||||||
in Hex-mode 1 byte left
|
|
||||||
Ctrl+Right - in Text-mode 20 characters right;
|
|
||||||
in Hex-mode 1 byte right
|
|
||||||
Ctrl+Shift+Left - start of lines on the screen
|
|
||||||
Ctrl+Shift+Right - end of lines on the screen
|
|
||||||
F2 - toggle line wrap
|
|
||||||
F4 - toggle Text <-> Hex mode
|
|
||||||
F8 - toggle encoding cp866 (DOS) <-> cp1251 (Win)
|
|
||||||
Shift+F8 - encoding tables menu
|
|
||||||
F12 - display screens menu
|
|
||||||
F7 - search a string from the current position in the file
|
|
||||||
(the string and settings are set in the following dialog)
|
|
||||||
Shift+F7 - continue to search a string
|
|
||||||
(use the string and settings from last search by F7)
|
|
||||||
Alt+F9 - resize window to maximum possible size and restore initial size
|
|
||||||
|
|
||||||
For editor:
|
|
||||||
Esc = F10 - exit; if the file was modified, the question about save necessity
|
|
||||||
will follow
|
|
||||||
Shift+F10 - save and exit
|
|
||||||
F2 - save the file
|
|
||||||
Down - move cursor down to one line
|
|
||||||
PgDn - move cursor down to one page
|
|
||||||
Up - move cursor up to one line
|
|
||||||
PgUp - move cursor up to one page
|
|
||||||
Left - move cursor left to one symbol
|
|
||||||
Right - move cursor right to one symbol
|
|
||||||
Home - move cursor to the beginning of the current line
|
|
||||||
End - move cursor to the end of the current line
|
|
||||||
Backspace - delete the symbol before the cursor
|
|
||||||
Del - delete the symbol under the cursor
|
|
||||||
Ins - toggle insert/replace mode when entering symbols
|
|
||||||
F12 - display screens menu
|
|
||||||
Alt+F9 - resize window to maximum possible size and restore initial size
|
|
||||||
F7 - search a string starting from the position next to the cursor
|
|
||||||
(the string and search settings are prompted in the following dialog)
|
|
||||||
Shift+F7 - continue to search a string (same as F7 without settings dialog)
|
|
||||||
|
|
||||||
diamond
|
|
||||||
mailto:diamondz@land.ru
|
|
@@ -1,212 +0,0 @@
|
|||||||
Introduction.
|
|
||||||
|
|
||||||
mtdbg is a debugger for Kolibri operating system. This documentation describes
|
|
||||||
debugger features and work with it. Feel free to ask on our board (mostly
|
|
||||||
in Russian, but has an English forum) -- board.kolibrios.org.
|
|
||||||
|
|
||||||
General description.
|
|
||||||
|
|
||||||
In each moment of time mtdbg can debug only one program. I will call it
|
|
||||||
loaded program. If no program is loaded, overwhelming majority of debugging
|
|
||||||
actions is disabled.
|
|
||||||
|
|
||||||
mtdbg is controlled by command line, entering from keyboard. Command line
|
|
||||||
is drawn in the bottom part of debugger window. Debugger handles standard
|
|
||||||
input keys Backspace,Delete,Home,End,left/right arrows.
|
|
||||||
Commands are case-insensitive. Delimiter is arbitrary nonzero number of spaces.
|
|
||||||
|
|
||||||
At any moment mtdbg can be terminated by command "quit" (without arguments).
|
|
||||||
You can also simply press to close button in the right upper corner of window.
|
|
||||||
|
|
||||||
When debugger is started without command string parameters, no program is
|
|
||||||
loaded. Also mtdbg can be started with command string, in this case it tries
|
|
||||||
to load program with the name pointed to in first parameter in command string
|
|
||||||
and parameters pointed to following (if present).
|
|
||||||
|
|
||||||
If no program is loaded, you can load a program with the command
|
|
||||||
load <full name of executable file> [<parameters>]
|
|
||||||
Examples:
|
|
||||||
load /sys/example
|
|
||||||
LOAD /sys/aclock w200 h200
|
|
||||||
LoaD /hd0/1/menuetos/dosbox/dosbox
|
|
||||||
All that stays after first space after executable file name, is exactly passed
|
|
||||||
to program as command string.
|
|
||||||
The command "load" reports result in the messages window (a little higher
|
|
||||||
than command line window). If program was loaded successfully, there will
|
|
||||||
be the appropriate message; otherwise the message will contain error reason.
|
|
||||||
Most probable error is "file not found" if wrong file name is given.
|
|
||||||
|
|
||||||
The debugger can load files with information on symbols in the program
|
|
||||||
(labels, global variables) - text files, each line of which has format
|
|
||||||
0x<hex_value_of_addr> <name>
|
|
||||||
(lines, which do not have such format, are ignored). Such file can be created
|
|
||||||
by hand or generated automatically by fasm. Evident load can be done by command
|
|
||||||
load-symbols <full name of symbols file>
|
|
||||||
Furthermore, when the debugger executes the command "load", it checks for
|
|
||||||
presence of file with name as of loading binary and extension '.dbg'
|
|
||||||
(/sys/example.dbg in the first of examples above), and if such file exists,
|
|
||||||
the debugger loads it automatically (with the message "Symbols loaded", if
|
|
||||||
all is OK).
|
|
||||||
|
|
||||||
It can happen so that loaded program is packed. General principle of
|
|
||||||
program packing is following: at first input file is packed (by some
|
|
||||||
pack algorithm), then is appended small code which gets control at program
|
|
||||||
start, unpacks input code in the memory and then passes control to it.
|
|
||||||
If program is packed, it "real" code is not visible and for debugging it is
|
|
||||||
needed previously to pass through unpacker code.
|
|
||||||
mtdbg determines most of existing packers (mxp,mxp_lzo,mxp_nrv,mtappack)
|
|
||||||
and in this case suggests to automatically go to "real" code. It is recommended
|
|
||||||
to accept (press 'y' or <Enter>), but you can refuse too. At refusal and if
|
|
||||||
program is packed by something unknown the command "unpack" (without arguments)
|
|
||||||
can be used. Call it only in the case when you are sure that program is packed
|
|
||||||
and control has not already went to main code! [Starting from Kolibri 0.6.5.0,
|
|
||||||
this paragraph is no more actual, because one can pack applications as all
|
|
||||||
binary files with kpack and the unpacker code in this case is located in the
|
|
||||||
kernel and is transparent for debug.]
|
|
||||||
|
|
||||||
Loaded program can be terminated by the command "terminate" (without
|
|
||||||
arguments). The command "detach" (without arguments) detaches from program,
|
|
||||||
after that program continues execution normally, as if there was no debugger.
|
|
||||||
After both this commands program stops to be debugged.
|
|
||||||
|
|
||||||
It is possible to anew load program for debugging by the command "reload"
|
|
||||||
(without arguments). If there is already loaded program, it is terminated
|
|
||||||
and new instance is started (from the beginning) (with the same command
|
|
||||||
string), in this case the command is similar to the commands
|
|
||||||
terminate
|
|
||||||
load <last program name> <last program arguments>
|
|
||||||
Otherwise is loaded anew latest program, which was debugged (in the current
|
|
||||||
seance of work with mtdbg) (with the same command string), i.e. is similar to
|
|
||||||
load <last program name> <last program arguments>,
|
|
||||||
but the command "reload" in both cases is shorter and more convenient;
|
|
||||||
moreover, "load" thinks that new program is loaded and moves data window
|
|
||||||
(see below) to zero address, and "reload" keeps current address.
|
|
||||||
|
|
||||||
The command "help", which can be shorten to "h", is always available.
|
|
||||||
All commands are divided on groups.
|
|
||||||
"help" without arguments displays the list of command groups.
|
|
||||||
"help" with group name displays the list of commands in this group with short
|
|
||||||
comments.
|
|
||||||
"help" with command name displays information about given command.
|
|
||||||
Examples:
|
|
||||||
help
|
|
||||||
help control
|
|
||||||
h LoaD
|
|
||||||
|
|
||||||
The debugger window consists from the following items enumerated from up
|
|
||||||
to down:
|
|
||||||
- status string. If there is loaded program, shows its name and state
|
|
||||||
("Running/Paused"), otherwise reports "No program loaded".
|
|
||||||
- registers window - shows values of general-purpose registers, register eip
|
|
||||||
and states of single flags: CF,PF,AF,ZF,SF,DF,OF: if flag is cleared, then
|
|
||||||
is displayed lower-case letter, if flag is set, then upper-case one.
|
|
||||||
Registers which are changed from previous moment are highlighted in green.
|
|
||||||
- data window (dump window) - shows memory contains of loaded program
|
|
||||||
- code window (disassembler window) - shows program code as disassembled
|
|
||||||
instructions
|
|
||||||
- messages window
|
|
||||||
- command line window
|
|
||||||
|
|
||||||
Dump window can display data starting from any address, to this serves
|
|
||||||
the command
|
|
||||||
d <expression>
|
|
||||||
The command "d" without arguments flicks dump window down.
|
|
||||||
The same is for code window and the command
|
|
||||||
u <expression>
|
|
||||||
or simply "u".
|
|
||||||
Examples:
|
|
||||||
d esi - displays data at address esi (e.g. is useful before execution of
|
|
||||||
instruction rep movsb)
|
|
||||||
d esp - displays stack
|
|
||||||
u eip - disassembles instruction starting from the current
|
|
||||||
|
|
||||||
Expressions in mtdbg can include
|
|
||||||
- hexadecimal constants
|
|
||||||
- names of all general-purpose registers (8 32-bits, 8 16-bits and
|
|
||||||
8 8-bits) and register eip; values of 16- and 8-bits registers are padded
|
|
||||||
with zeroes to 32 bits
|
|
||||||
- four arithmetic operations +,-,*,/ (with standard priorities) and
|
|
||||||
brackets
|
|
||||||
- [if symbols information was loaded] names, loaded from dbg-file
|
|
||||||
All calculations are realized modulo 2^32.
|
|
||||||
Examples of expressions:
|
|
||||||
eax
|
|
||||||
eip+2
|
|
||||||
ecx-esi-1F
|
|
||||||
al+AH*bl
|
|
||||||
ax + 2* bH*(eip+a73)
|
|
||||||
3*esi*di/EAX
|
|
||||||
The command
|
|
||||||
? <expression>
|
|
||||||
calculates value of specified expression.
|
|
||||||
|
|
||||||
Values of registers in loaded program can be changed by the command "r", which
|
|
||||||
has two absolutely equivalent forms:
|
|
||||||
r <register> <expression>
|
|
||||||
r <register>=<expression>
|
|
||||||
(in both cases you can place spaces as you want). Register can be any of
|
|
||||||
above-mentioned - 24 general-purpose registers and eip.
|
|
||||||
|
|
||||||
|
|
||||||
Let us assume that the command "load" was successfully load program for
|
|
||||||
debugging.
|
|
||||||
Immediately after loading program is suspended and does not execute.
|
|
||||||
Press Ctrl+F7 (command-line analog is the command "s") to make one step
|
|
||||||
in loaded program, after that control returns to debugger which displays
|
|
||||||
new contains of registers and memory. The system call "int 40h" is considered
|
|
||||||
as one step.
|
|
||||||
Pressing Ctrl+F8 (command-line analog is the command "p") also makes step in
|
|
||||||
loaded program, but procedure calls, string operations with prefix
|
|
||||||
rep/repz/repnz and 'loop' cycles are executed as one step.
|
|
||||||
The one-step commands are used usually on single program sections,
|
|
||||||
when it is needed, for example, to regularly trace registers value and/or
|
|
||||||
some variables in memory.
|
|
||||||
The command
|
|
||||||
g <expression>
|
|
||||||
resumes program execution and waits until control goes to eip=given address,
|
|
||||||
and in this moment suspends program. The command "g" without arguments
|
|
||||||
simply resumes execution.
|
|
||||||
|
|
||||||
To suspend program use the command "stop" (without arguments).
|
|
||||||
|
|
||||||
In the typical situation it is required that program is executed normally,
|
|
||||||
but when some conditions are satisfied, program suspends and debugger receives
|
|
||||||
control. The corresponding conditions are called breakpoints or simply breaks.
|
|
||||||
Primary type of breakpoints is to concrete address, i.e. stop execution at
|
|
||||||
eip=<given value>. Such breakpoints are set by the command
|
|
||||||
bp <expression>
|
|
||||||
Note that if there is only one such breakpoint, there is more convenient to use
|
|
||||||
the command "g" with argument instead.
|
|
||||||
|
|
||||||
Other type of breakpoints is on access to given memory area. Maximum
|
|
||||||
numbers of such breakpoints is 4 (because hardware features of x86 processors
|
|
||||||
are used and they allows only 4).
|
|
||||||
bpm <expression> - breaks at any access to byte at given address
|
|
||||||
bpm w <expression> - breaks at write to byte at given address
|
|
||||||
bpmb,bpmw,bpmd <expression> - breaks to access correspondingly to byte, word
|
|
||||||
or dword at given address. bpm <20> bpmb are synonyms. When bpmw,bpmd are used,
|
|
||||||
address must be aligned according to correspondingly word bound (i.e. be even)
|
|
||||||
or dword bound (i.e. be divisible by 4).
|
|
||||||
bpmb,bpmw,bpmd w <expression> - similar to break on write.
|
|
||||||
|
|
||||||
To see the list of set breakpoints use the command "bl", to obtain information
|
|
||||||
on concrete breakpoint use "bl <number>". Unnecessary breakpoints can be
|
|
||||||
deleted with the command "bc <number>", temporarily unnecessary can be
|
|
||||||
disabled by the command "bd <number>", when they will be needed again,
|
|
||||||
use the command "be <number>".
|
|
||||||
|
|
||||||
Remarks.
|
|
||||||
|
|
||||||
1. When debugging your own programs you can put in code instructions
|
|
||||||
int3 (pay attention to absence of space!). Such instruction causes
|
|
||||||
exception at normal run, which leads to process termination, but
|
|
||||||
at work under debugger it is simply activated (with the message
|
|
||||||
"int3 command at xxx"). This feature allows to not think about addresses
|
|
||||||
to use in the commands g and/or bp.
|
|
||||||
2. All output and all input is oriented on hexadecimal scale of notation.
|
|
||||||
3. When program is executed, registers and data window shows information
|
|
||||||
regarding to moment before resume; you can not set registers value in this
|
|
||||||
mode. Nevertheless the command "d" in this mode shows information that
|
|
||||||
was true in the moment of command delivery.
|
|
||||||
|
|
||||||
diamond
|
|
@@ -1,26 +0,0 @@
|
|||||||
OpenDialog - file open dialog:
|
|
||||||
1) Move the cursor inside the panel:
|
|
||||||
a) up and down arrows (including add. keyb.) - move the cursor one position up or down.
|
|
||||||
b) PageUp - list page up.
|
|
||||||
c) PageDown - list page down.
|
|
||||||
d) Home - move to the top of directory.
|
|
||||||
e) End - move to the end of directory.
|
|
||||||
2) Enter - operations with the selected file:
|
|
||||||
a) enter the folder.
|
|
||||||
b) choose a file.
|
|
||||||
3) Using the menu:
|
|
||||||
Alt+F1 - call disk selection menu.
|
|
||||||
Alt+F2 - call sort menu.
|
|
||||||
Alt+F3 - call filter menu.
|
|
||||||
Inside the menu:
|
|
||||||
Arrow cursor up and down - move to item.
|
|
||||||
Esc - close the window.
|
|
||||||
Enter - close the window with confirmation.
|
|
||||||
Arrow cursor left and right - move into the adjacent menu.
|
|
||||||
4) Ctrl+R - update the contents of a directory.
|
|
||||||
5) Backspace - exit from the directory.
|
|
||||||
6) Insert - highlighted by red color the file at the cursor and move the cursor one position down.
|
|
||||||
7) Ctrl+A and Ctrl+(NumPad(+) Up) - select all files and directories in the active panel, with the exception of the directory '..'
|
|
||||||
8) Ctrl+(NumPad(-) Up) - deselect all files and directories in the active panel with the exception of the directory '..'
|
|
||||||
9) Ctrl+(NumPad(*) Up) - invert the selection of all files and directories in the active panel, with the exception of the directory '..'
|
|
||||||
10) Esc - shutdown the program, without opening of a file.
|
|
@@ -106,8 +106,8 @@ name=15
|
|||||||
path=/SYS/GAMES/15
|
path=/SYS/GAMES/15
|
||||||
param=
|
param=
|
||||||
ico=34
|
ico=34
|
||||||
x=-271
|
x=-67
|
||||||
y=-67
|
y=-203
|
||||||
[0F]
|
[0F]
|
||||||
name=DOCPACK
|
name=DOCPACK
|
||||||
path=DOCPACK
|
path=DOCPACK
|
||||||
@@ -116,8 +116,8 @@ ico=8
|
|||||||
x=-67
|
x=-67
|
||||||
y=68
|
y=68
|
||||||
[10]
|
[10]
|
||||||
name=BOARD
|
name=DBGBOARD
|
||||||
path=/SYS/DEVELOP/BOARD
|
path=/SYS/DEVELOP/DBGBOARD
|
||||||
param=
|
param=
|
||||||
ico=19
|
ico=19
|
||||||
x=-135
|
x=-135
|
||||||
@@ -165,12 +165,12 @@ ico=21
|
|||||||
x=68
|
x=68
|
||||||
y=-135
|
y=-135
|
||||||
[17]
|
[17]
|
||||||
name=FLAPPY-BIRD
|
name=FLOPPY-BIRD
|
||||||
path=/SYS/GAMES/FLPYBIRD
|
path=/SYS/GAMES/FLPYBIRD
|
||||||
param=
|
param=
|
||||||
ico=49
|
ico=49
|
||||||
x=-271
|
x=-135
|
||||||
y=-135
|
y=-203
|
||||||
[18]
|
[18]
|
||||||
name=KOSILKA
|
name=KOSILKA
|
||||||
path=/SYS/GAMES/KOSILKA
|
path=/SYS/GAMES/KOSILKA
|
||||||
@@ -248,3 +248,10 @@ param=
|
|||||||
ico=125
|
ico=125
|
||||||
x=204
|
x=204
|
||||||
y=136
|
y=136
|
||||||
|
[23]
|
||||||
|
name=DINO
|
||||||
|
path=/sys/games/dino
|
||||||
|
param=
|
||||||
|
ico=129
|
||||||
|
x=-203
|
||||||
|
y=-203
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
00 3D Demos > |@2
|
00 3D Demos > |@2
|
||||||
00 Gr<47>ficos > |@3
|
00 Gr<47>ficos > |@3
|
||||||
00 Multimedia > |@4
|
00 Multimedia > |@4
|
||||||
00 Emulators > |@18
|
00 Emulators > |@6
|
||||||
00 Desarrollo > |@5
|
00 Desarrollo > |@5
|
||||||
00 Sistema > |@7
|
00 Sistema > |@7
|
||||||
00 Proceso de datos > |@11
|
00 Proceso de datos > |@11
|
||||||
@@ -45,25 +45,27 @@
|
|||||||
#4 **** MULTIMEDIA
|
#4 **** MULTIMEDIA
|
||||||
16 Pixie Audioplayer |media/pixie
|
16 Pixie Audioplayer |media/pixie
|
||||||
16 AC97SND Audioplayer |media/ac97snd
|
16 AC97SND Audioplayer |media/ac97snd
|
||||||
16 Fplay - video |/kolibrios/media/fplay
|
16 Fplay - video * |/kolibrios/media/fplay
|
||||||
16 MidAMP |media/midamp
|
16 MidAMP |media/midamp
|
||||||
#5 **** DESARROLLO
|
#5 **** DESARROLLO
|
||||||
00 Ejemplos > |@6
|
27 Example.asm |/sys/example.asm
|
||||||
16 Archiver KPack |kpack
|
|
||||||
16 Flat Assembler |develop/fasm
|
16 Flat Assembler |develop/fasm
|
||||||
|
16 Archiver KPack |kpack
|
||||||
16 Diff Tool |develop/diff
|
16 Diff Tool |develop/diff
|
||||||
16 Debug Board |develop/board
|
16 Debug Board |develop/board
|
||||||
16 Debugger |develop/mtdbg
|
49 Debugger mtdbg |develop/mtdbg
|
||||||
|
49 Debugger koldbg * |/kolibrios/develop/koldbg
|
||||||
16 Hex2Dec2Bin |develop/h2d2b
|
16 Hex2Dec2Bin |develop/h2d2b
|
||||||
16 Tabla de caracteres |ASCIIVju
|
16 Tabla de caracteres |develop/CHARSETS
|
||||||
16 C<>digos ASCII |develop/keyascii
|
|
||||||
16 C<>digos SCAN |develop/scancode
|
16 C<>digos SCAN |develop/scancode
|
||||||
#6 **** EJEMPLOS
|
#6 **** EMULATORS
|
||||||
16 Threads |develop/thread
|
24 DOSBox * |/kolibrios/emul/DosBox/dosbox
|
||||||
16 Selector de color |demos/cslide
|
16 e80 (ZX Spectrum) * |/kolibrios/emul/e80/e80
|
||||||
16 Ejemplo de consola 1 |develop/testcon2
|
23 FCE Ultra (NES) * |/kolibrios/emul/fceu/fceu
|
||||||
16 Ejemplo de consola 2 |develop/test_gets
|
23 DGEN (Sega) * |/kolibrios/emul/dgen/dgen
|
||||||
16 Ejemplo de Messages |demos/use_mb
|
23 Gameboy Color * |/kolibrios/emul/gameboy
|
||||||
|
23 ZSNES * |/kolibrios/emul/zsnes/zsnes
|
||||||
|
16 ScummVM * |/kolibrios/emul/scummvm
|
||||||
#7 **** SISTEMA
|
#7 **** SISTEMA
|
||||||
00 Archivos > |@10
|
00 Archivos > |@10
|
||||||
00 Accesibilidad > |@17
|
00 Accesibilidad > |@17
|
||||||
@@ -131,12 +133,4 @@
|
|||||||
#17 **** ACCESIBILIDAD
|
#17 **** ACCESIBILIDAD
|
||||||
16 Ampliaci<63>n de pantalla|magnify
|
16 Ampliaci<63>n de pantalla|magnify
|
||||||
16 Teclado en pantalla |zkey
|
16 Teclado en pantalla |zkey
|
||||||
#18 **** EMULATORS
|
|
||||||
24 DOSBox * |/kolibrios/emul/DosBox/dosbox
|
|
||||||
16 e80 (ZX Spectrum) * |/kolibrios/emul/e80/e80
|
|
||||||
23 FCE Ultra (NES) * |/kolibrios/emul/fceu/fceu
|
|
||||||
23 DGEN (Sega) * |/kolibrios/emul/dgen/dgen
|
|
||||||
23 Gameboy Color * |/kolibrios/emul/gameboy
|
|
||||||
23 ZSNES * |/kolibrios/emul/zsnes/zsnes
|
|
||||||
16 ScummVM * |/kolibrios/emul/scummvm
|
|
||||||
##
|
##
|
||||||
|
@@ -1,8 +0,0 @@
|
|||||||
KolibriOS 0.7.7.0+ nightly build, Live CD version.
|
|
||||||
|
|
||||||
This is a bootable CD-ROM. To run, reboot your computer and select the
|
|
||||||
correct drive from the system settings or BIOS if required.
|
|
||||||
|
|
||||||
The minimum system requirements and installation instructions can be found
|
|
||||||
in 'install.txt'. Further details for configuring and customizing KolibriOS
|
|
||||||
are given in 'config.txt'.
|
|
@@ -1,5 +0,0 @@
|
|||||||
KolibriOS 0.7.7.0+ nightly build.
|
|
||||||
|
|
||||||
The minimum system requirements and installation instructions can be found
|
|
||||||
in 'install.txt'. Further details for configuring and customizing KolibriOS
|
|
||||||
are given in 'config.txt'.
|
|
@@ -1,98 +0,0 @@
|
|||||||
KolibriOS allows some configures for user requirements. This file describes
|
|
||||||
such settings.
|
|
||||||
For this it is required to change files on ramdisk. If you boot from floppy,
|
|
||||||
there is no problem - change files on floppy. If you use floppy image
|
|
||||||
kolibri.img - either use program which can work with images (for example,
|
|
||||||
WinImage or DiskExplorer) or make changes from Kolibri and do not forget to
|
|
||||||
save ramdisk (with the application rdsave).
|
|
||||||
|
|
||||||
1. Desktop background.
|
|
||||||
a) Replace in the file autorun.dat (it is text file) the parameter for
|
|
||||||
the program kiv ("\S__background.jpg") the name of file to the full
|
|
||||||
Kolibri-path to JPEG-, BMP-, GIF- or PNG-image which you like. It will be
|
|
||||||
new background. background.jpg now can be deleted.
|
|
||||||
b) Replace in the file autorun.dat "/SYS/KIV \S__background.jpg" to
|
|
||||||
"/sys/PIC4" (spaces are ignored by the loader program). You can delete
|
|
||||||
BACKGROUND.JPG. New background will be nice texture.
|
|
||||||
For programmers: you can change texture and color, for this in file
|
|
||||||
pic4.asm from distributive sources change:
|
|
||||||
* to change texture: value of variable usearray (string 585)
|
|
||||||
from ptarray to any of ptarray2,ptarray3, ..., ptarray9.
|
|
||||||
* to change color: in procedure check_parameters find string with
|
|
||||||
the appropriate comment (string 127) and add to 0x40000 1 or 2.
|
|
||||||
After changes recompile pic4, by request pack with kpack (in
|
|
||||||
distributive is so), inject to ramdisk.
|
|
||||||
c) Two previous points sets background for a long time (until next
|
|
||||||
reinstall). It is possible also after Kolibri boot to set background
|
|
||||||
until next reboot in programs kiv, iconedit, pic4, tinyfrac.
|
|
||||||
|
|
||||||
2. Configure system menu.
|
|
||||||
Data for system menu are placed in text file menu.dat. It can be edited
|
|
||||||
in any editor keeping format. If you use Kolibri TINYPAD, you
|
|
||||||
must disable option "optimal fill on saving".
|
|
||||||
|
|
||||||
3. Configure autorun.
|
|
||||||
The list of programs, loading when system boots, is read out from
|
|
||||||
text file autorun.dat. It can be changed in any editor keeping format.
|
|
||||||
For example, you can add as first item start of application startmus
|
|
||||||
(delay 1, without arguments) to hear distinctive melody each time at
|
|
||||||
booting.
|
|
||||||
For programmers: you can change melody, for this edit file startmus.asm
|
|
||||||
from distributive sources: there you can choose melody from three existing
|
|
||||||
or add your own - format of melody is explained in documentation on
|
|
||||||
subfunction 55 of function 55.
|
|
||||||
|
|
||||||
4. Icons list.
|
|
||||||
The list of desktop icons is kept in text file icons.dat, but to
|
|
||||||
change the list it is recommended to use icon manager icon (which can
|
|
||||||
be run from desktop context menu). Images for icons are kept in file
|
|
||||||
iconstrp.gif, which must be edited by external graphics editor.
|
|
||||||
|
|
||||||
5. Skin.
|
|
||||||
The skin can be viewed and changed dynamically with the application
|
|
||||||
desktop; after you choose most likely for you skin, you can make it
|
|
||||||
permanent by replace file default.skn, from which system loads skin at
|
|
||||||
booting. Standard skin is included to ramdisk, some alternative skins can
|
|
||||||
be found in distributive in the folder Skins. You can also create your own
|
|
||||||
skin, for detailed comments look at distributive sources.
|
|
||||||
|
|
||||||
6. Sound.
|
|
||||||
Driver sound.sys, which is located on ramdisk by default, is intended for
|
|
||||||
south bridges Intel ICH, ICH0, ICH2, ICH3, ICH4, ICH5, ICH6, ICH7 and
|
|
||||||
NVidia NForce, NForce 2, NForce 3, NForce 4. If you have SB16-compatible
|
|
||||||
sound card, remove sound.sys and rename sb16.sys from the folder 'drivers'
|
|
||||||
to sound.sys. If you have controller sis7012, rename sis.sys from root
|
|
||||||
folder in distributive to sound.sys and copy it to floppy or image to
|
|
||||||
the folder 'drivers' (replacing old). The driver fm801.sys can be useful
|
|
||||||
for ForceMedia FM801 controller, the driver vt8235.sys - for VIA chipsets,
|
|
||||||
the driver emu10k1x.sys - for EMU10K1X audioprocessor, all are intended to
|
|
||||||
similar with previous case use: copy it to the folder 'drivers' as
|
|
||||||
'sound.sys', replacing the old file.
|
|
||||||
|
|
||||||
7. Bus Disconnect.
|
|
||||||
The application KBD (Kolibri Bus Disconnect) allows to disconnect processor
|
|
||||||
bus in order to decrease its temperature, a side effect is noise in AC97
|
|
||||||
codecs. The application can be loaded automatically at system boot, to do
|
|
||||||
this add to autorun (file autorun.dat, see 3) a line of the form
|
|
||||||
"/SYS/KBD BOOT 20 # Enable Bus Disconnect for AMD K7 processors".
|
|
||||||
|
|
||||||
8. Network settings.
|
|
||||||
Initial network configuration is read at boot from the ini file
|
|
||||||
/sys/network/zeroconf.ini. You can set automatic detection with DHCP
|
|
||||||
("type=zeroconf") or fixed IP addresses ("type=static").
|
|
||||||
|
|
||||||
9. Configuration of videomode for ATI videocards.
|
|
||||||
The driver for ATI can set required screen resolution with refresh rate
|
|
||||||
at system startup, if they are supported. The list of supported modes
|
|
||||||
can be obtained with the utility VMODE, it allows also manual mode setting.
|
|
||||||
To set the mode at startup one must pass to the loader ATIKMS, described
|
|
||||||
in AUTORUN.DAT, the argument -m<width>x<height>x<refresh>, e.g.
|
|
||||||
|
|
||||||
/SYS/DRIVERS/ATIKMS -m1024x768x60 -1
|
|
||||||
|
|
||||||
Pay attention that the format of autorun.dat does not allow spaces in
|
|
||||||
command line, so there must be no other arguments.
|
|
||||||
Also one can disable ability to change videomodes and all linked actions
|
|
||||||
at startup by passing the argument -n. The driver will still support
|
|
||||||
hardware cursor. To fully disable the driver, one can simply delete
|
|
||||||
the line with ATIKMS from autorun.dat.
|
|
@@ -1,347 +0,0 @@
|
|||||||
|
|
||||||
GNU GENERAL PUBLIC LICENSE
|
|
||||||
|
|
||||||
Version 2, June 1991
|
|
||||||
|
|
||||||
|
|
||||||
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
|
|
||||||
675 Mass Ave, Cambridge, MA 02139, USA
|
|
||||||
|
|
||||||
Everyone is permitted to copy and distribute verbatim copies
|
|
||||||
of this license document, but changing it is not allowed.
|
|
||||||
|
|
||||||
|
|
||||||
Preamble
|
|
||||||
|
|
||||||
The licenses for most software are designed to take away your
|
|
||||||
freedom to share and change it. By contrast, the GNU General Public
|
|
||||||
License is intended to guarantee your freedom to share and change free
|
|
||||||
software--to make sure the software is free for all its users. This
|
|
||||||
General Public License applies to most of the Free Software
|
|
||||||
Foundation's software and to any other program whose authors commit to
|
|
||||||
using it. (Some other Free Software Foundation software is covered by
|
|
||||||
the GNU Library General Public License instead.) You can apply it to
|
|
||||||
your programs, too.
|
|
||||||
|
|
||||||
When we speak of free software, we are referring to freedom, not
|
|
||||||
price. Our General Public Licenses are designed to make sure that you
|
|
||||||
have the freedom to distribute copies of free software (and charge for
|
|
||||||
this service if you wish), that you receive source code or can get it
|
|
||||||
if you want it, that you can change the software or use pieces of it
|
|
||||||
in new free programs; and that you know you can do these things.
|
|
||||||
|
|
||||||
To protect your rights, we need to make restrictions that forbid
|
|
||||||
anyone to deny you these rights or to ask you to surrender the rights.
|
|
||||||
These restrictions translate to certain responsibilities for you if you
|
|
||||||
distribute copies of the software, or if you modify it.
|
|
||||||
|
|
||||||
For example, if you distribute copies of such a program, whether
|
|
||||||
gratis or for a fee, you must give the recipients all the rights that
|
|
||||||
you have. You must make sure that they, too, receive or can get the
|
|
||||||
source code. And you must show them these terms so they know their
|
|
||||||
rights.
|
|
||||||
|
|
||||||
We protect your rights with two steps: (1) copyright the software, and
|
|
||||||
(2) offer you this license which gives you legal permission to copy,
|
|
||||||
distribute and/or modify the software.
|
|
||||||
|
|
||||||
Also, for each author's protection and ours, we want to make certain
|
|
||||||
that everyone understands that there is no warranty for this free
|
|
||||||
software. If the software is modified by someone else and passed on, we
|
|
||||||
want its recipients to know that what they have is not the original, so
|
|
||||||
that any problems introduced by others will not reflect on the original
|
|
||||||
authors' reputations.
|
|
||||||
|
|
||||||
Finally, any free program is threatened constantly by software
|
|
||||||
patents. We wish to avoid the danger that redistributors of a free
|
|
||||||
program will individually obtain patent licenses, in effect making the
|
|
||||||
program proprietary. To prevent this, we have made it clear that any
|
|
||||||
patent must be licensed for everyone's free use or not licensed at all.
|
|
||||||
|
|
||||||
The precise terms and conditions for copying, distribution and
|
|
||||||
modification follow.
|
|
||||||
|
|
||||||
|
|
||||||
GNU GENERAL PUBLIC LICENSE
|
|
||||||
|
|
||||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
|
||||||
|
|
||||||
|
|
||||||
0. This License applies to any program or other work which contains
|
|
||||||
a notice placed by the copyright holder saying it may be distributed
|
|
||||||
under the terms of this General Public License. The "Program", below,
|
|
||||||
refers to any such program or work, and a "work based on the Program"
|
|
||||||
means either the Program or any derivative work under copyright law:
|
|
||||||
that is to say, a work containing the Program or a portion of it,
|
|
||||||
either verbatim or with modifications and/or translated into another
|
|
||||||
language. (Hereinafter, translation is included without limitation in
|
|
||||||
the term "modification".) Each licensee is addressed as "you".
|
|
||||||
|
|
||||||
Activities other than copying, distribution and modification are not
|
|
||||||
covered by this License; they are outside its scope. The act of
|
|
||||||
running the Program is not restricted, and the output from the Program
|
|
||||||
is covered only if its contents constitute a work based on the
|
|
||||||
Program (independent of having been made by running the Program).
|
|
||||||
Whether that is true depends on what the Program does.
|
|
||||||
|
|
||||||
1. You may copy and distribute verbatim copies of the Program's
|
|
||||||
source code as you receive it, in any medium, provided that you
|
|
||||||
conspicuously and appropriately publish on each copy an appropriate
|
|
||||||
copyright notice and disclaimer of warranty; keep intact all the
|
|
||||||
notices that refer to this License and to the absence of any warranty;
|
|
||||||
and give any other recipients of the Program a copy of this License
|
|
||||||
along with the Program.
|
|
||||||
|
|
||||||
You may charge a fee for the physical act of transferring a copy, and
|
|
||||||
you may at your option offer warranty protection in exchange for a fee.
|
|
||||||
|
|
||||||
2. You may modify your copy or copies of the Program or any portion
|
|
||||||
of it, thus forming a work based on the Program, and copy and
|
|
||||||
distribute such modifications or work under the terms of Section 1
|
|
||||||
above, provided that you also meet all of these conditions:
|
|
||||||
|
|
||||||
a) You must cause the modified files to carry prominent notices
|
|
||||||
stating that you changed the files and the date of any change.
|
|
||||||
|
|
||||||
b) You must cause any work that you distribute or publish, that in
|
|
||||||
whole or in part contains or is derived from the Program or any
|
|
||||||
part thereof, to be licensed as a whole at no charge to all third
|
|
||||||
parties under the terms of this License.
|
|
||||||
|
|
||||||
c) If the modified program normally reads commands interactively
|
|
||||||
when run, you must cause it, when started running for such
|
|
||||||
interactive use in the most ordinary way, to print or display an
|
|
||||||
announcement including an appropriate copyright notice and a
|
|
||||||
notice that there is no warranty (or else, saying that you provide
|
|
||||||
a warranty) and that users may redistribute the program under
|
|
||||||
these conditions, and telling the user how to view a copy of this
|
|
||||||
License. (Exception: if the Program itself is interactive but
|
|
||||||
does not normally print such an announcement, your work based on
|
|
||||||
the Program is not required to print an announcement.)
|
|
||||||
|
|
||||||
These requirements apply to the modified work as a whole. If
|
|
||||||
identifiable sections of that work are not derived from the Program,
|
|
||||||
and can be reasonably considered independent and separate works in
|
|
||||||
themselves, then this License, and its terms, do not apply to those
|
|
||||||
sections when you distribute them as separate works. But when you
|
|
||||||
distribute the same sections as part of a whole which is a work based
|
|
||||||
on the Program, the distribution of the whole must be on the terms of
|
|
||||||
this License, whose permissions for other licensees extend to the
|
|
||||||
entire whole, and thus to each and every part regardless of who wrote it.
|
|
||||||
|
|
||||||
Thus, it is not the intent of this section to claim rights or contest
|
|
||||||
your rights to work written entirely by you; rather, the intent is to
|
|
||||||
exercise the right to control the distribution of derivative or
|
|
||||||
collective works based on the Program.
|
|
||||||
|
|
||||||
In addition, mere aggregation of another work not based on the Program
|
|
||||||
with the Program (or with a work based on the Program) on a volume of
|
|
||||||
a storage or distribution medium does not bring the other work under
|
|
||||||
the scope of this License.
|
|
||||||
|
|
||||||
3. You may copy and distribute the Program (or a work based on it,
|
|
||||||
under Section 2) in object code or executable form under the terms of
|
|
||||||
Sections 1 and 2 above provided that you also do one of the following:
|
|
||||||
|
|
||||||
a) Accompany it with the complete corresponding machine-readable
|
|
||||||
source code, which must be distributed under the terms of Sections
|
|
||||||
1 and 2 above on a medium customarily used for software interchange; or,
|
|
||||||
|
|
||||||
b) Accompany it with a written offer, valid for at least three
|
|
||||||
years, to give any third party, for a charge no more than your
|
|
||||||
cost of physically performing source distribution, a complete
|
|
||||||
machine-readable copy of the corresponding source code, to be
|
|
||||||
distributed under the terms of Sections 1 and 2 above on a medium
|
|
||||||
customarily used for software interchange; or,
|
|
||||||
|
|
||||||
c) Accompany it with the information you received as to the offer
|
|
||||||
to distribute corresponding source code. (This alternative is
|
|
||||||
allowed only for noncommercial distribution and only if you
|
|
||||||
received the program in object code or executable form with such
|
|
||||||
an offer, in accord with Subsection b above.)
|
|
||||||
|
|
||||||
The source code for a work means the preferred form of the work for
|
|
||||||
making modifications to it. For an executable work, complete source
|
|
||||||
code means all the source code for all modules it contains, plus any
|
|
||||||
associated interface definition files, plus the scripts used to
|
|
||||||
control compilation and installation of the executable. However, as a
|
|
||||||
special exception, the source code distributed need not include
|
|
||||||
anything that is normally distributed (in either source or binary
|
|
||||||
form) with the major components (compiler, kernel, and so on) of the
|
|
||||||
operating system on which the executable runs, unless that component
|
|
||||||
itself accompanies the executable.
|
|
||||||
|
|
||||||
If distribution of executable or object code is made by offering
|
|
||||||
access to copy from a designated place, then offering equivalent
|
|
||||||
access to copy the source code from the same place counts as
|
|
||||||
distribution of the source code, even though third parties are not
|
|
||||||
compelled to copy the source along with the object code.
|
|
||||||
|
|
||||||
4. You may not copy, modify, sublicense, or distribute the Program
|
|
||||||
except as expressly provided under this License. Any attempt
|
|
||||||
otherwise to copy, modify, sublicense or distribute the Program is
|
|
||||||
void, and will automatically terminate your rights under this License.
|
|
||||||
However, parties who have received copies, or rights, from you under
|
|
||||||
this License will not have their licenses terminated so long as such
|
|
||||||
parties remain in full compliance.
|
|
||||||
|
|
||||||
5. You are not required to accept this License, since you have not
|
|
||||||
signed it. However, nothing else grants you permission to modify or
|
|
||||||
distribute the Program or its derivative works. These actions are
|
|
||||||
prohibited by law if you do not accept this License. Therefore, by
|
|
||||||
modifying or distributing the Program (or any work based on the
|
|
||||||
Program), you indicate your acceptance of this License to do so, and
|
|
||||||
all its terms and conditions for copying, distributing or modifying
|
|
||||||
the Program or works based on it.
|
|
||||||
|
|
||||||
6. Each time you redistribute the Program (or any work based on the
|
|
||||||
Program), the recipient automatically receives a license from the
|
|
||||||
original licensor to copy, distribute or modify the Program subject to
|
|
||||||
these terms and conditions. You may not impose any further
|
|
||||||
restrictions on the recipients' exercise of the rights granted herein.
|
|
||||||
You are not responsible for enforcing compliance by third parties to
|
|
||||||
this License.
|
|
||||||
|
|
||||||
7. If, as a consequence of a court judgment or allegation of patent
|
|
||||||
infringement or for any other reason (not limited to patent issues),
|
|
||||||
conditions are imposed on you (whether by court order, agreement or
|
|
||||||
otherwise) that contradict the conditions of this License, they do not
|
|
||||||
excuse you from the conditions of this License. If you cannot
|
|
||||||
distribute so as to satisfy simultaneously your obligations under this
|
|
||||||
License and any other pertinent obligations, then as a consequence you
|
|
||||||
may not distribute the Program at all. For example, if a patent
|
|
||||||
license would not permit royalty-free redistribution of the Program by
|
|
||||||
all those who receive copies directly or indirectly through you, then
|
|
||||||
the only way you could satisfy both it and this License would be to
|
|
||||||
refrain entirely from distribution of the Program.
|
|
||||||
|
|
||||||
If any portion of this section is held invalid or unenforceable under
|
|
||||||
any particular circumstance, the balance of the section is intended to
|
|
||||||
apply and the section as a whole is intended to apply in other
|
|
||||||
circumstances.
|
|
||||||
|
|
||||||
It is not the purpose of this section to induce you to infringe any
|
|
||||||
patents or other property right claims or to contest validity of any
|
|
||||||
such claims; this section has the sole purpose of protecting the
|
|
||||||
integrity of the free software distribution system, which is
|
|
||||||
implemented by public license practices. Many people have made
|
|
||||||
generous contributions to the wide range of software distributed
|
|
||||||
through that system in reliance on consistent application of that
|
|
||||||
system; it is up to the author/donor to decide if he or she is willing
|
|
||||||
to distribute software through any other system and a licensee cannot
|
|
||||||
impose that choice.
|
|
||||||
|
|
||||||
This section is intended to make thoroughly clear what is believed to
|
|
||||||
be a consequence of the rest of this License.
|
|
||||||
|
|
||||||
8. If the distribution and/or use of the Program is restricted in
|
|
||||||
certain countries either by patents or by copyrighted interfaces, the
|
|
||||||
original copyright holder who places the Program under this License
|
|
||||||
may add an explicit geographical distribution limitation excluding
|
|
||||||
those countries, so that distribution is permitted only in or among
|
|
||||||
countries not thus excluded. In such case, this License incorporates
|
|
||||||
the limitation as if written in the body of this License.
|
|
||||||
|
|
||||||
9. The Free Software Foundation may publish revised and/or new versions
|
|
||||||
of the General Public License from time to time. Such new versions will
|
|
||||||
be similar in spirit to the present version, but may differ in detail to
|
|
||||||
address new problems or concerns.
|
|
||||||
|
|
||||||
Each version is given a distinguishing version number. If the Program
|
|
||||||
specifies a version number of this License which applies to it and "any
|
|
||||||
later version", you have the option of following the terms and conditions
|
|
||||||
either of that version or of any later version published by the Free
|
|
||||||
Software Foundation. If the Program does not specify a version number of
|
|
||||||
this License, you may choose any version ever published by the Free Software
|
|
||||||
Foundation.
|
|
||||||
|
|
||||||
10. If you wish to incorporate parts of the Program into other free
|
|
||||||
programs whose distribution conditions are different, write to the author
|
|
||||||
to ask for permission. For software which is copyrighted by the Free
|
|
||||||
Software Foundation, write to the Free Software Foundation; we sometimes
|
|
||||||
make exceptions for this. Our decision will be guided by the two goals
|
|
||||||
of preserving the free status of all derivatives of our free software and
|
|
||||||
of promoting the sharing and reuse of software generally.
|
|
||||||
|
|
||||||
NO WARRANTY
|
|
||||||
|
|
||||||
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
|
||||||
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
|
||||||
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
|
||||||
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
|
||||||
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
|
||||||
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
|
||||||
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
|
||||||
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
|
||||||
REPAIR OR CORRECTION.
|
|
||||||
|
|
||||||
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
|
||||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
|
||||||
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
|
||||||
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
|
||||||
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
|
||||||
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
|
||||||
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
|
||||||
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
|
||||||
POSSIBILITY OF SUCH DAMAGES.
|
|
||||||
|
|
||||||
END OF TERMS AND CONDITIONS
|
|
||||||
|
|
||||||
Appendix: How to Apply These Terms to Your New Programs
|
|
||||||
|
|
||||||
If you develop a new program, and you want it to be of the greatest
|
|
||||||
possible use to the public, the best way to achieve this is to make it
|
|
||||||
free software which everyone can redistribute and change under these terms.
|
|
||||||
|
|
||||||
To do so, attach the following notices to the program. It is safest
|
|
||||||
to attach them to the start of each source file to most effectively
|
|
||||||
convey the exclusion of warranty; and each file should have at least
|
|
||||||
the "copyright" line and a pointer to where the full notice is found.
|
|
||||||
|
|
||||||
<one line to give the program's name and a brief idea of what it does.>
|
|
||||||
Copyright (C) 19yy <name of author>
|
|
||||||
|
|
||||||
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 2 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, write to the Free Software
|
|
||||||
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
||||||
|
|
||||||
Also add information on how to contact you by electronic and paper mail.
|
|
||||||
|
|
||||||
If the program is interactive, make it output a short notice like this
|
|
||||||
when it starts in an interactive mode:
|
|
||||||
|
|
||||||
Gnomovision version 69, Copyright (C) 19yy name of author
|
|
||||||
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
|
||||||
This is free software, and you are welcome to redistribute it
|
|
||||||
under certain conditions; type `show c' for details.
|
|
||||||
|
|
||||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
|
||||||
parts of the General Public License. Of course, the commands you use may
|
|
||||||
be called something other than `show w' and `show c'; they could even be
|
|
||||||
mouse-clicks or menu items--whatever suits your program.
|
|
||||||
|
|
||||||
You should also get your employer (if you work as a programmer) or your
|
|
||||||
school, if any, to sign a "copyright disclaimer" for the program, if
|
|
||||||
necessary. Here is a sample; alter the names:
|
|
||||||
|
|
||||||
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
|
|
||||||
`Gnomovision' (which makes passes at compilers) written by James Hacker.
|
|
||||||
|
|
||||||
<signature of Ty Coon>, 1 April 1989
|
|
||||||
Ty Coon, President of Vice
|
|
||||||
|
|
||||||
This General Public License does not permit incorporating your program into
|
|
||||||
proprietary programs. If your program is a subroutine library, you may
|
|
||||||
consider it more useful to permit linking proprietary applications with the
|
|
||||||
library. If this is what you want to do, use the GNU Library General
|
|
||||||
Public License instead of this License.
|
|
@@ -1,128 +0,0 @@
|
|||||||
|
|
||||||
KolibriOS team
|
|
||||||
--------------
|
|
||||||
|
|
||||||
We thank everyone who helped to create and develop KolibriOS,
|
|
||||||
many of whom are listed below ~
|
|
||||||
|
|
||||||
System Programming (loaders, kernel, etc.) :
|
|
||||||
- Alver
|
|
||||||
- art_zh
|
|
||||||
- Asper
|
|
||||||
- Boppan
|
|
||||||
- CleverMouse
|
|
||||||
- Coldy
|
|
||||||
- Doczom
|
|
||||||
- dunkaist
|
|
||||||
- Galkov
|
|
||||||
- Evgeny Grechnikov 'Diamond'
|
|
||||||
- Andrey Halyavin 'halyavin'
|
|
||||||
- hidnplayr
|
|
||||||
- Andrey Ignatiev 'andrew_programmer'
|
|
||||||
- Johnny_B
|
|
||||||
- kasTIgar
|
|
||||||
- Sergey Kuzmin 'Wildwest'
|
|
||||||
- Mihail Lisovin 'Mihasik'
|
|
||||||
- Maxis
|
|
||||||
- Iliya Mihailov 'Ghost'
|
|
||||||
- Nable
|
|
||||||
- NoName
|
|
||||||
- Ivan Poddubny
|
|
||||||
- rgimad
|
|
||||||
- Rus
|
|
||||||
- Mihail Semenyako 'mike.dld'
|
|
||||||
- Sergey Semyonov 'Serge'
|
|
||||||
- shurf
|
|
||||||
- SPraid
|
|
||||||
- Alexey Teplov '<Lrz>'
|
|
||||||
- Trans
|
|
||||||
- tsdima
|
|
||||||
- turbanoff
|
|
||||||
- VaStaNi
|
|
||||||
- Marat Zakiyanov 'Mario79'
|
|
||||||
|
|
||||||
Application Programming (new creations, porting or revisions) :
|
|
||||||
- Alver
|
|
||||||
- art_zh
|
|
||||||
- Artemonische
|
|
||||||
- Asper
|
|
||||||
- barsuk
|
|
||||||
- Vitaly Bendik 'mistifi(ator'
|
|
||||||
- Mario Birkner 'cYfleXX'
|
|
||||||
- Aleksandr Bogomaz 'Albom'
|
|
||||||
- chaykin
|
|
||||||
- CleverMouse
|
|
||||||
- DedOk
|
|
||||||
- Dron2004
|
|
||||||
- dunkaist
|
|
||||||
- ealex
|
|
||||||
- Pavlushin Evgeny 'Exis'
|
|
||||||
- Maxim Evtihov 'Maxxxx32'
|
|
||||||
- Gluk
|
|
||||||
- Evgeny Grechnikov 'Diamond'
|
|
||||||
- Maciej Guba 'macgub'
|
|
||||||
- Andrey Halyavin 'halyavin'
|
|
||||||
- Hex
|
|
||||||
- iadn
|
|
||||||
- Andrey Ignatiev 'andrew_programmer'
|
|
||||||
- IgorA
|
|
||||||
- Andrey Ivushkin 'Willow'
|
|
||||||
- Johnny_B
|
|
||||||
- kaitz
|
|
||||||
- Vasiliy Kosenko 'vkos'
|
|
||||||
- Sergey Kuzmin 'Wildwest'
|
|
||||||
- Kirill Lipatov 'Leency'
|
|
||||||
- Mihail Lisovin 'Mihasik'
|
|
||||||
- Alexander Meshcheryakov 'Self-Perfection'
|
|
||||||
- Iliya Mihailov 'Ghost'
|
|
||||||
- Navanax
|
|
||||||
- nilgui
|
|
||||||
- Olaf
|
|
||||||
- hidden player 'hidnplayr'
|
|
||||||
- Ivan Poddubny
|
|
||||||
- Pterox
|
|
||||||
- Rus
|
|
||||||
- Pavel Rymovski 'Heavyiron'
|
|
||||||
- Mihail Semenyako 'mike.dld'
|
|
||||||
- Sergey Semyonov 'Serge'
|
|
||||||
- SPraid
|
|
||||||
- staper
|
|
||||||
- Alexey Teplov '<Lrz>'
|
|
||||||
- trolly
|
|
||||||
- tsdima
|
|
||||||
- vectoroc
|
|
||||||
- YELLOW
|
|
||||||
- Vladimir Zaitsev 'Rabid Rabbit'
|
|
||||||
- Marat Zakiyanov 'Mario79'
|
|
||||||
|
|
||||||
Documentation and Translation :
|
|
||||||
- Andrew Dent 'ace_dent'
|
|
||||||
- Evgeny Grechnikov 'Diamond'
|
|
||||||
- Hex
|
|
||||||
|
|
||||||
Infrastructure (forum, site and SVN hosting) :
|
|
||||||
- CodeWorld
|
|
||||||
- mike.dld
|
|
||||||
|
|
||||||
Design (logo, background, icons) :
|
|
||||||
- goglus
|
|
||||||
- Kirill Lipatov 'Leency'
|
|
||||||
- Alexey Teplov '<Lrz>'
|
|
||||||
|
|
||||||
Testing and Support :
|
|
||||||
- AqwAS
|
|
||||||
- Ataualpa
|
|
||||||
- Vitaly Bendik 'mistifi(ator'
|
|
||||||
- camper
|
|
||||||
- ChE
|
|
||||||
- Dmitry the Sorcerer
|
|
||||||
- Galkov
|
|
||||||
- Maxis
|
|
||||||
- Mike
|
|
||||||
- Pavel Rymovski 'Heavyiron'
|
|
||||||
- vectoroc
|
|
||||||
- Veliant
|
|
||||||
|
|
||||||
and many others...
|
|
||||||
|
|
||||||
KolibriOS team
|
|
@@ -1,48 +0,0 @@
|
|||||||
PHARAOH TOMB
|
|
||||||
|
|
||||||
The purpose of the game is to open passage by moving hieroglyphs on entrance
|
|
||||||
in the next room of the pharaoh tomb (8X8). You can exchange two hieroglyphs
|
|
||||||
located near each other on vertical or horizontal if after such transposition
|
|
||||||
a combination of three or more identical pictures abreast is generated. Such
|
|
||||||
lines are disappeared immediately, and free place is filled by hieroglyphs
|
|
||||||
which "falled" from top. Missing hieroglyphs are generated randomly. For
|
|
||||||
disappearing hieroglyphs points are added. For combination of hieroglyphs
|
|
||||||
number of points is calculated by formula L+(L+1)^(N-3), but no more than
|
|
||||||
20*L*N, where N is number of hieroglyphs in combination, and L is level number.
|
|
||||||
To pass to the next level it is required to remove certain number of
|
|
||||||
hieroglyphs (different on each level). From below of panel with hieroglyphs is
|
|
||||||
located field which indicates how many is passed and how many is remained.
|
|
||||||
|
|
||||||
1st level - 500
|
|
||||||
2nd level - 450
|
|
||||||
3rd level - 400
|
|
||||||
4th level - 350
|
|
||||||
5th level - 300
|
|
||||||
6th level and further - 50*(L+1)
|
|
||||||
|
|
||||||
On the first level combinations are composed from 6 states of hieroglyphs.
|
|
||||||
With each new level one new hieroglyph is involved, but no more than 10
|
|
||||||
(i.e. starting from 5th level and further 10 different hieroglyphs are
|
|
||||||
involved, not counting special ones).
|
|
||||||
|
|
||||||
Starting from 2nd level for each combination from 4 and more hieroglyphs,
|
|
||||||
and also for passing each fourth of level the player gets "free" hieroglyph -
|
|
||||||
it is usual hieroglyph (generated randomly), which keeps "in pocket" of player
|
|
||||||
and can be necessarily inserted by player to any place and replace thus
|
|
||||||
located there hieroglyph.
|
|
||||||
|
|
||||||
Starting from 3rd level for each combination from 5 and more hieroglyphs,
|
|
||||||
and also for passing each third of level the player gets "universal key",
|
|
||||||
which matches to any combination of hieroglyphs and to several different
|
|
||||||
combination simultaneously.
|
|
||||||
|
|
||||||
Starting from 4th level for each combination from 6 and more hieroglyphs,
|
|
||||||
and also for passing a half of level the player gets "space crooker",
|
|
||||||
which allows, when is used, to make 3 moves (not obligatory successive) at
|
|
||||||
diagonal.
|
|
||||||
|
|
||||||
The player can not have simultaneously more than 1 extra hieroglyph of each
|
|
||||||
type (1 usual, 1 joker and 1 crooker).
|
|
||||||
|
|
||||||
The game is ended, if the player can not make any combination with existing
|
|
||||||
hieroglyphs.
|
|
@@ -1,14 +0,0 @@
|
|||||||
The following "hot" shortcut keys are used in the system:
|
|
||||||
(Indexing on time of appearance in the system)
|
|
||||||
1) Ctrl + Alt + Del start of the application CPU (the manager of processes), is a sole combination maintained on a level of a kernel, all rest "hot" key is realized at the expense of the application @TASKBAR.
|
|
||||||
2) Ctrl + Shift - switching of keyboard layout.
|
|
||||||
3) Win - start of the application MENU.
|
|
||||||
4) Alt + Ctrl + F12 - start of the application END.
|
|
||||||
5) Alt + F4 - terminate the active application.
|
|
||||||
6) Alt + Tab - switch to the next (in the window stack) window
|
|
||||||
7) Alt + Shift + Tab - switch to the previous (in the window stack) window
|
|
||||||
8) Alt + Shift + NumLock - start of the application MOUSEMUL, which emulates mouse with numpad, when NumLock is on.
|
|
||||||
9) Alt + 1...7 - fast switching to the selected keyboard layout (even if absent for Ctrl + Shift)
|
|
||||||
10) Win + D - minimize/restore all windows (cleaning of desktop)
|
|
||||||
11) Win + R - start of the application RUN
|
|
||||||
12) Ctrl + PrintScreen - start of the application SCRSHOOT. Just do a screen shot and the user is offered to specify (with OpenDialog) where to save the BMP image.
|
|
@@ -1,25 +0,0 @@
|
|||||||
Ini-files are text files of special contents:
|
|
||||||
|
|
||||||
[name of first section]
|
|
||||||
Key1=value1
|
|
||||||
Key2=value2
|
|
||||||
;comment
|
|
||||||
[name of second section]
|
|
||||||
Key3=value3
|
|
||||||
|
|
||||||
All lines beginning with ';' are considered as comments and ignored.
|
|
||||||
|
|
||||||
Keyboard shortcuts are described as follows:
|
|
||||||
any number of modificators Ctrl/Alt/Shift/LCtrl/LAlt/LShift/RCtrl/RAlt/RShift,
|
|
||||||
followed by latin letter, digit or key name. The following keys have a name:
|
|
||||||
F1 - F12
|
|
||||||
Home; End; PgUp; PgDn; Ins, equivalently, Insert; Del, equivalently, Delete;
|
|
||||||
Tab; Plus; Esc; Enter; Backspace; Space;
|
|
||||||
Left (left arrow); Right (right arrow); Up (up arrow); Down (down arrow).
|
|
||||||
The string for shortcut is case-insensitive. Parts of the string
|
|
||||||
can be written without delimiters or with '+' between parts. Examples:
|
|
||||||
Ctrl+Alt+Backspace
|
|
||||||
RCtrl+RShift
|
|
||||||
ShiftA
|
|
||||||
f10
|
|
||||||
shiftalt5
|
|
@@ -1,94 +0,0 @@
|
|||||||
Control keys in KFar.
|
|
||||||
For panels:
|
|
||||||
arrows, Home, End - move cursor on active panel
|
|
||||||
Tab - change active panel
|
|
||||||
Enter - enter to folder or run program under cursor
|
|
||||||
F3 - view file under cursor
|
|
||||||
F5 - copy selected items or item under cursor to another panel
|
|
||||||
Shift+F5 - copy selected items or item under cursor to the same panel
|
|
||||||
(of course, you must specify another file name)
|
|
||||||
F7 - create folder
|
|
||||||
F8 - delete selected elements or element under cursor
|
|
||||||
F10 - exit
|
|
||||||
Alt+F1/Alt+F2 - change drive on left/right panel
|
|
||||||
Alt+F9 - resize window to maximum possible size and restore initial size
|
|
||||||
Ctrl+F3 - sort file/folders on active panel by name
|
|
||||||
Ctrl+F4 - sort by extension
|
|
||||||
Ctrl+F5 - sort by date/time of last modification
|
|
||||||
Ctrl+F6 - sort by size
|
|
||||||
Ctrl+F7 - don't sort (display in order as on disk)
|
|
||||||
Ctrl+F8 - sort by date/time of creation
|
|
||||||
Ctrl+F9 - sort by date/time of last access
|
|
||||||
F12 - display screens menu
|
|
||||||
Ctrl+R - refresh active panel
|
|
||||||
Menu - display context menu for file under cursor
|
|
||||||
LeftCtrl+1/2/3/4 - select panel mode (brief/medium/full/wide)
|
|
||||||
RightCtrl+0..9 - go to folder specified in the section [FolderShortcuts]
|
|
||||||
of ini-file as Shortcut0..9 accordingly
|
|
||||||
Insert - select/deselect current element
|
|
||||||
Grey[+] - select files and folders with mask
|
|
||||||
Grey[-] - deselect files and folders with mask
|
|
||||||
The mask is like "*.asm,*.inc|template.asm" (which selects all files with
|
|
||||||
extensions ASM and INC except for template.asm): one or more elementary
|
|
||||||
including masks with standard mean of '*' and '?', delimited by ',' or ';',
|
|
||||||
optionally followed by '|' and one or more elementary excluding masks.
|
|
||||||
The mask "*.*" specifies all files having '.' in name (i.e. files with
|
|
||||||
any non-empty extension); to specify all files use "*".
|
|
||||||
Grey[*] - invert selection
|
|
||||||
Alt+<letter or digit> - position cursor on name of file/folder,
|
|
||||||
beginning from selected letter or digit; it shows fast find window,
|
|
||||||
in which one can enter subsequent symbols of file/folder name to more precise
|
|
||||||
selection, and also Ctrl+Enter/Shift+Ctrl+Enter to move to the next/previous
|
|
||||||
panel item, whose name starts with specified letters
|
|
||||||
|
|
||||||
For viewer:
|
|
||||||
Esc = F3 = F10 = Numpad5 - exit
|
|
||||||
Down - line down
|
|
||||||
PgDn - page down
|
|
||||||
Up - line up
|
|
||||||
PgUp - page up
|
|
||||||
Home - to begin of file
|
|
||||||
End - to end of file
|
|
||||||
Left - character left
|
|
||||||
Right - character right
|
|
||||||
Ctrl+Left - in Text-mode 20 characters left;
|
|
||||||
in Hex-mode 1 byte left
|
|
||||||
Ctrl+Right - in Text-mode 20 characters right;
|
|
||||||
in Hex-mode 1 byte right
|
|
||||||
Ctrl+Shift+Left - start of lines on the screen
|
|
||||||
Ctrl+Shift+Right - end of lines on the screen
|
|
||||||
F2 - toggle line wrap
|
|
||||||
F4 - toggle Text <-> Hex mode
|
|
||||||
F8 - toggle encoding cp866 (DOS) <-> cp1251 (Win)
|
|
||||||
Shift+F8 - encoding tables menu
|
|
||||||
F12 - display screens menu
|
|
||||||
F7 - search a string from the current position in the file
|
|
||||||
(the string and settings are set in the following dialog)
|
|
||||||
Shift+F7 - continue to search a string
|
|
||||||
(use the string and settings from last search by F7)
|
|
||||||
Alt+F9 - resize window to maximum possible size and restore initial size
|
|
||||||
|
|
||||||
For editor:
|
|
||||||
Esc = F10 - exit; if the file was modified, the question about save necessity
|
|
||||||
will follow
|
|
||||||
Shift+F10 - save and exit
|
|
||||||
F2 - save the file
|
|
||||||
Down - move cursor down to one line
|
|
||||||
PgDn - move cursor down to one page
|
|
||||||
Up - move cursor up to one line
|
|
||||||
PgUp - move cursor up to one page
|
|
||||||
Left - move cursor left to one symbol
|
|
||||||
Right - move cursor right to one symbol
|
|
||||||
Home - move cursor to the beginning of the current line
|
|
||||||
End - move cursor to the end of the current line
|
|
||||||
Backspace - delete the symbol before the cursor
|
|
||||||
Del - delete the symbol under the cursor
|
|
||||||
Ins - toggle insert/replace mode when entering symbols
|
|
||||||
F12 - display screens menu
|
|
||||||
Alt+F9 - resize window to maximum possible size and restore initial size
|
|
||||||
F7 - search a string starting from the position next to the cursor
|
|
||||||
(the string and search settings are prompted in the following dialog)
|
|
||||||
Shift+F7 - continue to search a string (same as F7 without settings dialog)
|
|
||||||
|
|
||||||
diamond
|
|
||||||
mailto:diamondz@land.ru
|
|
@@ -1,212 +0,0 @@
|
|||||||
Introduction.
|
|
||||||
|
|
||||||
mtdbg is a debugger for Kolibri operating system. This documentation describes
|
|
||||||
debugger features and work with it. Feel free to ask on our board (mostly
|
|
||||||
in Russian, but has an English forum) -- board.kolibrios.org.
|
|
||||||
|
|
||||||
General description.
|
|
||||||
|
|
||||||
In each moment of time mtdbg can debug only one program. I will call it
|
|
||||||
loaded program. If no program is loaded, overwhelming majority of debugging
|
|
||||||
actions is disabled.
|
|
||||||
|
|
||||||
mtdbg is controlled by command line, entering from keyboard. Command line
|
|
||||||
is drawn in the bottom part of debugger window. Debugger handles standard
|
|
||||||
input keys Backspace,Delete,Home,End,left/right arrows.
|
|
||||||
Commands are case-insensitive. Delimiter is arbitrary nonzero number of spaces.
|
|
||||||
|
|
||||||
At any moment mtdbg can be terminated by command "quit" (without arguments).
|
|
||||||
You can also simply press to close button in the right upper corner of window.
|
|
||||||
|
|
||||||
When debugger is started without command string parameters, no program is
|
|
||||||
loaded. Also mtdbg can be started with command string, in this case it tries
|
|
||||||
to load program with the name pointed to in first parameter in command string
|
|
||||||
and parameters pointed to following (if present).
|
|
||||||
|
|
||||||
If no program is loaded, you can load a program with the command
|
|
||||||
load <full name of executable file> [<parameters>]
|
|
||||||
Examples:
|
|
||||||
load /sys/example
|
|
||||||
LOAD /sys/aclock w200 h200
|
|
||||||
LoaD /hd0/1/menuetos/dosbox/dosbox
|
|
||||||
All that stays after first space after executable file name, is exactly passed
|
|
||||||
to program as command string.
|
|
||||||
The command "load" reports result in the messages window (a little higher
|
|
||||||
than command line window). If program was loaded successfully, there will
|
|
||||||
be the appropriate message; otherwise the message will contain error reason.
|
|
||||||
Most probable error is "file not found" if wrong file name is given.
|
|
||||||
|
|
||||||
The debugger can load files with information on symbols in the program
|
|
||||||
(labels, global variables) - text files, each line of which has format
|
|
||||||
0x<hex_value_of_addr> <name>
|
|
||||||
(lines, which do not have such format, are ignored). Such file can be created
|
|
||||||
by hand or generated automatically by fasm. Evident load can be done by command
|
|
||||||
load-symbols <full name of symbols file>
|
|
||||||
Furthermore, when the debugger executes the command "load", it checks for
|
|
||||||
presence of file with name as of loading binary and extension '.dbg'
|
|
||||||
(/sys/example.dbg in the first of examples above), and if such file exists,
|
|
||||||
the debugger loads it automatically (with the message "Symbols loaded", if
|
|
||||||
all is OK).
|
|
||||||
|
|
||||||
It can happen so that loaded program is packed. General principle of
|
|
||||||
program packing is following: at first input file is packed (by some
|
|
||||||
pack algorithm), then is appended small code which gets control at program
|
|
||||||
start, unpacks input code in the memory and then passes control to it.
|
|
||||||
If program is packed, it "real" code is not visible and for debugging it is
|
|
||||||
needed previously to pass through unpacker code.
|
|
||||||
mtdbg determines most of existing packers (mxp,mxp_lzo,mxp_nrv,mtappack)
|
|
||||||
and in this case suggests to automatically go to "real" code. It is recommended
|
|
||||||
to accept (press 'y' or <Enter>), but you can refuse too. At refusal and if
|
|
||||||
program is packed by something unknown the command "unpack" (without arguments)
|
|
||||||
can be used. Call it only in the case when you are sure that program is packed
|
|
||||||
and control has not already went to main code! [Starting from Kolibri 0.6.5.0,
|
|
||||||
this paragraph is no more actual, because one can pack applications as all
|
|
||||||
binary files with kpack and the unpacker code in this case is located in the
|
|
||||||
kernel and is transparent for debug.]
|
|
||||||
|
|
||||||
Loaded program can be terminated by the command "terminate" (without
|
|
||||||
arguments). The command "detach" (without arguments) detaches from program,
|
|
||||||
after that program continues execution normally, as if there was no debugger.
|
|
||||||
After both this commands program stops to be debugged.
|
|
||||||
|
|
||||||
It is possible to anew load program for debugging by the command "reload"
|
|
||||||
(without arguments). If there is already loaded program, it is terminated
|
|
||||||
and new instance is started (from the beginning) (with the same command
|
|
||||||
string), in this case the command is similar to the commands
|
|
||||||
terminate
|
|
||||||
load <last program name> <last program arguments>
|
|
||||||
Otherwise is loaded anew latest program, which was debugged (in the current
|
|
||||||
seance of work with mtdbg) (with the same command string), i.e. is similar to
|
|
||||||
load <last program name> <last program arguments>,
|
|
||||||
but the command "reload" in both cases is shorter and more convenient;
|
|
||||||
moreover, "load" thinks that new program is loaded and moves data window
|
|
||||||
(see below) to zero address, and "reload" keeps current address.
|
|
||||||
|
|
||||||
The command "help", which can be shorten to "h", is always available.
|
|
||||||
All commands are divided on groups.
|
|
||||||
"help" without arguments displays the list of command groups.
|
|
||||||
"help" with group name displays the list of commands in this group with short
|
|
||||||
comments.
|
|
||||||
"help" with command name displays information about given command.
|
|
||||||
Examples:
|
|
||||||
help
|
|
||||||
help control
|
|
||||||
h LoaD
|
|
||||||
|
|
||||||
The debugger window consists from the following items enumerated from up
|
|
||||||
to down:
|
|
||||||
- status string. If there is loaded program, shows its name and state
|
|
||||||
("Running/Paused"), otherwise reports "No program loaded".
|
|
||||||
- registers window - shows values of general-purpose registers, register eip
|
|
||||||
and states of single flags: CF,PF,AF,ZF,SF,DF,OF: if flag is cleared, then
|
|
||||||
is displayed lower-case letter, if flag is set, then upper-case one.
|
|
||||||
Registers which are changed from previous moment are highlighted in green.
|
|
||||||
- data window (dump window) - shows memory contains of loaded program
|
|
||||||
- code window (disassembler window) - shows program code as disassembled
|
|
||||||
instructions
|
|
||||||
- messages window
|
|
||||||
- command line window
|
|
||||||
|
|
||||||
Dump window can display data starting from any address, to this serves
|
|
||||||
the command
|
|
||||||
d <expression>
|
|
||||||
The command "d" without arguments flicks dump window down.
|
|
||||||
The same is for code window and the command
|
|
||||||
u <expression>
|
|
||||||
or simply "u".
|
|
||||||
Examples:
|
|
||||||
d esi - displays data at address esi (e.g. is useful before execution of
|
|
||||||
instruction rep movsb)
|
|
||||||
d esp - displays stack
|
|
||||||
u eip - disassembles instruction starting from the current
|
|
||||||
|
|
||||||
Expressions in mtdbg can include
|
|
||||||
- hexadecimal constants
|
|
||||||
- names of all general-purpose registers (8 32-bits, 8 16-bits and
|
|
||||||
8 8-bits) and register eip; values of 16- and 8-bits registers are padded
|
|
||||||
with zeroes to 32 bits
|
|
||||||
- four arithmetic operations +,-,*,/ (with standard priorities) and
|
|
||||||
brackets
|
|
||||||
- [if symbols information was loaded] names, loaded from dbg-file
|
|
||||||
All calculations are realized modulo 2^32.
|
|
||||||
Examples of expressions:
|
|
||||||
eax
|
|
||||||
eip+2
|
|
||||||
ecx-esi-1F
|
|
||||||
al+AH*bl
|
|
||||||
ax + 2* bH*(eip+a73)
|
|
||||||
3*esi*di/EAX
|
|
||||||
The command
|
|
||||||
? <expression>
|
|
||||||
calculates value of specified expression.
|
|
||||||
|
|
||||||
Values of registers in loaded program can be changed by the command "r", which
|
|
||||||
has two absolutely equivalent forms:
|
|
||||||
r <register> <expression>
|
|
||||||
r <register>=<expression>
|
|
||||||
(in both cases you can place spaces as you want). Register can be any of
|
|
||||||
above-mentioned - 24 general-purpose registers and eip.
|
|
||||||
|
|
||||||
|
|
||||||
Let us assume that the command "load" was successfully load program for
|
|
||||||
debugging.
|
|
||||||
Immediately after loading program is suspended and does not execute.
|
|
||||||
Press Ctrl+F7 (command-line analog is the command "s") to make one step
|
|
||||||
in loaded program, after that control returns to debugger which displays
|
|
||||||
new contains of registers and memory. The system call "int 40h" is considered
|
|
||||||
as one step.
|
|
||||||
Pressing Ctrl+F8 (command-line analog is the command "p") also makes step in
|
|
||||||
loaded program, but procedure calls, string operations with prefix
|
|
||||||
rep/repz/repnz and 'loop' cycles are executed as one step.
|
|
||||||
The one-step commands are used usually on single program sections,
|
|
||||||
when it is needed, for example, to regularly trace registers value and/or
|
|
||||||
some variables in memory.
|
|
||||||
The command
|
|
||||||
g <expression>
|
|
||||||
resumes program execution and waits until control goes to eip=given address,
|
|
||||||
and in this moment suspends program. The command "g" without arguments
|
|
||||||
simply resumes execution.
|
|
||||||
|
|
||||||
To suspend program use the command "stop" (without arguments).
|
|
||||||
|
|
||||||
In the typical situation it is required that program is executed normally,
|
|
||||||
but when some conditions are satisfied, program suspends and debugger receives
|
|
||||||
control. The corresponding conditions are called breakpoints or simply breaks.
|
|
||||||
Primary type of breakpoints is to concrete address, i.e. stop execution at
|
|
||||||
eip=<given value>. Such breakpoints are set by the command
|
|
||||||
bp <expression>
|
|
||||||
Note that if there is only one such breakpoint, there is more convenient to use
|
|
||||||
the command "g" with argument instead.
|
|
||||||
|
|
||||||
Other type of breakpoints is on access to given memory area. Maximum
|
|
||||||
numbers of such breakpoints is 4 (because hardware features of x86 processors
|
|
||||||
are used and they allows only 4).
|
|
||||||
bpm <expression> - breaks at any access to byte at given address
|
|
||||||
bpm w <expression> - breaks at write to byte at given address
|
|
||||||
bpmb,bpmw,bpmd <expression> - breaks to access correspondingly to byte, word
|
|
||||||
or dword at given address. bpm <20> bpmb are synonyms. When bpmw,bpmd are used,
|
|
||||||
address must be aligned according to correspondingly word bound (i.e. be even)
|
|
||||||
or dword bound (i.e. be divisible by 4).
|
|
||||||
bpmb,bpmw,bpmd w <expression> - similar to break on write.
|
|
||||||
|
|
||||||
To see the list of set breakpoints use the command "bl", to obtain information
|
|
||||||
on concrete breakpoint use "bl <number>". Unnecessary breakpoints can be
|
|
||||||
deleted with the command "bc <number>", temporarily unnecessary can be
|
|
||||||
disabled by the command "bd <number>", when they will be needed again,
|
|
||||||
use the command "be <number>".
|
|
||||||
|
|
||||||
Remarks.
|
|
||||||
|
|
||||||
1. When debugging your own programs you can put in code instructions
|
|
||||||
int3 (pay attention to absence of space!). Such instruction causes
|
|
||||||
exception at normal run, which leads to process termination, but
|
|
||||||
at work under debugger it is simply activated (with the message
|
|
||||||
"int3 command at xxx"). This feature allows to not think about addresses
|
|
||||||
to use in the commands g and/or bp.
|
|
||||||
2. All output and all input is oriented on hexadecimal scale of notation.
|
|
||||||
3. When program is executed, registers and data window shows information
|
|
||||||
regarding to moment before resume; you can not set registers value in this
|
|
||||||
mode. Nevertheless the command "d" in this mode shows information that
|
|
||||||
was true in the moment of command delivery.
|
|
||||||
|
|
||||||
diamond
|
|
@@ -1,26 +0,0 @@
|
|||||||
OpenDialog - file open dialog:
|
|
||||||
1) Move the cursor inside the panel:
|
|
||||||
a) up and down arrows (including add. keyb.) - move the cursor one position up or down.
|
|
||||||
b) PageUp - list page up.
|
|
||||||
c) PageDown - list page down.
|
|
||||||
d) Home - move to the top of directory.
|
|
||||||
e) End - move to the end of directory.
|
|
||||||
2) Enter - operations with the selected file:
|
|
||||||
a) enter the folder.
|
|
||||||
b) choose a file.
|
|
||||||
3) Using the menu:
|
|
||||||
Alt+F1 - call disk selection menu.
|
|
||||||
Alt+F2 - call sort menu.
|
|
||||||
Alt+F3 - call filter menu.
|
|
||||||
Inside the menu:
|
|
||||||
Arrow cursor up and down - move to item.
|
|
||||||
Esc - close the window.
|
|
||||||
Enter - close the window with confirmation.
|
|
||||||
Arrow cursor left and right - move into the adjacent menu.
|
|
||||||
4) Ctrl+R - update the contents of a directory.
|
|
||||||
5) Backspace - exit from the directory.
|
|
||||||
6) Insert - highlighted by red color the file at the cursor and move the cursor one position down.
|
|
||||||
7) Ctrl+A and Ctrl+(NumPad(+) Up) - select all files and directories in the active panel, with the exception of the directory '..'
|
|
||||||
8) Ctrl+(NumPad(-) Up) - deselect all files and directories in the active panel with the exception of the directory '..'
|
|
||||||
9) Ctrl+(NumPad(*) Up) - invert the selection of all files and directories in the active panel, with the exception of the directory '..'
|
|
||||||
10) Esc - shutdown the program, without opening of a file.
|
|
@@ -106,8 +106,8 @@ name=15
|
|||||||
path=/SYS/GAMES/15
|
path=/SYS/GAMES/15
|
||||||
param=
|
param=
|
||||||
ico=34
|
ico=34
|
||||||
x=-271
|
x=-67
|
||||||
y=-67
|
y=-203
|
||||||
[0F]
|
[0F]
|
||||||
name=DOCPACK
|
name=DOCPACK
|
||||||
path=DOCPACK
|
path=DOCPACK
|
||||||
@@ -116,8 +116,8 @@ ico=8
|
|||||||
x=-67
|
x=-67
|
||||||
y=68
|
y=68
|
||||||
[10]
|
[10]
|
||||||
name=BOARD
|
name=DBGBOARD
|
||||||
path=/SYS/DEVELOP/BOARD
|
path=/SYS/DEVELOP/DBGBOARD
|
||||||
param=
|
param=
|
||||||
ico=19
|
ico=19
|
||||||
x=-135
|
x=-135
|
||||||
@@ -165,12 +165,12 @@ ico=21
|
|||||||
x=68
|
x=68
|
||||||
y=-135
|
y=-135
|
||||||
[17]
|
[17]
|
||||||
name=FLAPPY-BIRD
|
name=FLOPPY-BIRD
|
||||||
path=/SYS/GAMES/FLPYBIRD
|
path=/SYS/GAMES/FLPYBIRD
|
||||||
param=
|
param=
|
||||||
ico=49
|
ico=49
|
||||||
x=-271
|
x=-135
|
||||||
y=-135
|
y=-203
|
||||||
[18]
|
[18]
|
||||||
name=KOSILKA
|
name=KOSILKA
|
||||||
path=/SYS/GAMES/KOSILKA
|
path=/SYS/GAMES/KOSILKA
|
||||||
@@ -248,3 +248,10 @@ param=
|
|||||||
ico=125
|
ico=125
|
||||||
x=204
|
x=204
|
||||||
y=136
|
y=136
|
||||||
|
[23]
|
||||||
|
name=DINO
|
||||||
|
path=/sys/games/dino
|
||||||
|
param=
|
||||||
|
ico=129
|
||||||
|
x=-203
|
||||||
|
y=-203
|
||||||
|
@@ -106,8 +106,8 @@ name=15
|
|||||||
path=/SYS/GAMES/15
|
path=/SYS/GAMES/15
|
||||||
param=
|
param=
|
||||||
ico=34
|
ico=34
|
||||||
x=-271
|
x=-67
|
||||||
y=-67
|
y=-203
|
||||||
[0F]
|
[0F]
|
||||||
name=DOCPACK
|
name=DOCPACK
|
||||||
path=DOCPACK
|
path=DOCPACK
|
||||||
@@ -116,8 +116,8 @@ ico=8
|
|||||||
x=-67
|
x=-67
|
||||||
y=68
|
y=68
|
||||||
[10]
|
[10]
|
||||||
name=BOARD
|
name=DBGBOARD
|
||||||
path=/SYS/DEVELOP/BOARD
|
path=/SYS/DEVELOP/DBGBOARD
|
||||||
param=
|
param=
|
||||||
ico=19
|
ico=19
|
||||||
x=-135
|
x=-135
|
||||||
@@ -165,12 +165,12 @@ ico=21
|
|||||||
x=68
|
x=68
|
||||||
y=-135
|
y=-135
|
||||||
[17]
|
[17]
|
||||||
name=FLAPPY-BIRD
|
name=FLOPPY-BIRD
|
||||||
path=/SYS/GAMES/FLPYBIRD
|
path=/SYS/GAMES/FLPYBIRD
|
||||||
param=
|
param=
|
||||||
ico=49
|
ico=49
|
||||||
x=-271
|
x=-135
|
||||||
y=-135
|
y=-203
|
||||||
[18]
|
[18]
|
||||||
name=KOSILKA
|
name=KOSILKA
|
||||||
path=/SYS/GAMES/KOSILKA
|
path=/SYS/GAMES/KOSILKA
|
||||||
@@ -248,3 +248,10 @@ param=
|
|||||||
ico=125
|
ico=125
|
||||||
x=204
|
x=204
|
||||||
y=136
|
y=136
|
||||||
|
[23]
|
||||||
|
name=DINO
|
||||||
|
path=/sys/games/dino
|
||||||
|
param=
|
||||||
|
ico=129
|
||||||
|
x=-203
|
||||||
|
y=-203
|
||||||
|
@@ -17,10 +17,12 @@ I.
|
|||||||
2) ‡ ¯¨è¨â¥ ¥ñ ®¡à § kolibri.img «î¡ë¬ ¨§ ¤®áâã¯ëå ᯮᮡ®¢:
|
2) ‡ ¯¨è¨â¥ ¥ñ ®¡à § kolibri.img «î¡ë¬ ¨§ ¤®áâã¯ëå ᯮᮡ®¢:
|
||||||
) (¥á«¨ ‚ë 㦥 § £à㧨«¨ ª ª¨¬-«¨¡® ®¡à §®¬ Š®«¨¡à¨) § ¯ãáâ¨â¥ ¯à®£à ¬¬ã
|
) (¥á«¨ ‚ë 㦥 § £à㧨«¨ ª ª¨¬-«¨¡® ®¡à §®¬ Š®«¨¡à¨) § ¯ãáâ¨â¥ ¯à®£à ¬¬ã
|
||||||
rdsave ¨ ¢ë¡¥à¨â¥ ᮮ⢥âáâ¢ãî騩 ¤¨áª¥â¥ ¨§ ¯à¥¤« £ ¥¬ëå ¢ ਠ⮢
|
rdsave ¨ ¢ë¡¥à¨â¥ ᮮ⢥âáâ¢ãî騩 ¤¨áª¥â¥ ¨§ ¯à¥¤« £ ¥¬ëå ¢ ਠ⮢
|
||||||
¡) (¤«ï DOS ¨ Windows) § ¯ãáâ¨â¥ ¯à¨« £ ¥¬ë© install.bat
|
¡) ¤«ï DOS ¢®á¯®«ì§ã©â¥áì ã⨫¨â®© DskImage
|
||||||
¢) ¯à®£à ¬¬®© WinImage ¨«¨ ¥ñ «®£ ¬¨ ( ¯à¨¬¥à, DiskExplorer)
|
¢) ¤«ï Windows ¯®¤®©¤ñâ ¯à®£à ¬¬ WinImage, RawWrite for Windows ¨«¨ «®£
|
||||||
£) (¤«ï Linux) ¢ëáâ ¢ì⥠âਡãâ "¨á¯®«ï¥¬ë©" ¯à¨« £ ¥¬®¬ã áªà¨¯âã
|
£) ¤«ï Linux § ¯ãáâ¨â¥ ª®¬ ¤ã:
|
||||||
install.sh ¨ § ¯ãáâ¨â¥ ¥£®
|
`dd if=/pathto/kolibri.img of=/dev/fd0 bs=512 count=2880`
|
||||||
|
<20>¥à¥¤ ¨§¢«¥ç¥¨¥¬ ¤¨áª¥âë ¥ § ¡ã¤ì⥠¥ñ à §¬®â¨à®¢ âì.
|
||||||
|
|
||||||
’¥¯¥àì á ¤¨áª¥âë ¬®¦® § £à㦠âìáï (®áâ ¢¨¢ ¥ñ ¢ ¤¨áª®¢®¤¥, ¯¥à¥§ £à㧨â¥áì,
|
’¥¯¥àì á ¤¨áª¥âë ¬®¦® § £à㦠âìáï (®áâ ¢¨¢ ¥ñ ¢ ¤¨áª®¢®¤¥, ¯¥à¥§ £à㧨â¥áì,
|
||||||
ãáâ ®¢¨¢ ¢ BIOS'¥ ®¯æ¨î § £à㧪¨ á ¤¨áª¥âë).
|
ãáâ ®¢¨¢ ¢ BIOS'¥ ®¯æ¨î § £à㧪¨ á ¤¨áª¥âë).
|
||||||
|
|
@@ -21,7 +21,7 @@ KolibriOS частично обеспечивает поддержку обор
|
|||||||
|
|
||||||
<h2>Графика</h2>
|
<h2>Графика</h2>
|
||||||
<b>Стандарт Поддержка в KolibriOS</b>
|
<b>Стандарт Поддержка в KolibriOS</b>
|
||||||
VESA Поддерживается ядром ОС
|
VESA 2.0+ Поддерживается ядром ОС
|
||||||
VGA Поддерживается ядром ОС
|
VGA Поддерживается ядром ОС
|
||||||
|
|
||||||
<b>Производитель Наличие специального драйвера</b>
|
<b>Производитель Наличие специального драйвера</b>
|
||||||
|
@@ -16,6 +16,7 @@ Freecell=games/freecell,68
|
|||||||
Pong=games/pong,101
|
Pong=games/pong,101
|
||||||
Pong3=games/pong3,12
|
Pong3=games/pong3,12
|
||||||
Arcanii=/kg/arcanii,12
|
Arcanii=/kg/arcanii,12
|
||||||
|
Dino=games/dino,129
|
||||||
|
|
||||||
[<5B>ઠ<EFBFBD><E0AAA0>]
|
[<5B>ઠ<EFBFBD><E0AAA0>]
|
||||||
LaserTank=/kg/lasertank/lasertank,72
|
LaserTank=/kg/lasertank/lasertank,72
|
||||||
|
@@ -106,8 +106,8 @@ name=15
|
|||||||
path=/SYS/GAMES/15
|
path=/SYS/GAMES/15
|
||||||
param=
|
param=
|
||||||
ico=34
|
ico=34
|
||||||
x=-271
|
x=-67
|
||||||
y=-67
|
y=-203
|
||||||
[0F]
|
[0F]
|
||||||
name=DOCPACK
|
name=DOCPACK
|
||||||
path=DOCPACK
|
path=DOCPACK
|
||||||
@@ -116,8 +116,8 @@ ico=8
|
|||||||
x=-67
|
x=-67
|
||||||
y=68
|
y=68
|
||||||
[10]
|
[10]
|
||||||
name=BOARD
|
name=DBGBOARD
|
||||||
path=/SYS/DEVELOP/BOARD
|
path=/SYS/DEVELOP/DBGBOARD
|
||||||
param=
|
param=
|
||||||
ico=19
|
ico=19
|
||||||
x=-135
|
x=-135
|
||||||
@@ -165,12 +165,12 @@ ico=21
|
|||||||
x=68
|
x=68
|
||||||
y=-135
|
y=-135
|
||||||
[17]
|
[17]
|
||||||
name=FLAPPY-BIRD
|
name=FLOPPY-BIRD
|
||||||
path=/SYS/GAMES/FLPYBIRD
|
path=/SYS/GAMES/FLPYBIRD
|
||||||
param=
|
param=
|
||||||
ico=49
|
ico=49
|
||||||
x=-271
|
x=-135
|
||||||
y=-135
|
y=-203
|
||||||
[18]
|
[18]
|
||||||
name=KOSILKA
|
name=KOSILKA
|
||||||
path=/SYS/GAMES/KOSILKA
|
path=/SYS/GAMES/KOSILKA
|
||||||
@@ -248,3 +248,10 @@ param=
|
|||||||
ico=125
|
ico=125
|
||||||
x=204
|
x=204
|
||||||
y=136
|
y=136
|
||||||
|
[23]
|
||||||
|
name=DINO
|
||||||
|
path=/sys/games/dino
|
||||||
|
param=
|
||||||
|
ico=129
|
||||||
|
x=-203
|
||||||
|
y=-203
|
||||||
|
@@ -49,16 +49,16 @@
|
|||||||
11 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Fplay * |/kolibrios/media/fplay
|
11 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Fplay * |/kolibrios/media/fplay
|
||||||
#5 **** <20><><EFBFBD>ࠡ<EFBFBD>⪠
|
#5 **** <20><><EFBFBD>ࠡ<EFBFBD>⪠
|
||||||
54 Flat Assembler |develop/fasm
|
54 Flat Assembler |develop/fasm
|
||||||
27 Example.asm |example.asm
|
27 Example.asm |/sys/example.asm
|
||||||
09 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>騪 KPack |kpack
|
09 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>騪 KPack |kpack
|
||||||
49 <20>⫠<EFBFBD>稪 |develop/mtdbg
|
49 <20>⫠<EFBFBD>稪 mtdbg |develop/mtdbg
|
||||||
|
49 <20>⫠<EFBFBD>稪 koldbg * |/kolibrios/develop/koldbg
|
||||||
13 <20><>᪠ <20>⫠<EFBFBD><E2ABA0><EFBFBD> |develop/board
|
13 <20><>᪠ <20>⫠<EFBFBD><E2ABA0><EFBFBD> |develop/board
|
||||||
16 HEX-।<><E0A5A4><EFBFBD><EFBFBD><EFBFBD> |develop/heed
|
16 HEX-।<><E0A5A4><EFBFBD><EFBFBD><EFBFBD> |develop/heed
|
||||||
20 Diff tool |develop/diff
|
20 Diff tool |develop/diff
|
||||||
52 Shared resources |/sys/@reshare
|
52 Shared resources |/sys/@reshare
|
||||||
34 Hex2Dec2Bin |develop/h2d2b
|
34 Hex2Dec2Bin |develop/h2d2b
|
||||||
59 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ᨬ<><E1A8AC><EFBFBD><EFBFBD><EFBFBD> |develop/ASCIIVju
|
59 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ᨬ<><E1A8AC><EFBFBD><EFBFBD><EFBFBD> |develop/CHARSETS
|
||||||
59 ASCII-<2D><><EFBFBD><EFBFBD> |develop/keyascii
|
|
||||||
59 SCAN-<2D><><EFBFBD><EFBFBD> |develop/scancode
|
59 SCAN-<2D><><EFBFBD><EFBFBD> |develop/scancode
|
||||||
#6 **** <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
#6 **** <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||||
24 DOSBox * |/kolibrios/emul/DosBox/dosbox
|
24 DOSBox * |/kolibrios/emul/DosBox/dosbox
|
||||||
|
3
drivers/serial/Tupfile.lua
Normal file
3
drivers/serial/Tupfile.lua
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
if tup.getconfig("NO_FASM") ~= "" then return end
|
||||||
|
ROOT = "../.."
|
||||||
|
tup.rule("serial.asm", "fasm %f %o " .. tup.getconfig("PESTRIP_CMD") .. tup.getconfig("KPACK_CMD"), "%B.sys")
|
272
drivers/serial/common.inc
Executable file
272
drivers/serial/common.inc
Executable file
@@ -0,0 +1,272 @@
|
|||||||
|
SERIAL_API_GET_VERSION = 0
|
||||||
|
SERIAL_API_SRV_ADD_PORT = 1
|
||||||
|
SERIAL_API_SRV_REMOVE_PORT = 2
|
||||||
|
SERIAL_API_SRV_HANDLE_EVENT = 3
|
||||||
|
SERIAL_API_OPEN_PORT = 4
|
||||||
|
SERIAL_API_CLOSE_PORT = 5
|
||||||
|
SERIAL_API_SETUP_PORT = 6
|
||||||
|
SERIAL_API_READ = 7
|
||||||
|
SERIAL_API_WRITE = 8
|
||||||
|
|
||||||
|
SERIAL_API_ERR_PORT_INVALID = 1
|
||||||
|
SERIAL_API_ERR_PORT_BUSY = 2
|
||||||
|
SERIAL_API_ERR_CONF = 3
|
||||||
|
|
||||||
|
SERIAL_EVT_TXE = 1 ; tx fifo or register is empty, all data has been sent
|
||||||
|
SERIAL_EVT_RXNE = 2 ; rx fifo or register is not empty
|
||||||
|
|
||||||
|
SERIAL_CONF_PARITY_NONE = 0
|
||||||
|
SERIAL_CONF_PARITY_EVEN = 1
|
||||||
|
SERIAL_CONF_PARITY_ODD = 2
|
||||||
|
SERIAL_CONF_PARITY_MARK = 3
|
||||||
|
SERIAL_CONF_PARITY_SPACE = 4
|
||||||
|
|
||||||
|
SERIAL_CONF_FLOW_CTRL_NONE = 0
|
||||||
|
|
||||||
|
struct SP_DRIVER
|
||||||
|
size dd ? ; size of this struct
|
||||||
|
startup dd ? ; void __stdcall (*startup)(void *drv_data, const struct serial_conf *conf);
|
||||||
|
shutdown dd ? ; void __stdcall (*shutdown)(void *drv_data);
|
||||||
|
reconf dd ? ; void __stdcall (*reconf)(void *drv_data, const struct serial_conf *conf);
|
||||||
|
tx dd ? ; void __stdcall (*tx)(void *drv_data);
|
||||||
|
ends
|
||||||
|
|
||||||
|
struct SP_CONF
|
||||||
|
size dd ? ; size of this struct
|
||||||
|
baudrate dd ?
|
||||||
|
word_size db ?
|
||||||
|
stop_bits db ?
|
||||||
|
parity db ?
|
||||||
|
flow_ctrl db ?
|
||||||
|
ends
|
||||||
|
|
||||||
|
proc serial_add_port stdcall, drv:dword, drv_data:dword
|
||||||
|
locals
|
||||||
|
handler dd ?
|
||||||
|
io_code dd ?
|
||||||
|
input dd ?
|
||||||
|
inp_size dd ?
|
||||||
|
output dd ?
|
||||||
|
out_size dd ?
|
||||||
|
endl
|
||||||
|
mov eax, [serial_drv_entry]
|
||||||
|
mov [handler], eax
|
||||||
|
mov [io_code], SERIAL_API_SRV_ADD_PORT
|
||||||
|
lea eax, [drv]
|
||||||
|
mov [input], eax
|
||||||
|
mov [inp_size], 8
|
||||||
|
xor eax, eax
|
||||||
|
mov [output], eax
|
||||||
|
mov [out_size], eax
|
||||||
|
lea eax, [handler]
|
||||||
|
push esi edi
|
||||||
|
invoke ServiceHandler, eax
|
||||||
|
pop edi esi
|
||||||
|
ret
|
||||||
|
endp
|
||||||
|
|
||||||
|
proc serial_remove_port stdcall, port:dword
|
||||||
|
locals
|
||||||
|
handler dd ?
|
||||||
|
io_code dd ?
|
||||||
|
input dd ?
|
||||||
|
inp_size dd ?
|
||||||
|
output dd ?
|
||||||
|
out_size dd ?
|
||||||
|
endl
|
||||||
|
mov eax, [serial_drv_entry]
|
||||||
|
mov [handler], eax
|
||||||
|
mov [io_code], SERIAL_API_SRV_REMOVE_PORT
|
||||||
|
lea eax, [port]
|
||||||
|
mov [input], eax
|
||||||
|
mov [inp_size], 4
|
||||||
|
xor eax, eax
|
||||||
|
mov [output], eax
|
||||||
|
mov [out_size], eax
|
||||||
|
lea eax, [handler]
|
||||||
|
push esi edi
|
||||||
|
invoke ServiceHandler, eax
|
||||||
|
pop edi esi
|
||||||
|
ret
|
||||||
|
endp
|
||||||
|
|
||||||
|
; see SERIAL_EVT_*
|
||||||
|
proc serial_handle_event stdcall, port:dword, event:dword, count:dword, buff:dword
|
||||||
|
locals
|
||||||
|
handler dd ?
|
||||||
|
io_code dd ?
|
||||||
|
input dd ?
|
||||||
|
inp_size dd ?
|
||||||
|
output dd ?
|
||||||
|
out_size dd ?
|
||||||
|
endl
|
||||||
|
mov eax, [serial_drv_entry]
|
||||||
|
mov [handler], eax
|
||||||
|
mov [io_code], SERIAL_API_SRV_HANDLE_EVENT
|
||||||
|
lea eax, [port]
|
||||||
|
mov [input], eax
|
||||||
|
mov [inp_size], 16
|
||||||
|
xor eax, eax
|
||||||
|
mov [output], eax
|
||||||
|
mov [out_size], eax
|
||||||
|
lea eax, [handler]
|
||||||
|
push esi edi
|
||||||
|
invoke ServiceHandler, eax
|
||||||
|
pop edi esi
|
||||||
|
ret
|
||||||
|
endp
|
||||||
|
|
||||||
|
proc serial_port_init
|
||||||
|
lea ecx, [serial_drv_name]
|
||||||
|
mcall SF_SYS_MISC, SSF_LOAD_DRIVER
|
||||||
|
mov [serial_drv_handle], eax
|
||||||
|
ret
|
||||||
|
endp
|
||||||
|
|
||||||
|
proc serial_port_open stdcall uses ebx, port_id:dword, conf:dword, handle:dword
|
||||||
|
locals
|
||||||
|
.handler dd ?
|
||||||
|
.io_code dd ?
|
||||||
|
.input dd ?
|
||||||
|
.inp_size dd ?
|
||||||
|
.output dd ?
|
||||||
|
.out_size dd ?
|
||||||
|
endl
|
||||||
|
push [conf]
|
||||||
|
push [port_id]
|
||||||
|
mov eax, [serial_drv_handle]
|
||||||
|
mov [.handler], eax
|
||||||
|
mov dword [.io_code], SERIAL_API_OPEN_PORT
|
||||||
|
mov [.input], esp
|
||||||
|
mov dword [.inp_size], 8
|
||||||
|
mov eax, [handle]
|
||||||
|
mov [.output], eax
|
||||||
|
mov dword [.out_size], 4
|
||||||
|
|
||||||
|
lea ecx, [.handler]
|
||||||
|
mcall SF_SYS_MISC, SSF_CONTROL_DRIVER
|
||||||
|
|
||||||
|
add esp, 8
|
||||||
|
ret
|
||||||
|
endp
|
||||||
|
|
||||||
|
proc serial_port_close stdcall uses ebx, handle:dword
|
||||||
|
locals
|
||||||
|
.handler dd ?
|
||||||
|
.io_code dd ?
|
||||||
|
.input dd ?
|
||||||
|
.inp_size dd ?
|
||||||
|
.output dd ?
|
||||||
|
.out_size dd ?
|
||||||
|
endl
|
||||||
|
push [handle]
|
||||||
|
mov eax, [serial_drv_handle]
|
||||||
|
mov [.handler], eax
|
||||||
|
mov dword [.io_code], SERIAL_API_CLOSE_PORT
|
||||||
|
mov [.input], esp
|
||||||
|
mov dword [.inp_size], 4
|
||||||
|
mov dword [.output], 0
|
||||||
|
mov dword [.out_size], 0
|
||||||
|
|
||||||
|
lea ecx, [.handler]
|
||||||
|
mcall SF_SYS_MISC, SSF_CONTROL_DRIVER
|
||||||
|
|
||||||
|
add esp, 4
|
||||||
|
ret
|
||||||
|
endp
|
||||||
|
|
||||||
|
proc serial_port_setup stdcall uses ebx, handle:dword, conf:dword
|
||||||
|
locals
|
||||||
|
.handler dd ?
|
||||||
|
.io_code dd ?
|
||||||
|
.input dd ?
|
||||||
|
.inp_size dd ?
|
||||||
|
.output dd ?
|
||||||
|
.out_size dd ?
|
||||||
|
endl
|
||||||
|
push [conf]
|
||||||
|
push [handle]
|
||||||
|
mov eax, [serial_drv_handle]
|
||||||
|
mov [.handler], eax
|
||||||
|
mov dword [.io_code], SERIAL_API_SETUP_PORT
|
||||||
|
mov [.input], esp
|
||||||
|
mov dword [.inp_size], 8
|
||||||
|
sub esp, 4
|
||||||
|
mov [.output], esp
|
||||||
|
mov dword [.out_size], 4
|
||||||
|
|
||||||
|
lea ecx, [.handler]
|
||||||
|
mcall SF_SYS_MISC, SSF_CONTROL_DRIVER
|
||||||
|
|
||||||
|
pop eax
|
||||||
|
add esp, 8
|
||||||
|
ret
|
||||||
|
endp
|
||||||
|
|
||||||
|
proc serial_port_read stdcall uses ebx, handle:dword, dest:dword, count_ptr:dword
|
||||||
|
locals
|
||||||
|
.handler dd ?
|
||||||
|
.io_code dd ?
|
||||||
|
.input dd ?
|
||||||
|
.inp_size dd ?
|
||||||
|
.output dd ?
|
||||||
|
.out_size dd ?
|
||||||
|
endl
|
||||||
|
mov eax, [count_ptr]
|
||||||
|
push dword [eax]
|
||||||
|
push [dest]
|
||||||
|
push [handle]
|
||||||
|
mov eax, [serial_drv_handle]
|
||||||
|
mov [.handler], eax
|
||||||
|
mov dword [.io_code], SERIAL_API_READ
|
||||||
|
mov [.input], esp
|
||||||
|
mov dword [.inp_size], 12
|
||||||
|
sub esp, 4
|
||||||
|
mov [.output], esp
|
||||||
|
mov [.out_size], 4
|
||||||
|
|
||||||
|
lea ecx, [.handler]
|
||||||
|
mcall SF_SYS_MISC, SSF_CONTROL_DRIVER
|
||||||
|
|
||||||
|
pop ecx
|
||||||
|
mov edx, [count_ptr]
|
||||||
|
mov [edx], ecx
|
||||||
|
add esp, 12
|
||||||
|
ret
|
||||||
|
endp
|
||||||
|
|
||||||
|
proc serial_port_write stdcall uses ebx, handle:dword, src:dword, count_ptr:dword
|
||||||
|
locals
|
||||||
|
.handler dd ?
|
||||||
|
.io_code dd ?
|
||||||
|
.input dd ?
|
||||||
|
.inp_size dd ?
|
||||||
|
.output dd ?
|
||||||
|
.out_size dd ?
|
||||||
|
endl
|
||||||
|
mov eax, [count_ptr]
|
||||||
|
push dword [eax]
|
||||||
|
push [src]
|
||||||
|
push [handle]
|
||||||
|
mov eax, [serial_drv_handle]
|
||||||
|
mov [.handler], eax
|
||||||
|
mov dword [.io_code], SERIAL_API_WRITE
|
||||||
|
mov [.input], esp
|
||||||
|
mov dword [.inp_size], 12
|
||||||
|
sub esp, 4
|
||||||
|
mov dword [.output], esp
|
||||||
|
mov dword [.out_size], 4
|
||||||
|
|
||||||
|
lea ecx, [.handler]
|
||||||
|
mcall SF_SYS_MISC, SSF_CONTROL_DRIVER
|
||||||
|
|
||||||
|
pop ecx
|
||||||
|
mov edx, [count_ptr]
|
||||||
|
mov [edx], ecx
|
||||||
|
add esp, 12
|
||||||
|
ret
|
||||||
|
endp
|
||||||
|
|
||||||
|
align 4
|
||||||
|
serial_drv_name db "SERIAL", 0
|
||||||
|
serial_drv_handle dd ?
|
178
drivers/serial/ring_buf.inc
Executable file
178
drivers/serial/ring_buf.inc
Executable file
@@ -0,0 +1,178 @@
|
|||||||
|
struct RING_BUF
|
||||||
|
start_ptr dd ? ; Pointer to start of buffer
|
||||||
|
end_ptr dd ? ; Pointer to end of buffer
|
||||||
|
read_ptr dd ? ; Read pointer
|
||||||
|
write_ptr dd ? ; Write pointer
|
||||||
|
size dd ? ; Size of buffer
|
||||||
|
ends
|
||||||
|
|
||||||
|
;bool __fastcall ring_buf_create(struct RING_BUF *buf, u32 size)
|
||||||
|
align 4
|
||||||
|
proc ring_buf_create
|
||||||
|
push ecx
|
||||||
|
push edx
|
||||||
|
invoke CreateRingBuffer, edx, PG_SW
|
||||||
|
pop edx
|
||||||
|
pop ecx
|
||||||
|
test eax, eax
|
||||||
|
jz .exit
|
||||||
|
|
||||||
|
mov [ecx + RING_BUF.start_ptr], eax
|
||||||
|
mov [ecx + RING_BUF.write_ptr], eax
|
||||||
|
mov [ecx + RING_BUF.read_ptr], eax
|
||||||
|
add eax, edx
|
||||||
|
mov [ecx + RING_BUF.end_ptr], eax
|
||||||
|
mov [ecx + RING_BUF.size], edx
|
||||||
|
or eax, 1
|
||||||
|
.exit:
|
||||||
|
ret
|
||||||
|
endp
|
||||||
|
|
||||||
|
;void __fastcall ring_buf_destroy(struct RING_BUF *buf)
|
||||||
|
align 4
|
||||||
|
proc ring_buf_destroy
|
||||||
|
xor eax, eax
|
||||||
|
mov [ecx + RING_BUF.write_ptr], eax
|
||||||
|
mov [ecx + RING_BUF.read_ptr], eax
|
||||||
|
mov [ecx + RING_BUF.end_ptr], eax
|
||||||
|
mov [ecx + RING_BUF.size], eax
|
||||||
|
xchg eax, [ecx + RING_BUF.start_ptr]
|
||||||
|
invoke KernelFree, eax
|
||||||
|
ret
|
||||||
|
endp
|
||||||
|
|
||||||
|
;u32 __fastcall ring_buf_count(struct RING_BUF *buf)
|
||||||
|
align 4
|
||||||
|
proc ring_buf_count
|
||||||
|
mov eax, [ecx + RING_BUF.write_ptr]
|
||||||
|
mov edx, [ecx + RING_BUF.read_ptr]
|
||||||
|
cmp eax, edx
|
||||||
|
jb @f
|
||||||
|
sub eax, edx
|
||||||
|
ret
|
||||||
|
|
||||||
|
@@:
|
||||||
|
sub eax, edx
|
||||||
|
add eax, [ecx + RING_BUF.size]
|
||||||
|
ret
|
||||||
|
endp
|
||||||
|
|
||||||
|
;u32 __fastcall ring_buf_free(struct RING_BUF *buf)
|
||||||
|
align 4
|
||||||
|
proc ring_buf_free
|
||||||
|
mov eax, [ecx + RING_BUF.read_ptr]
|
||||||
|
mov edx, [ecx + RING_BUF.write_ptr]
|
||||||
|
cmp eax, edx
|
||||||
|
jae @f
|
||||||
|
sub eax, edx
|
||||||
|
dec eax
|
||||||
|
ret
|
||||||
|
|
||||||
|
@@:
|
||||||
|
sub eax, edx
|
||||||
|
dec eax
|
||||||
|
add eax, [ecx + RING_BUF.size]
|
||||||
|
ret
|
||||||
|
endp
|
||||||
|
|
||||||
|
;u32 __stdcall ring_buf_write(struct RING_BUF *buf, const u32 *src, u32 size)
|
||||||
|
align 4
|
||||||
|
proc ring_buf_write stdcall uses esi edi, buf, src, size
|
||||||
|
mov ecx, [buf]
|
||||||
|
call ring_buf_free
|
||||||
|
test eax, eax
|
||||||
|
jz .exit
|
||||||
|
|
||||||
|
mov esi, [src]
|
||||||
|
mov edi, [ecx + RING_BUF.write_ptr]
|
||||||
|
mov ecx, [size]
|
||||||
|
cmp ecx, eax
|
||||||
|
jbe .copy
|
||||||
|
mov ecx, eax
|
||||||
|
.copy:
|
||||||
|
mov eax, ecx
|
||||||
|
cld
|
||||||
|
shr ecx, 1
|
||||||
|
jnc .nb
|
||||||
|
movsb
|
||||||
|
.nb:
|
||||||
|
shr ecx, 1
|
||||||
|
jnc .nw
|
||||||
|
movsw
|
||||||
|
.nw:
|
||||||
|
test ecx, ecx
|
||||||
|
jz .nd
|
||||||
|
rep movsd
|
||||||
|
.nd:
|
||||||
|
mov ecx, [buf]
|
||||||
|
cmp edi, [ecx + RING_BUF.end_ptr]
|
||||||
|
jb @f
|
||||||
|
sub edi, [ecx + RING_BUF.size]
|
||||||
|
@@:
|
||||||
|
mov [ecx + RING_BUF.write_ptr], edi
|
||||||
|
.exit:
|
||||||
|
ret
|
||||||
|
endp
|
||||||
|
|
||||||
|
;u32 __stdcall ring_buf_read(struct RING_BUF *buf, u32 *dst, u32 size)
|
||||||
|
align 4
|
||||||
|
proc ring_buf_read stdcall uses ebx esi edi, buf, dst, size
|
||||||
|
mov ecx, [buf]
|
||||||
|
call ring_buf_count
|
||||||
|
test eax, eax
|
||||||
|
jz .exit
|
||||||
|
|
||||||
|
mov esi, [ecx + RING_BUF.read_ptr]
|
||||||
|
mov edi, [dst]
|
||||||
|
mov ecx, [size]
|
||||||
|
cmp ecx, eax
|
||||||
|
jbe .copy
|
||||||
|
mov ecx, eax
|
||||||
|
.copy:
|
||||||
|
mov eax, ecx
|
||||||
|
shr ecx, 1
|
||||||
|
jnc .nb
|
||||||
|
cld
|
||||||
|
movsb
|
||||||
|
.nb:
|
||||||
|
shr ecx, 1
|
||||||
|
jnc .nw
|
||||||
|
movsw
|
||||||
|
.nw:
|
||||||
|
test ecx, ecx
|
||||||
|
jz .nd
|
||||||
|
rep movsd
|
||||||
|
.nd:
|
||||||
|
mov ecx, [buf]
|
||||||
|
cmp esi, [ecx + RING_BUF.end_ptr]
|
||||||
|
jb .save_ptr
|
||||||
|
sub esi, [ecx + RING_BUF.size]
|
||||||
|
.save_ptr:
|
||||||
|
mov [ecx + RING_BUF.read_ptr], esi
|
||||||
|
.exit:
|
||||||
|
ret
|
||||||
|
endp
|
||||||
|
|
||||||
|
;u32 __fastcall ring_buf_discard(struct RING_BUF *buf, u32 size)
|
||||||
|
align 4
|
||||||
|
proc ring_buf_discard
|
||||||
|
push ecx
|
||||||
|
push edx
|
||||||
|
call ring_buf_count
|
||||||
|
pop edx
|
||||||
|
pop ecx
|
||||||
|
|
||||||
|
cmp eax, edx
|
||||||
|
jae .discard
|
||||||
|
mov edx, eax
|
||||||
|
.discard:
|
||||||
|
push edx
|
||||||
|
add edx, [ecx + RING_BUF.read_ptr]
|
||||||
|
cmp edx, [ecx + RING_BUF.end_ptr]
|
||||||
|
jb .save_ptr
|
||||||
|
sub edx, [ecx + RING_BUF.size]
|
||||||
|
.save_ptr:
|
||||||
|
mov [ecx + RING_BUF.read_ptr], edx
|
||||||
|
pop eax
|
||||||
|
ret
|
||||||
|
endp
|
675
drivers/serial/serial.asm
Executable file
675
drivers/serial/serial.asm
Executable file
@@ -0,0 +1,675 @@
|
|||||||
|
format PE DLL native 0.05
|
||||||
|
entry START
|
||||||
|
|
||||||
|
L_DBG = 1
|
||||||
|
L_ERR = 2
|
||||||
|
|
||||||
|
__DEBUG__ = 0
|
||||||
|
__DEBUG_LEVEL__ = L_DBG
|
||||||
|
|
||||||
|
SERIAL_RING_BUF_SIZE = 32768
|
||||||
|
|
||||||
|
API_VERSION = 1
|
||||||
|
|
||||||
|
section '.flat' readable writable executable
|
||||||
|
|
||||||
|
include '../struct.inc'
|
||||||
|
include '../proc32.inc'
|
||||||
|
include '../fdo.inc'
|
||||||
|
include '../macros.inc'
|
||||||
|
include '../peimport.inc'
|
||||||
|
|
||||||
|
include 'common.inc'
|
||||||
|
include 'ring_buf.inc'
|
||||||
|
include 'uart16550.inc'
|
||||||
|
|
||||||
|
struct SERIAL_OBJ
|
||||||
|
magic dd ?
|
||||||
|
destroy dd ?
|
||||||
|
fd dd ?
|
||||||
|
bk dd ?
|
||||||
|
pid dd ?
|
||||||
|
port dd ? ; pointer to SERIAL_PORT
|
||||||
|
ends
|
||||||
|
|
||||||
|
struct SERIAL_PORT
|
||||||
|
fd dd ?
|
||||||
|
bk dd ?
|
||||||
|
id dd ? ; unique port number
|
||||||
|
mtx MUTEX
|
||||||
|
con dd ? ; pointer to SERIAL_OBJ
|
||||||
|
drv dd ? ; pointer to struct SP_DRIVER
|
||||||
|
drv_data dd ? ; pointer to driver-defined data
|
||||||
|
rx_buf RING_BUF
|
||||||
|
tx_buf RING_BUF
|
||||||
|
conf SP_CONF
|
||||||
|
ends
|
||||||
|
|
||||||
|
proc START c, reason:dword
|
||||||
|
cmp [reason], DRV_ENTRY
|
||||||
|
jne .fail
|
||||||
|
|
||||||
|
mov ecx, port_list_mutex
|
||||||
|
invoke MutexInit
|
||||||
|
|
||||||
|
stdcall uart_probe, 0x3f8, 4
|
||||||
|
stdcall uart_probe, 0x2f8, 3
|
||||||
|
stdcall uart_probe, 0x3e8, 4
|
||||||
|
stdcall uart_probe, 0x2e8, 3
|
||||||
|
invoke RegService, drv_name, service_proc
|
||||||
|
ret
|
||||||
|
|
||||||
|
.fail:
|
||||||
|
xor eax, eax
|
||||||
|
ret
|
||||||
|
endp
|
||||||
|
|
||||||
|
srv_calls:
|
||||||
|
dd service_proc.get_version
|
||||||
|
dd service_proc.drv_add_port
|
||||||
|
dd service_proc.drv_remove_port
|
||||||
|
dd service_proc.drv_handle_event
|
||||||
|
dd service_proc.open
|
||||||
|
dd service_proc.close
|
||||||
|
dd service_proc.setup
|
||||||
|
dd service_proc.read
|
||||||
|
dd service_proc.write
|
||||||
|
; TODO enumeration
|
||||||
|
srv_calls_end:
|
||||||
|
|
||||||
|
proc service_proc stdcall uses ebx esi edi, ioctl:dword
|
||||||
|
mov edx, [ioctl]
|
||||||
|
mov eax, [edx + IOCTL.io_code]
|
||||||
|
cmp eax, (srv_calls_end - srv_calls) / 4
|
||||||
|
jae .err
|
||||||
|
jmp dword [srv_calls + eax * 4]
|
||||||
|
|
||||||
|
.get_version:
|
||||||
|
cmp [edx + IOCTL.out_size], 4
|
||||||
|
jb .err
|
||||||
|
mov edx, [edx + IOCTL.output]
|
||||||
|
mov dword [edx], API_VERSION
|
||||||
|
xor eax, eax
|
||||||
|
ret
|
||||||
|
|
||||||
|
.drv_add_port:
|
||||||
|
; in:
|
||||||
|
; +0: driver
|
||||||
|
; +4: driver data
|
||||||
|
cmp [edx + IOCTL.inp_size], 8
|
||||||
|
jb .err
|
||||||
|
mov ebx, [edx + IOCTL.input]
|
||||||
|
mov ecx, [ebx]
|
||||||
|
mov edx, [ebx + 4]
|
||||||
|
call add_port
|
||||||
|
ret
|
||||||
|
|
||||||
|
.drv_remove_port:
|
||||||
|
; in:
|
||||||
|
; +0: port handle
|
||||||
|
cmp [edx + IOCTL.inp_size], 4
|
||||||
|
jb .err
|
||||||
|
mov ebx, [edx + IOCTL.input]
|
||||||
|
mov ecx, [ebx]
|
||||||
|
call remove_port
|
||||||
|
ret
|
||||||
|
|
||||||
|
.drv_handle_event:
|
||||||
|
; in:
|
||||||
|
; +0: port handle
|
||||||
|
; +4: event
|
||||||
|
; +8: count
|
||||||
|
; +12: buf
|
||||||
|
cmp [edx + IOCTL.inp_size], 16
|
||||||
|
jb .err
|
||||||
|
mov ebx, [edx + IOCTL.input]
|
||||||
|
mov eax, [ebx]
|
||||||
|
mov edx, [ebx + 4]
|
||||||
|
mov ecx, [ebx + 8]
|
||||||
|
mov esi, [ebx + 12]
|
||||||
|
call handle_event
|
||||||
|
ret
|
||||||
|
|
||||||
|
.open:
|
||||||
|
; in:
|
||||||
|
; +0 port number
|
||||||
|
; +4 addr to SERIAL_CONF
|
||||||
|
; out:
|
||||||
|
; +0 port handle if success
|
||||||
|
cmp [edx + IOCTL.inp_size], 8
|
||||||
|
jb .err
|
||||||
|
cmp [edx + IOCTL.out_size], 4
|
||||||
|
jb .err
|
||||||
|
mov ebx, [edx + IOCTL.input]
|
||||||
|
mov ecx, [edx + IOCTL.output]
|
||||||
|
stdcall sp_open, [ebx], [ebx + 4], ecx
|
||||||
|
ret
|
||||||
|
|
||||||
|
.close:
|
||||||
|
; in:
|
||||||
|
; +0 port handle
|
||||||
|
cmp [edx + IOCTL.inp_size], 4
|
||||||
|
jb .err
|
||||||
|
mov ecx, [edx + IOCTL.input]
|
||||||
|
mov ecx, [ecx]
|
||||||
|
call sp_close
|
||||||
|
ret
|
||||||
|
|
||||||
|
.setup:
|
||||||
|
; in:
|
||||||
|
; +0 port handle
|
||||||
|
; +4 addr to SERIAL_CONF
|
||||||
|
; out:
|
||||||
|
; +0 result
|
||||||
|
cmp [edx + IOCTL.inp_size], 8
|
||||||
|
jb .err
|
||||||
|
cmp [edx + IOCTL.out_size], 4
|
||||||
|
jb .err
|
||||||
|
mov ebx, [edx + IOCTL.input]
|
||||||
|
push edx
|
||||||
|
mov eax, [ebx]
|
||||||
|
mov esi, [ebx + 4]
|
||||||
|
call sp_setup
|
||||||
|
pop edx
|
||||||
|
mov ebx, [edx + IOCTL.output]
|
||||||
|
mov [ebx], eax
|
||||||
|
ret
|
||||||
|
|
||||||
|
.read:
|
||||||
|
; in:
|
||||||
|
; +0 port handle
|
||||||
|
; +4 addr of dest buf
|
||||||
|
; +8 count to read
|
||||||
|
; out:
|
||||||
|
; +0 bytes read
|
||||||
|
cmp [edx + IOCTL.inp_size], 12
|
||||||
|
jb .err
|
||||||
|
cmp [edx + IOCTL.out_size], 4
|
||||||
|
jb .err
|
||||||
|
mov ebx, [edx + IOCTL.input]
|
||||||
|
push edx
|
||||||
|
mov eax, [ebx]
|
||||||
|
mov edi, [ebx + 4]
|
||||||
|
mov ecx, [ebx + 8]
|
||||||
|
call sp_read
|
||||||
|
pop edx
|
||||||
|
mov ebx, [edx + IOCTL.output]
|
||||||
|
mov [ebx], ecx
|
||||||
|
ret
|
||||||
|
|
||||||
|
.write:
|
||||||
|
; in:
|
||||||
|
; +0 port handle
|
||||||
|
; +4 addr to source buf
|
||||||
|
; +8 count to write
|
||||||
|
; out:
|
||||||
|
; +0 bytes written
|
||||||
|
cmp [edx + IOCTL.inp_size], 12
|
||||||
|
jb .err
|
||||||
|
cmp [edx + IOCTL.out_size], 4
|
||||||
|
jb .err
|
||||||
|
mov ebx, [edx + IOCTL.input]
|
||||||
|
push edx
|
||||||
|
mov eax, [ebx]
|
||||||
|
mov esi, [ebx + 4]
|
||||||
|
mov ecx, [ebx + 8]
|
||||||
|
call sp_write
|
||||||
|
pop edx
|
||||||
|
mov ebx, [edx + IOCTL.output]
|
||||||
|
mov [ebx], ecx
|
||||||
|
ret
|
||||||
|
|
||||||
|
.err:
|
||||||
|
or eax, -1
|
||||||
|
ret
|
||||||
|
endp
|
||||||
|
|
||||||
|
; struct SERIAL_PORT __fastcall *add_port(const struct SP_DRIVER *drv, const void *drv_data);
|
||||||
|
align 4
|
||||||
|
proc add_port uses edi
|
||||||
|
DEBUGF L_DBG, "serial.sys: add port drv=%x drv_data=%x\n", ecx, edx
|
||||||
|
|
||||||
|
mov eax, [ecx + SP_DRIVER.size]
|
||||||
|
cmp eax, sizeof.SP_DRIVER
|
||||||
|
jne .fail
|
||||||
|
|
||||||
|
; alloc memory for serial port descriptor
|
||||||
|
push ecx
|
||||||
|
push edx
|
||||||
|
movi eax, sizeof.SERIAL_PORT
|
||||||
|
invoke Kmalloc
|
||||||
|
pop edx
|
||||||
|
pop ecx
|
||||||
|
test eax, eax
|
||||||
|
jz .fail
|
||||||
|
|
||||||
|
; initialize fields of descriptor
|
||||||
|
mov edi, eax
|
||||||
|
mov [edi + SERIAL_PORT.drv], ecx
|
||||||
|
mov [edi + SERIAL_PORT.drv_data], edx
|
||||||
|
lea ecx, [edi + SERIAL_PORT.mtx]
|
||||||
|
invoke MutexInit
|
||||||
|
and [edi + SERIAL_PORT.con], 0
|
||||||
|
|
||||||
|
mov ecx, port_list_mutex
|
||||||
|
invoke MutexLock
|
||||||
|
|
||||||
|
; TODO obtain unused id's
|
||||||
|
mov eax, [port_count]
|
||||||
|
mov [edi + SERIAL_PORT.id], eax
|
||||||
|
inc [port_count]
|
||||||
|
|
||||||
|
; add port to linked list
|
||||||
|
mov eax, port_list
|
||||||
|
mov ecx, [eax + SERIAL_PORT.bk]
|
||||||
|
mov [edi + SERIAL_PORT.bk], ecx
|
||||||
|
mov [edi + SERIAL_PORT.fd], eax
|
||||||
|
mov [ecx + SERIAL_PORT.fd], edi
|
||||||
|
mov [eax + SERIAL_PORT.bk], edi
|
||||||
|
|
||||||
|
DEBUGF L_DBG, "serial.sys: add port %x with id %x\n", edi, [edi + SERIAL_PORT.id]
|
||||||
|
|
||||||
|
mov ecx, port_list_mutex
|
||||||
|
invoke MutexUnlock
|
||||||
|
|
||||||
|
mov eax, edi
|
||||||
|
ret
|
||||||
|
|
||||||
|
.fail:
|
||||||
|
xor eax, eax
|
||||||
|
ret
|
||||||
|
endp
|
||||||
|
|
||||||
|
align 4
|
||||||
|
; u32 __fastcall *remove_port(struct SERIAL_PORT *port);
|
||||||
|
proc remove_port uses esi
|
||||||
|
mov esi, ecx
|
||||||
|
mov ecx, port_list_mutex
|
||||||
|
invoke MutexLock
|
||||||
|
|
||||||
|
lea ecx, [esi + SERIAL_PORT.mtx]
|
||||||
|
invoke MutexLock
|
||||||
|
|
||||||
|
mov eax, [esi + SERIAL_PORT.con]
|
||||||
|
test eax, eax
|
||||||
|
jz @f
|
||||||
|
push esi
|
||||||
|
call sp_destroy
|
||||||
|
pop esi
|
||||||
|
@@:
|
||||||
|
|
||||||
|
mov eax, [esi + SERIAL_PORT.fd]
|
||||||
|
mov edx, [esi + SERIAL_PORT.bk]
|
||||||
|
mov [edx + SERIAL_PORT.fd], eax
|
||||||
|
mov [eax + SERIAL_PORT.bk], edx
|
||||||
|
DEBUGF L_DBG, "serial.sys: remove port %x with id %x\n", esi, [esi + SERIAL_PORT.id]
|
||||||
|
mov eax, esi
|
||||||
|
invoke Kfree
|
||||||
|
|
||||||
|
mov ecx, port_list_mutex
|
||||||
|
invoke MutexUnlock
|
||||||
|
|
||||||
|
xor eax, eax
|
||||||
|
ret
|
||||||
|
endp
|
||||||
|
|
||||||
|
align 4
|
||||||
|
; @param eax port
|
||||||
|
; @param edx event
|
||||||
|
; @param ecx count
|
||||||
|
; @param esi buffer
|
||||||
|
; @return eax count
|
||||||
|
proc handle_event uses edi
|
||||||
|
mov edi, eax
|
||||||
|
cmp edx, SERIAL_EVT_RXNE
|
||||||
|
jz .rx
|
||||||
|
cmp edx, SERIAL_EVT_TXE
|
||||||
|
jz .tx
|
||||||
|
xor eax, eax
|
||||||
|
jmp .exit
|
||||||
|
.rx:
|
||||||
|
lea eax, [edi + SERIAL_PORT.rx_buf]
|
||||||
|
stdcall ring_buf_write, eax, esi, ecx
|
||||||
|
jmp .exit
|
||||||
|
.tx:
|
||||||
|
lea eax, [edi + SERIAL_PORT.tx_buf]
|
||||||
|
stdcall ring_buf_read, eax, esi, ecx
|
||||||
|
; fallthrough
|
||||||
|
.exit:
|
||||||
|
ret
|
||||||
|
endp
|
||||||
|
|
||||||
|
align 4
|
||||||
|
proc sp_validate_conf
|
||||||
|
mov eax, [ecx + SP_CONF.size]
|
||||||
|
cmp eax, sizeof.SP_CONF
|
||||||
|
jnz .fail
|
||||||
|
mov eax, [ecx + SP_CONF.baudrate]
|
||||||
|
test eax, eax
|
||||||
|
jz .fail
|
||||||
|
mov al, [ecx + SP_CONF.word_size]
|
||||||
|
cmp al, 8
|
||||||
|
jne .fail ; TODO implement different word size
|
||||||
|
mov al, [ecx + SP_CONF.stop_bits]
|
||||||
|
cmp al, 1
|
||||||
|
jne .fail ; TODO implement different stop bits count
|
||||||
|
mov al, [ecx + SP_CONF.parity]
|
||||||
|
cmp al, SERIAL_CONF_PARITY_NONE
|
||||||
|
jne .fail ; TODO implement parity
|
||||||
|
mov al, [ecx + SP_CONF.flow_ctrl]
|
||||||
|
cmp al, SERIAL_CONF_FLOW_CTRL_NONE
|
||||||
|
jne .fail ; TODO implement flow control
|
||||||
|
.ok:
|
||||||
|
xor eax, eax
|
||||||
|
ret
|
||||||
|
.fail:
|
||||||
|
or eax, -1
|
||||||
|
ret
|
||||||
|
endp
|
||||||
|
|
||||||
|
align 4
|
||||||
|
proc sp_open stdcall uses ebx esi edi, port_id:dword, conf:dword, handle:dword
|
||||||
|
DEBUGF L_DBG, "serial.sys: sp_open %x %x %x\n", [port_id], [conf], [handle]
|
||||||
|
|
||||||
|
mov ecx, [conf]
|
||||||
|
call sp_validate_conf
|
||||||
|
test eax, eax
|
||||||
|
jz @f
|
||||||
|
mov eax, SERIAL_API_ERR_CONF
|
||||||
|
ret
|
||||||
|
@@:
|
||||||
|
mov edi, [conf]
|
||||||
|
|
||||||
|
; get access to the serial ports list
|
||||||
|
mov ecx, port_list_mutex
|
||||||
|
invoke MutexLock
|
||||||
|
|
||||||
|
; find port by id
|
||||||
|
mov eax, [port_id]
|
||||||
|
mov esi, port_list
|
||||||
|
.find_port:
|
||||||
|
mov esi, [esi + SERIAL_PORT.fd]
|
||||||
|
cmp esi, port_list
|
||||||
|
jz .not_found
|
||||||
|
mov ecx, [esi + SERIAL_PORT.id]
|
||||||
|
cmp ecx, eax
|
||||||
|
jz .found
|
||||||
|
jmp .find_port
|
||||||
|
|
||||||
|
.not_found:
|
||||||
|
DEBUGF L_DBG, "serial.sys: port not found\n"
|
||||||
|
mov eax, SERIAL_API_ERR_PORT_INVALID
|
||||||
|
jmp .unlock_list
|
||||||
|
|
||||||
|
.found:
|
||||||
|
DEBUGF L_DBG, "serial.sys: found port %x\n", esi
|
||||||
|
|
||||||
|
; get access to serial port
|
||||||
|
lea ecx, [esi + SERIAL_PORT.mtx]
|
||||||
|
invoke MutexLock
|
||||||
|
|
||||||
|
; availability check
|
||||||
|
cmp [esi + SERIAL_PORT.con], 0
|
||||||
|
jz .open
|
||||||
|
mov eax, SERIAL_API_ERR_PORT_BUSY
|
||||||
|
jmp .unlock_port
|
||||||
|
|
||||||
|
.open:
|
||||||
|
; create rx and tx ring buffers
|
||||||
|
lea ecx, [esi + SERIAL_PORT.rx_buf]
|
||||||
|
mov edx, SERIAL_RING_BUF_SIZE
|
||||||
|
call ring_buf_create
|
||||||
|
test eax, eax
|
||||||
|
jnz @f
|
||||||
|
jmp .unlock_port
|
||||||
|
@@:
|
||||||
|
lea ecx, [esi + SERIAL_PORT.tx_buf]
|
||||||
|
mov edx, SERIAL_RING_BUF_SIZE
|
||||||
|
call ring_buf_create
|
||||||
|
test eax, eax
|
||||||
|
jnz @f
|
||||||
|
jmp .free_rx_buf
|
||||||
|
@@:
|
||||||
|
invoke GetPid
|
||||||
|
mov ebx, eax
|
||||||
|
mov eax, sizeof.SERIAL_OBJ
|
||||||
|
invoke CreateObject
|
||||||
|
test eax, eax
|
||||||
|
jnz @f
|
||||||
|
or eax, -1
|
||||||
|
jmp .free_tx_buf
|
||||||
|
@@:
|
||||||
|
DEBUGF L_DBG, "serial.sys: created object %x\n", eax
|
||||||
|
|
||||||
|
; save port handle
|
||||||
|
mov ecx, [handle]
|
||||||
|
mov [ecx], eax
|
||||||
|
mov [eax + SERIAL_OBJ.magic], 'UART'
|
||||||
|
mov [eax + SERIAL_OBJ.destroy], sp_destroy
|
||||||
|
mov [eax + SERIAL_OBJ.port], esi
|
||||||
|
|
||||||
|
; fill fields
|
||||||
|
mov [esi + SERIAL_PORT.con], eax
|
||||||
|
; copy conf
|
||||||
|
mov eax, [edi + SP_CONF.size]
|
||||||
|
mov [esi + SERIAL_PORT.conf + SP_CONF.size], eax
|
||||||
|
mov eax, [edi + SP_CONF.baudrate]
|
||||||
|
mov [esi + SERIAL_PORT.conf + SP_CONF.baudrate], eax
|
||||||
|
mov eax, dword [edi + SP_CONF.word_size]
|
||||||
|
mov dword [esi + SERIAL_PORT.conf + SP_CONF.word_size], eax
|
||||||
|
|
||||||
|
; tell driver about port open
|
||||||
|
mov ebx, [esi + SERIAL_PORT.drv]
|
||||||
|
mov ecx, [esi + SERIAL_PORT.drv_data]
|
||||||
|
stdcall dword [ebx + SP_DRIVER.startup], ecx, edi
|
||||||
|
test eax, eax
|
||||||
|
jz .unlock_port
|
||||||
|
; on error fallthrough
|
||||||
|
push eax
|
||||||
|
mov eax, [esi + SERIAL_PORT.con]
|
||||||
|
invoke DestroyObject
|
||||||
|
and [esi + SERIAL_PORT.con], 0
|
||||||
|
pop eax
|
||||||
|
|
||||||
|
.free_tx_buf:
|
||||||
|
push eax
|
||||||
|
lea ecx, [esi + SERIAL_PORT.tx_buf]
|
||||||
|
call ring_buf_destroy
|
||||||
|
pop eax
|
||||||
|
|
||||||
|
.free_rx_buf:
|
||||||
|
push eax
|
||||||
|
lea ecx, [esi + SERIAL_PORT.rx_buf]
|
||||||
|
call ring_buf_destroy
|
||||||
|
pop eax
|
||||||
|
|
||||||
|
.unlock_port:
|
||||||
|
push eax
|
||||||
|
lea ecx, [esi + SERIAL_PORT.mtx]
|
||||||
|
invoke MutexUnlock
|
||||||
|
pop eax
|
||||||
|
|
||||||
|
.unlock_list:
|
||||||
|
push eax
|
||||||
|
mov ecx, port_list_mutex
|
||||||
|
invoke MutexUnlock
|
||||||
|
pop eax
|
||||||
|
|
||||||
|
ret
|
||||||
|
endp
|
||||||
|
|
||||||
|
align 4
|
||||||
|
; @param ecx serial port handle
|
||||||
|
proc sp_close uses ebx esi
|
||||||
|
mov eax, ecx
|
||||||
|
cmp [eax + SERIAL_OBJ.magic], 'UART'
|
||||||
|
je .ok
|
||||||
|
or eax, -1
|
||||||
|
ret
|
||||||
|
.ok:
|
||||||
|
mov ebx, [eax + SERIAL_OBJ.port]
|
||||||
|
push eax
|
||||||
|
lea ecx, [ebx + SERIAL_PORT.mtx]
|
||||||
|
invoke MutexLock
|
||||||
|
pop eax
|
||||||
|
|
||||||
|
push ebx
|
||||||
|
call sp_destroy
|
||||||
|
pop ebx
|
||||||
|
|
||||||
|
lea ecx, [ebx + SERIAL_PORT.mtx]
|
||||||
|
invoke MutexUnlock
|
||||||
|
|
||||||
|
xor eax, eax
|
||||||
|
ret
|
||||||
|
endp
|
||||||
|
|
||||||
|
align 4
|
||||||
|
; @param eax port handle
|
||||||
|
; @param esi pointer to SP_CONF
|
||||||
|
; @return eax = 0 on success
|
||||||
|
proc sp_setup
|
||||||
|
test esi, esi
|
||||||
|
jz .fail
|
||||||
|
cmp [eax + SERIAL_OBJ.magic], 'UART'
|
||||||
|
jne .fail
|
||||||
|
mov ebx, eax
|
||||||
|
mov ecx, esi
|
||||||
|
call sp_validate_conf
|
||||||
|
test eax, eax
|
||||||
|
jz @f
|
||||||
|
DEBUGF L_DBG, "serial.sys: invalid conf %x\n", ecx
|
||||||
|
mov eax, SERIAL_API_ERR_CONF
|
||||||
|
ret
|
||||||
|
@@:
|
||||||
|
; lock mutex
|
||||||
|
mov edi, [ebx + SERIAL_OBJ.port]
|
||||||
|
lea ecx, [edi + SERIAL_PORT.mtx]
|
||||||
|
invoke MutexLock
|
||||||
|
; reconfigure port
|
||||||
|
mov eax, [edi + SERIAL_PORT.drv]
|
||||||
|
mov ecx, [edi + SERIAL_PORT.drv_data]
|
||||||
|
stdcall dword [eax + SP_DRIVER.reconf], ecx, esi
|
||||||
|
xor eax, eax
|
||||||
|
push eax
|
||||||
|
test eax, eax
|
||||||
|
jnz @f
|
||||||
|
; copy conf if success
|
||||||
|
mov eax, [esi + SP_CONF.size]
|
||||||
|
mov [edi + SERIAL_PORT.conf + SP_CONF.size], eax
|
||||||
|
mov eax, [esi + SP_CONF.baudrate]
|
||||||
|
mov [edi + SERIAL_PORT.conf + SP_CONF.baudrate], eax
|
||||||
|
mov eax, dword [esi + SP_CONF.word_size]
|
||||||
|
mov dword [edi + SERIAL_PORT.conf + SP_CONF.word_size], eax
|
||||||
|
@@:
|
||||||
|
; unlock mutex
|
||||||
|
lea ecx, [edi + SERIAL_PORT.mtx]
|
||||||
|
invoke MutexUnlock
|
||||||
|
pop eax
|
||||||
|
ret
|
||||||
|
.fail:
|
||||||
|
or eax, -1
|
||||||
|
ret
|
||||||
|
endp
|
||||||
|
|
||||||
|
align 4
|
||||||
|
; @param eax serial obj
|
||||||
|
proc sp_destroy
|
||||||
|
mov esi, [eax + SERIAL_OBJ.port]
|
||||||
|
DEBUGF L_DBG, "serial.sys: destroy port %x\n", esi
|
||||||
|
|
||||||
|
invoke DestroyObject
|
||||||
|
and [esi + SERIAL_PORT.con], 0
|
||||||
|
|
||||||
|
; tell driver about port close
|
||||||
|
mov ebx, [esi + SERIAL_PORT.drv]
|
||||||
|
mov edx, [esi + SERIAL_PORT.drv_data]
|
||||||
|
stdcall dword [ebx + SP_DRIVER.shutdown], edx
|
||||||
|
|
||||||
|
lea ecx, [esi + SERIAL_PORT.tx_buf]
|
||||||
|
call ring_buf_destroy
|
||||||
|
lea ecx, [esi + SERIAL_PORT.rx_buf]
|
||||||
|
call ring_buf_destroy
|
||||||
|
ret
|
||||||
|
endp
|
||||||
|
|
||||||
|
|
||||||
|
align 4
|
||||||
|
; @param eax port handle
|
||||||
|
; @param ecx bytes count
|
||||||
|
; @param edi address of destination buffer
|
||||||
|
; @return eax = 0 on success and ecx = count bytes read
|
||||||
|
proc sp_read
|
||||||
|
test edi, edi
|
||||||
|
jz .fail
|
||||||
|
test ecx, ecx
|
||||||
|
jz .fail
|
||||||
|
cmp [eax + SERIAL_OBJ.magic], 'UART'
|
||||||
|
jne .fail
|
||||||
|
mov esi, [eax + SERIAL_OBJ.port]
|
||||||
|
push ecx ; last arg for ring_buf_read
|
||||||
|
lea ecx, [esi + SERIAL_PORT.mtx]
|
||||||
|
invoke MutexLock
|
||||||
|
lea eax, [esi + SERIAL_PORT.rx_buf]
|
||||||
|
stdcall ring_buf_read, eax, edi
|
||||||
|
push eax
|
||||||
|
lea ecx, [esi + SERIAL_PORT.mtx]
|
||||||
|
invoke MutexUnlock
|
||||||
|
pop ecx
|
||||||
|
xor eax, eax
|
||||||
|
ret
|
||||||
|
.fail:
|
||||||
|
or eax, -1
|
||||||
|
ret
|
||||||
|
endp
|
||||||
|
|
||||||
|
align 4
|
||||||
|
; @param eax port handle
|
||||||
|
; @param ecx bytes count
|
||||||
|
; @param esi address of source buffer
|
||||||
|
; @return eax = 0 on success and ecx = count bytes written
|
||||||
|
proc sp_write
|
||||||
|
test esi, esi
|
||||||
|
jz .fail
|
||||||
|
test ecx, ecx
|
||||||
|
jz .fail
|
||||||
|
cmp [eax + SERIAL_OBJ.magic], 'UART'
|
||||||
|
jne .fail
|
||||||
|
|
||||||
|
push ecx ; last arg for ring_buf_write
|
||||||
|
mov edi, [eax + SERIAL_OBJ.port]
|
||||||
|
lea ecx, [edi + SERIAL_PORT.mtx]
|
||||||
|
invoke MutexLock
|
||||||
|
|
||||||
|
lea ecx, [edi + SERIAL_PORT.tx_buf]
|
||||||
|
stdcall ring_buf_write, ecx, esi
|
||||||
|
push eax
|
||||||
|
test eax, eax
|
||||||
|
jz @f
|
||||||
|
mov ebx, [edi + SERIAL_PORT.drv]
|
||||||
|
mov edx, [edi + SERIAL_PORT.drv_data]
|
||||||
|
stdcall dword [ebx + SP_DRIVER.tx], edx
|
||||||
|
@@:
|
||||||
|
lea ecx, [edi + SERIAL_PORT.mtx]
|
||||||
|
invoke MutexUnlock
|
||||||
|
pop ecx
|
||||||
|
xor eax, eax
|
||||||
|
ret
|
||||||
|
.fail:
|
||||||
|
or eax, -1
|
||||||
|
ret
|
||||||
|
endp
|
||||||
|
|
||||||
|
drv_name db 'SERIAL', 0
|
||||||
|
include_debug_strings
|
||||||
|
|
||||||
|
align 4
|
||||||
|
port_count dd 0
|
||||||
|
port_list_mutex MUTEX
|
||||||
|
port_list:
|
||||||
|
.fd dd port_list
|
||||||
|
.bk dd port_list
|
||||||
|
|
||||||
|
align 4
|
||||||
|
data fixups
|
||||||
|
end data
|
408
drivers/serial/uart16550.inc
Executable file
408
drivers/serial/uart16550.inc
Executable file
@@ -0,0 +1,408 @@
|
|||||||
|
BASE_FREQ = 1843200
|
||||||
|
BASE_DIV = 16
|
||||||
|
|
||||||
|
THR_REG = 0 ; transtitter/reciever
|
||||||
|
IER_REG = 1 ; interrupt enable
|
||||||
|
IIR_REG = 2 ; interrupt info
|
||||||
|
FCR_REG = 2 ; FIFO control
|
||||||
|
LCR_REG = 3 ; line control
|
||||||
|
MCR_REG = 4 ; modem control
|
||||||
|
LSR_REG = 5 ; line status
|
||||||
|
MSR_REG = 6 ; modem status
|
||||||
|
SCR_REG = 7 ; scratch
|
||||||
|
|
||||||
|
DLL_REG = THR_REG ; divisor latch (LSB)
|
||||||
|
DLM_REG = IER_REG ; divisor latch (MSB)
|
||||||
|
|
||||||
|
LCR_5BIT = 0x00
|
||||||
|
LCR_6BIT = 0x01
|
||||||
|
LCR_7BIT = 0x02
|
||||||
|
LCR_8BIT = 0x03
|
||||||
|
LCR_STOP_1 = 0x00
|
||||||
|
LCR_STOP_2 = 0x04
|
||||||
|
LCR_PARITY = 0x08
|
||||||
|
LCR_EVEN = 0x10
|
||||||
|
LCR_STICK = 0x20
|
||||||
|
LCR_BREAK = 0x40
|
||||||
|
LCR_DLAB = 0x80
|
||||||
|
|
||||||
|
LSR_DR = 0x01 ; data ready
|
||||||
|
LSR_OE = 0x02 ; overrun error
|
||||||
|
LSR_PE = 0x04 ; parity error
|
||||||
|
LSR_FE = 0x08 ; framing error
|
||||||
|
LSR_BI = 0x10 ; break interrupt
|
||||||
|
LSR_THRE = 0x20 ; transmitter holding empty
|
||||||
|
LSR_TEMT = 0x40 ; transmitter empty
|
||||||
|
LSR_FER = 0x80 ; FIFO error
|
||||||
|
|
||||||
|
FCR_EFIFO = 0x01 ; enable FIFO
|
||||||
|
FCR_CRB = 0x02 ; clear reciever FIFO
|
||||||
|
FCR_CXMIT = 0x04 ; clear transmitter FIFO
|
||||||
|
FCR_RDY = 0x08 ; set RXRDY and TXRDY pins
|
||||||
|
FCR_FIFO_1 = 0x00 ; 1 byte trigger
|
||||||
|
FCR_FIFO_4 = 0x40 ; 4 bytes trigger
|
||||||
|
FCR_FIFO_8 = 0x80 ; 8 bytes trigger
|
||||||
|
FCR_FIFO_14 = 0xC0 ; 14 bytes trigger
|
||||||
|
|
||||||
|
IIR_INTR = 0x01 ; 1= no interrupts
|
||||||
|
IIR_IID = 0x0E ; interrupt source mask
|
||||||
|
|
||||||
|
IER_RDAI = 0x01 ; reciever data interrupt
|
||||||
|
IER_THRI = 0x02 ; transmitter empty interrupt
|
||||||
|
IER_LSI = 0x04 ; line status interrupt
|
||||||
|
IER_MSI = 0x08 ; modem status interrupt
|
||||||
|
|
||||||
|
MCR_DTR = 0x01 ; 0-> DTR=1, 1-> DTR=0
|
||||||
|
MCR_RTS = 0x02 ; 0-> RTS=1, 1-> RTS=0
|
||||||
|
MCR_OUT1 = 0x04 ; 0-> OUT1=1, 1-> OUT1=0
|
||||||
|
MCR_OUT2 = 0x08 ; 0-> OUT2=1, 1-> OUT2=0; enable intr
|
||||||
|
MCR_LOOP = 0x10 ; lopback mode
|
||||||
|
|
||||||
|
MSR_DCTS = 0x01 ; delta clear to send
|
||||||
|
MSR_DDSR = 0x02 ; delta data set redy
|
||||||
|
MSR_TERI = 0x04 ; trailinh edge of ring
|
||||||
|
MSR_DDCD = 0x08 ; delta carrier detect
|
||||||
|
MSR_CTS = 0x10
|
||||||
|
MSR_DSR = 0x20
|
||||||
|
MSR_RI = 0x40
|
||||||
|
MSR_DCD = 0x80
|
||||||
|
|
||||||
|
MCR_TEST_MASK = MCR_DTR or MCR_RTS or MCR_OUT1 or MCR_OUT2 or MCR_LOOP
|
||||||
|
MSR_CHECK_MASK = MSR_CTS or MSR_DSR or MSR_RI or MSR_DCD
|
||||||
|
|
||||||
|
struct DRV_DATA
|
||||||
|
io_addr dd ? ; base address of io port
|
||||||
|
port dd ? ; serial port descriptor
|
||||||
|
ends
|
||||||
|
|
||||||
|
; dx = base io
|
||||||
|
; al = result
|
||||||
|
macro rd_reg reg
|
||||||
|
{
|
||||||
|
push edx
|
||||||
|
add dx, reg
|
||||||
|
in al, dx
|
||||||
|
pop edx
|
||||||
|
}
|
||||||
|
|
||||||
|
; dx = base io
|
||||||
|
; al = new value
|
||||||
|
macro wr_reg reg
|
||||||
|
{
|
||||||
|
push edx
|
||||||
|
add dx, reg
|
||||||
|
out dx, al
|
||||||
|
pop edx
|
||||||
|
}
|
||||||
|
|
||||||
|
; dx = port
|
||||||
|
; ax = divisor value
|
||||||
|
proc uart_set_baud
|
||||||
|
push eax
|
||||||
|
rd_reg LCR_REG
|
||||||
|
or al, LCR_DLAB
|
||||||
|
wr_reg LCR_REG
|
||||||
|
pop eax
|
||||||
|
wr_reg DLL_REG
|
||||||
|
shr ax, 8
|
||||||
|
wr_reg DLM_REG
|
||||||
|
rd_reg LCR_REG
|
||||||
|
and al, 0x7f
|
||||||
|
wr_reg LCR_REG
|
||||||
|
ret
|
||||||
|
endp
|
||||||
|
|
||||||
|
proc uart_probe stdcall uses ebx esi edi, io_addr:dword, irqn:dword
|
||||||
|
xor ebx, ebx ; 0 = reserve
|
||||||
|
mov ecx, [io_addr]
|
||||||
|
lea edx, [ecx + 7]
|
||||||
|
push ebp
|
||||||
|
invoke ReservePortArea
|
||||||
|
pop ebp
|
||||||
|
test eax, eax
|
||||||
|
jnz .err
|
||||||
|
|
||||||
|
mov edx, [io_addr]
|
||||||
|
|
||||||
|
; enable loopback
|
||||||
|
mov al, MCR_LOOP
|
||||||
|
wr_reg MCR_REG
|
||||||
|
|
||||||
|
; read status
|
||||||
|
rd_reg MSR_REG
|
||||||
|
and al, MSR_CHECK_MASK
|
||||||
|
test al, al
|
||||||
|
jnz .free_port
|
||||||
|
|
||||||
|
; set test signals
|
||||||
|
mov al, MCR_TEST_MASK
|
||||||
|
wr_reg MCR_REG
|
||||||
|
|
||||||
|
; check signals
|
||||||
|
rd_reg MSR_REG
|
||||||
|
and al, MSR_CHECK_MASK
|
||||||
|
cmp al, MSR_CHECK_MASK
|
||||||
|
jnz .free_port
|
||||||
|
|
||||||
|
DEBUGF L_DBG, "uart16550: found serial port %x\n", [io_addr]
|
||||||
|
|
||||||
|
; initialize port
|
||||||
|
xor ax, ax
|
||||||
|
wr_reg MCR_REG
|
||||||
|
wr_reg IER_REG
|
||||||
|
wr_reg LCR_REG
|
||||||
|
wr_reg FCR_REG
|
||||||
|
|
||||||
|
mov eax, sizeof.DRV_DATA
|
||||||
|
invoke Kmalloc
|
||||||
|
test eax, eax
|
||||||
|
jz .free_port
|
||||||
|
mov edi, eax
|
||||||
|
|
||||||
|
mov eax, [io_addr]
|
||||||
|
mov [edi + DRV_DATA.io_addr], eax
|
||||||
|
|
||||||
|
invoke AttachIntHandler, [irqn], uart_int_handler, edi
|
||||||
|
test eax, eax
|
||||||
|
jz .free_desc
|
||||||
|
|
||||||
|
; register port
|
||||||
|
lea ecx, [uart_drv]
|
||||||
|
mov edx, edi
|
||||||
|
call add_port
|
||||||
|
test eax, eax
|
||||||
|
jz .free_desc ; TODO detach_int_handler?
|
||||||
|
|
||||||
|
; save port handle
|
||||||
|
mov [edi + DRV_DATA.port], eax
|
||||||
|
ret
|
||||||
|
|
||||||
|
.free_desc:
|
||||||
|
mov eax, edi
|
||||||
|
invoke Kfree
|
||||||
|
|
||||||
|
.free_port:
|
||||||
|
xor ebx, ebx
|
||||||
|
inc ebx ; 1 = release
|
||||||
|
mov ecx, [io_addr]
|
||||||
|
lea edx, [ecx + 7]
|
||||||
|
push ebp
|
||||||
|
invoke ReservePortArea
|
||||||
|
pop ebp
|
||||||
|
|
||||||
|
.err:
|
||||||
|
ret
|
||||||
|
endp
|
||||||
|
|
||||||
|
proc uart_int_handler c uses ebx esi edi, data:dword
|
||||||
|
locals
|
||||||
|
.buf db ?
|
||||||
|
endl
|
||||||
|
mov edi, [data]
|
||||||
|
mov edx, [edi + DRV_DATA.io_addr]
|
||||||
|
xor ebx, ebx
|
||||||
|
|
||||||
|
.read_iir:
|
||||||
|
rd_reg IIR_REG
|
||||||
|
test al, IIR_INTR
|
||||||
|
jnz .exit
|
||||||
|
|
||||||
|
inc ebx
|
||||||
|
and ax, IIR_IID
|
||||||
|
shr ax, 1
|
||||||
|
|
||||||
|
; check source
|
||||||
|
test ax, ax
|
||||||
|
jz .modem
|
||||||
|
cmp ax, 1
|
||||||
|
jz .xmit
|
||||||
|
cmp ax, 2
|
||||||
|
jz .recv
|
||||||
|
cmp ax, 3
|
||||||
|
jz .status
|
||||||
|
jmp .exit
|
||||||
|
|
||||||
|
.modem:
|
||||||
|
; read MSR for clear interrupt
|
||||||
|
rd_reg MSR_REG
|
||||||
|
jmp .read_iir
|
||||||
|
|
||||||
|
.xmit:
|
||||||
|
push edx
|
||||||
|
mov eax, [edi + DRV_DATA.port]
|
||||||
|
mov edx, SERIAL_EVT_TXE
|
||||||
|
mov ecx, 1
|
||||||
|
lea esi, [.buf]
|
||||||
|
call handle_event
|
||||||
|
pop edx
|
||||||
|
|
||||||
|
test eax, eax
|
||||||
|
jz .no_data
|
||||||
|
|
||||||
|
mov al, [.buf]
|
||||||
|
wr_reg THR_REG
|
||||||
|
jmp .read_iir
|
||||||
|
|
||||||
|
.no_data:
|
||||||
|
; disable THR empty interrupt
|
||||||
|
rd_reg IER_REG
|
||||||
|
and ax, not IER_THRI
|
||||||
|
wr_reg IER_REG
|
||||||
|
jmp .read_iir
|
||||||
|
|
||||||
|
.recv:
|
||||||
|
; read byte
|
||||||
|
rd_reg THR_REG
|
||||||
|
push edx
|
||||||
|
mov [.buf], al
|
||||||
|
mov eax, [edi + DRV_DATA.port]
|
||||||
|
mov edx, SERIAL_EVT_RXNE
|
||||||
|
mov ecx, 1
|
||||||
|
lea esi, [.buf]
|
||||||
|
call handle_event
|
||||||
|
pop edx
|
||||||
|
|
||||||
|
; check for more recevied bytes
|
||||||
|
rd_reg LSR_REG
|
||||||
|
test al, LSR_DR
|
||||||
|
jnz .recv
|
||||||
|
jmp .read_iir
|
||||||
|
|
||||||
|
.status:
|
||||||
|
rd_reg LSR_REG
|
||||||
|
jmp .read_iir
|
||||||
|
|
||||||
|
.fifo:
|
||||||
|
jmp .read_iir
|
||||||
|
|
||||||
|
.exit:
|
||||||
|
xchg eax, ebx
|
||||||
|
ret
|
||||||
|
endp
|
||||||
|
|
||||||
|
proc uart_startup stdcall, data:dword, conf:dword
|
||||||
|
DEBUGF L_DBG, "uart16550: startup %x %x\n", [data], [conf]
|
||||||
|
; enable and reset fifo, 1 byte trigger level
|
||||||
|
mov ecx, [data]
|
||||||
|
mov edx, [ecx + DRV_DATA.io_addr]
|
||||||
|
mov ax, FCR_EFIFO or FCR_CRB or FCR_CXMIT
|
||||||
|
wr_reg FCR_REG
|
||||||
|
; configure at startup
|
||||||
|
stdcall uart_reconf, [data], [conf]
|
||||||
|
ret
|
||||||
|
endp
|
||||||
|
|
||||||
|
proc uart_shutdown stdcall, data:dword
|
||||||
|
DEBUGF L_DBG, "uart16550: shutdown %x\n", [data]
|
||||||
|
; disable interrupts
|
||||||
|
mov ecx, [data]
|
||||||
|
mov edx, [ecx + DRV_DATA.io_addr]
|
||||||
|
xor ax, ax
|
||||||
|
wr_reg IER_REG
|
||||||
|
ret
|
||||||
|
endp
|
||||||
|
|
||||||
|
proc uart_reconf stdcall uses ebx esi, data:dword, conf:dword
|
||||||
|
locals
|
||||||
|
divisor dw ?
|
||||||
|
lcr dw ?
|
||||||
|
endl
|
||||||
|
; calc divisor = BASE_FREQ / BASE_DIV / baudrate
|
||||||
|
mov esi, [conf]
|
||||||
|
xor edx, edx
|
||||||
|
mov eax, BASE_FREQ / BASE_DIV
|
||||||
|
div [esi + SP_CONF.baudrate]
|
||||||
|
test edx, edx
|
||||||
|
jnz .fail
|
||||||
|
test eax, eax
|
||||||
|
jz .fail
|
||||||
|
mov [divisor], ax
|
||||||
|
|
||||||
|
; calc word size
|
||||||
|
xor eax, eax
|
||||||
|
mov al, [esi + SP_CONF.word_size]
|
||||||
|
cmp al, 8
|
||||||
|
ja .fail
|
||||||
|
sub al, 5
|
||||||
|
jb .fail
|
||||||
|
mov [lcr], ax
|
||||||
|
|
||||||
|
; calc parity
|
||||||
|
mov al, [esi + SP_CONF.parity]
|
||||||
|
xor bx, bx
|
||||||
|
cmp al, SERIAL_CONF_PARITY_NONE
|
||||||
|
je .parity_ok
|
||||||
|
or bl, LCR_PARITY
|
||||||
|
cmp al, SERIAL_CONF_PARITY_ODD
|
||||||
|
je .parity_ok
|
||||||
|
or bl, LCR_EVEN
|
||||||
|
cmp al, SERIAL_CONF_PARITY_EVEN
|
||||||
|
je .parity_ok
|
||||||
|
mov bl, LCR_STICK or LCR_PARITY
|
||||||
|
cmp al, SERIAL_CONF_PARITY_MARK
|
||||||
|
je .parity_ok
|
||||||
|
or bl, LCR_EVEN
|
||||||
|
cmp al, SERIAL_CONF_PARITY_SPACE
|
||||||
|
jne .fail
|
||||||
|
.parity_ok:
|
||||||
|
mov [lcr], bx
|
||||||
|
|
||||||
|
; calc stop bits
|
||||||
|
mov bx, LCR_STOP_1
|
||||||
|
mov al, [esi + SP_CONF.stop_bits]
|
||||||
|
cmp al, 1
|
||||||
|
je .stop_bits_ok
|
||||||
|
or bx, LCR_STOP_2
|
||||||
|
cmp al, 2
|
||||||
|
jne .fail
|
||||||
|
.stop_bits_ok:
|
||||||
|
or [lcr], bx
|
||||||
|
|
||||||
|
mov esi, [data]
|
||||||
|
mov edx, [esi + DRV_DATA.io_addr]
|
||||||
|
|
||||||
|
spin_lock_irqsave
|
||||||
|
rd_reg IER_REG
|
||||||
|
and ax, IER_RDAI or IER_LSI
|
||||||
|
wr_reg IER_REG
|
||||||
|
spin_unlock_irqrestore
|
||||||
|
|
||||||
|
mov ax, [divisor]
|
||||||
|
call uart_set_baud
|
||||||
|
|
||||||
|
mov bx, [lcr]
|
||||||
|
wr_reg LCR_REG
|
||||||
|
|
||||||
|
mov al, MCR_DTR or MCR_OUT1 or MCR_OUT2
|
||||||
|
wr_reg MCR_REG
|
||||||
|
|
||||||
|
; enable rx interrupt
|
||||||
|
mov al, IER_RDAI or IER_LSI
|
||||||
|
wr_reg IER_REG
|
||||||
|
|
||||||
|
xor eax, eax
|
||||||
|
ret
|
||||||
|
.fail:
|
||||||
|
mov eax, SERIAL_API_ERR_CONF
|
||||||
|
ret
|
||||||
|
endp
|
||||||
|
|
||||||
|
proc uart_tx stdcall, data:dword
|
||||||
|
mov ecx, [data]
|
||||||
|
mov edx, [ecx + DRV_DATA.io_addr]
|
||||||
|
spin_lock_irqsave
|
||||||
|
rd_reg IER_REG
|
||||||
|
or ax, IER_THRI
|
||||||
|
wr_reg IER_REG
|
||||||
|
spin_unlock_irqrestore
|
||||||
|
ret
|
||||||
|
endp
|
||||||
|
|
||||||
|
align 4
|
||||||
|
uart_drv:
|
||||||
|
dd uart_drv_end - uart_drv
|
||||||
|
dd uart_startup
|
||||||
|
dd uart_shutdown
|
||||||
|
dd uart_reconf
|
||||||
|
dd uart_tx
|
||||||
|
uart_drv_end:
|
@@ -27,6 +27,7 @@ include '../../proc32.inc'
|
|||||||
include '../../peimport.inc'
|
include '../../peimport.inc'
|
||||||
include '../../fdo.inc'
|
include '../../fdo.inc'
|
||||||
include '../../struct.inc'
|
include '../../struct.inc'
|
||||||
|
include '../../serial/common.inc'
|
||||||
|
|
||||||
; USB constants
|
; USB constants
|
||||||
DEVICE_DESCR_TYPE = 1
|
DEVICE_DESCR_TYPE = 1
|
||||||
@@ -60,6 +61,9 @@ LIBUSB_RECIPIENT_OTHER = 0x03
|
|||||||
LIBUSB_ENDPOINT_IN = 0x80
|
LIBUSB_ENDPOINT_IN = 0x80
|
||||||
LIBUSB_ENDPOINT_OUT = 0x00
|
LIBUSB_ENDPOINT_OUT = 0x00
|
||||||
|
|
||||||
|
H_CLK = 120000000
|
||||||
|
C_CLK = 48000000
|
||||||
|
|
||||||
; FTDI Constants
|
; FTDI Constants
|
||||||
FTDI_DEVICE_OUT_REQTYPE = (LIBUSB_REQUEST_TYPE_VENDOR or LIBUSB_RECIPIENT_DEVICE or LIBUSB_ENDPOINT_OUT)
|
FTDI_DEVICE_OUT_REQTYPE = (LIBUSB_REQUEST_TYPE_VENDOR or LIBUSB_RECIPIENT_DEVICE or LIBUSB_ENDPOINT_OUT)
|
||||||
FTDI_DEVICE_IN_REQTYPE = (LIBUSB_REQUEST_TYPE_VENDOR or LIBUSB_RECIPIENT_DEVICE or LIBUSB_ENDPOINT_IN)
|
FTDI_DEVICE_IN_REQTYPE = (LIBUSB_REQUEST_TYPE_VENDOR or LIBUSB_RECIPIENT_DEVICE or LIBUSB_ENDPOINT_IN)
|
||||||
@@ -119,6 +123,7 @@ TYPE_230X=7
|
|||||||
|
|
||||||
;strings
|
;strings
|
||||||
my_driver db 'usbother',0
|
my_driver db 'usbother',0
|
||||||
|
serial_driver db 'SERIAL',0
|
||||||
nomemory_msg db 'K : no memory',13,10,0
|
nomemory_msg db 'K : no memory',13,10,0
|
||||||
|
|
||||||
; Structures
|
; Structures
|
||||||
@@ -130,8 +135,8 @@ readBufChunkSize dd ?
|
|||||||
writeBufChunkSize dd ?
|
writeBufChunkSize dd ?
|
||||||
readBufPtr dd ?
|
readBufPtr dd ?
|
||||||
writeBufPtr dd ?
|
writeBufPtr dd ?
|
||||||
readBufSize dd ?
|
readBufLock dd ?
|
||||||
writeBufSize dd ?
|
writeBufLock dd ?
|
||||||
maxPacketSize dd ?
|
maxPacketSize dd ?
|
||||||
interface dd ?
|
interface dd ?
|
||||||
index dd ?
|
index dd ?
|
||||||
@@ -140,6 +145,8 @@ outEP dd ?
|
|||||||
nullP dd ?
|
nullP dd ?
|
||||||
lockPID dd ?
|
lockPID dd ?
|
||||||
next_context dd ?
|
next_context dd ?
|
||||||
|
port_handle dd ?
|
||||||
|
rx_timer dd ?
|
||||||
ends
|
ends
|
||||||
|
|
||||||
struct IOCTL
|
struct IOCTL
|
||||||
@@ -182,7 +189,9 @@ proc START c, .reason:DWORD, .cmdline:DWORD
|
|||||||
|
|
||||||
xor eax, eax ; initialize return value
|
xor eax, eax ; initialize return value
|
||||||
cmp [.reason], 1 ; compare the argument
|
cmp [.reason], 1 ; compare the argument
|
||||||
jnz .nothing
|
jnz .nothing
|
||||||
|
invoke GetService, serial_driver
|
||||||
|
mov [serial_drv_entry], eax
|
||||||
invoke RegUSBDriver, my_driver, service_proc, usb_functions
|
invoke RegUSBDriver, my_driver, service_proc, usb_functions
|
||||||
|
|
||||||
.nothing:
|
.nothing:
|
||||||
@@ -215,6 +224,10 @@ proc AddDevice stdcall uses ebx esi edi, .config_pipe:DWORD, .config_descr:DWORD
|
|||||||
mov [eax + ftdi_context.maxPacketSize], 64
|
mov [eax + ftdi_context.maxPacketSize], 64
|
||||||
mov [eax + ftdi_context.readBufChunkSize], 64
|
mov [eax + ftdi_context.readBufChunkSize], 64
|
||||||
mov [eax + ftdi_context.writeBufChunkSize], 64
|
mov [eax + ftdi_context.writeBufChunkSize], 64
|
||||||
|
mov [eax + ftdi_context.readBufPtr], 0
|
||||||
|
mov [eax + ftdi_context.writeBufPtr], 0
|
||||||
|
mov [eax + ftdi_context.readBufLock], 0
|
||||||
|
mov [eax + ftdi_context.writeBufLock], 0
|
||||||
|
|
||||||
mov [eax + ftdi_context.chipType], TYPE_R
|
mov [eax + ftdi_context.chipType], TYPE_R
|
||||||
jmp .slow
|
jmp .slow
|
||||||
@@ -270,6 +283,15 @@ proc AddDevice stdcall uses ebx esi edi, .config_pipe:DWORD, .config_descr:DWORD
|
|||||||
test eax, eax
|
test eax, eax
|
||||||
jz .nothing
|
jz .nothing
|
||||||
mov [ebx + ftdi_context.inEP], eax
|
mov [ebx + ftdi_context.inEP], eax
|
||||||
|
|
||||||
|
mov eax, [serial_drv_entry]
|
||||||
|
test eax, eax
|
||||||
|
jz @f
|
||||||
|
stdcall serial_add_port, uart_drv, ebx
|
||||||
|
DEBUGF 1, "usbftdi: add serial port with result %x\n", eax
|
||||||
|
@@:
|
||||||
|
mov [ebx + ftdi_context.port_handle], eax
|
||||||
|
|
||||||
mov eax, ebx
|
mov eax, ebx
|
||||||
ret
|
ret
|
||||||
|
|
||||||
@@ -1013,12 +1035,340 @@ endp
|
|||||||
proc DeviceDisconnected stdcall uses ebx esi edi, .device_data:DWORD
|
proc DeviceDisconnected stdcall uses ebx esi edi, .device_data:DWORD
|
||||||
|
|
||||||
DEBUGF 1, 'K : FTDI deleting device data 0x%x\n', [.device_data]
|
DEBUGF 1, 'K : FTDI deleting device data 0x%x\n', [.device_data]
|
||||||
mov eax, [.device_data]
|
mov esi, [.device_data]
|
||||||
|
mov eax, [esi + ftdi_context.readBufPtr]
|
||||||
|
test eax, eax
|
||||||
|
jz @f
|
||||||
|
invoke Kfree
|
||||||
|
@@:
|
||||||
|
mov eax, [esi + ftdi_context.writeBufPtr]
|
||||||
|
test eax, eax
|
||||||
|
jz @f
|
||||||
|
invoke Kfree
|
||||||
|
@@:
|
||||||
|
mov eax, [esi + ftdi_context.port_handle]
|
||||||
|
test eax, eax
|
||||||
|
jz @f
|
||||||
|
stdcall serial_remove_port, eax
|
||||||
|
@@:
|
||||||
|
mov eax, esi
|
||||||
call linkedlist_unlink
|
call linkedlist_unlink
|
||||||
invoke Kfree
|
invoke Kfree
|
||||||
ret
|
ret
|
||||||
endp
|
endp
|
||||||
|
|
||||||
|
proc bulk_in_complete stdcall uses ebx edi esi, .pipe:DWORD, .status:DWORD, \
|
||||||
|
.buffer:DWORD, .length:DWORD, .calldata:DWORD
|
||||||
|
mov eax, [.status]
|
||||||
|
test eax, eax
|
||||||
|
jz @f
|
||||||
|
DEBUGF 2, 'ftdi: bulk in error %x\n', eax
|
||||||
|
@@:
|
||||||
|
mov ebx, [.calldata]
|
||||||
|
btr dword [ebx + ftdi_context.writeBufLock], 0
|
||||||
|
stdcall uart_tx, ebx
|
||||||
|
ret
|
||||||
|
endp
|
||||||
|
|
||||||
|
proc bulk_out_complete stdcall uses ebx edi esi, .pipe:DWORD, .status:DWORD, \
|
||||||
|
.buffer:DWORD, .length:DWORD, .calldata:DWORD
|
||||||
|
mov eax, [.status]
|
||||||
|
test eax, eax
|
||||||
|
jz @f
|
||||||
|
DEBUGF 2, 'ftdi: bulk out error %x\n', eax
|
||||||
|
@@:
|
||||||
|
mov ebx, [.calldata]
|
||||||
|
mov ecx, [.length]
|
||||||
|
cmp ecx, 2
|
||||||
|
jb @f
|
||||||
|
mov esi, [.buffer]
|
||||||
|
add esi, 2
|
||||||
|
sub ecx, 2
|
||||||
|
stdcall serial_handle_event, [ebx + ftdi_context.port_handle], \
|
||||||
|
SERIAL_EVT_RXNE, ecx, esi
|
||||||
|
@@:
|
||||||
|
btr dword [ebx + ftdi_context.readBufLock], 0
|
||||||
|
ret
|
||||||
|
endp
|
||||||
|
|
||||||
|
proc uart_startup stdcall uses ebx, data:dword, conf:dword
|
||||||
|
DEBUGF 1, "ftdi: startup %x %x\n", [data], [conf]
|
||||||
|
stdcall uart_reconf, [data], [conf]
|
||||||
|
test eax, eax
|
||||||
|
jz @f
|
||||||
|
DEBUGF 2, "ftdi: uart reconf error %x\n", eax
|
||||||
|
jmp .exit
|
||||||
|
@@:
|
||||||
|
mov ebx, [data]
|
||||||
|
invoke TimerHS, 2, 2, uart_rx, ebx
|
||||||
|
test eax, eax
|
||||||
|
jnz @f
|
||||||
|
DEBUGF 2, "ftdi: timer creation error\n"
|
||||||
|
or eax, -1
|
||||||
|
jmp .exit
|
||||||
|
@@:
|
||||||
|
mov [ebx + ftdi_context.rx_timer], eax
|
||||||
|
xor eax, eax
|
||||||
|
.exit:
|
||||||
|
ret
|
||||||
|
endp
|
||||||
|
|
||||||
|
proc uart_shutdown stdcall uses ebx, data:dword
|
||||||
|
DEBUGF 1, "ftdi: shutdown %x\n", [data]
|
||||||
|
mov ebx, [data]
|
||||||
|
cmp [ebx + ftdi_context.rx_timer], 0
|
||||||
|
jz @f
|
||||||
|
invoke CancelTimerHS, [ebx + ftdi_context.rx_timer]
|
||||||
|
@@:
|
||||||
|
ret
|
||||||
|
endp
|
||||||
|
|
||||||
|
proc uart_reconf stdcall uses ebx esi, dev:dword, conf:dword
|
||||||
|
mov ebx, [dev]
|
||||||
|
mov esi, [conf]
|
||||||
|
stdcall ftdi_set_baudrate, ebx, [esi + SP_CONF.baudrate]
|
||||||
|
; TODO set word_size, parity, etc.
|
||||||
|
ret
|
||||||
|
endp
|
||||||
|
|
||||||
|
proc uart_tx stdcall uses ebx esi, data:dword
|
||||||
|
xor eax, eax
|
||||||
|
mov ebx, [data]
|
||||||
|
bts dword [ebx + ftdi_context.writeBufLock], 0
|
||||||
|
jc .exit
|
||||||
|
|
||||||
|
mov esi, [ebx + ftdi_context.writeBufPtr]
|
||||||
|
test esi, esi
|
||||||
|
jnz .read
|
||||||
|
|
||||||
|
; allocate buffer for bulk_in transfer if not yet
|
||||||
|
mov eax, [ebx + ftdi_context.writeBufChunkSize]
|
||||||
|
invoke Kmalloc
|
||||||
|
test eax, eax
|
||||||
|
jz .error
|
||||||
|
mov [ebx + ftdi_context.writeBufPtr], eax
|
||||||
|
mov esi, eax
|
||||||
|
|
||||||
|
.read:
|
||||||
|
mov eax, [ebx + ftdi_context.writeBufChunkSize]
|
||||||
|
stdcall serial_handle_event, [ebx + ftdi_context.port_handle], \
|
||||||
|
SERIAL_EVT_TXE, eax, esi
|
||||||
|
test eax, eax
|
||||||
|
jz .unlock
|
||||||
|
invoke USBNormalTransferAsync, [ebx + ftdi_context.inEP], esi, eax, \
|
||||||
|
bulk_in_complete, ebx, 1
|
||||||
|
test eax, eax
|
||||||
|
jz .error
|
||||||
|
xor eax, eax
|
||||||
|
jmp .exit
|
||||||
|
|
||||||
|
.error:
|
||||||
|
or eax, -1
|
||||||
|
.unlock:
|
||||||
|
btr dword [ebx + ftdi_context.writeBufLock], 0
|
||||||
|
|
||||||
|
.exit:
|
||||||
|
ret
|
||||||
|
endp
|
||||||
|
|
||||||
|
proc uart_rx stdcall uses ebx esi, data:dword
|
||||||
|
xor eax, eax
|
||||||
|
mov ebx, [data]
|
||||||
|
bts dword [ebx + ftdi_context.readBufLock], 0
|
||||||
|
jc .exit
|
||||||
|
|
||||||
|
mov esi, [ebx + ftdi_context.readBufPtr]
|
||||||
|
test esi, esi
|
||||||
|
jnz .read
|
||||||
|
|
||||||
|
; allocate buffer for bulk_out transfer if not yet
|
||||||
|
mov eax, [ebx + ftdi_context.readBufChunkSize]
|
||||||
|
invoke Kmalloc
|
||||||
|
test eax, eax
|
||||||
|
jz .error
|
||||||
|
mov [ebx + ftdi_context.readBufPtr], eax
|
||||||
|
mov esi, eax
|
||||||
|
|
||||||
|
.read:
|
||||||
|
mov edx, [ebx + ftdi_context.readBufChunkSize]
|
||||||
|
invoke USBNormalTransferAsync, [ebx + ftdi_context.outEP], esi, edx, \
|
||||||
|
bulk_out_complete, ebx, 1
|
||||||
|
test eax, eax
|
||||||
|
jz .error
|
||||||
|
xor eax, eax
|
||||||
|
jmp .exit
|
||||||
|
.error:
|
||||||
|
btr dword [ebx + ftdi_context.readBufLock], 0
|
||||||
|
or eax, -1
|
||||||
|
.exit:
|
||||||
|
ret
|
||||||
|
endp
|
||||||
|
|
||||||
|
proc ftdi_set_baudrate stdcall uses ebx esi edi, dev:dword, baud:dword
|
||||||
|
locals
|
||||||
|
ConfPacket rb 10
|
||||||
|
EventData rd 3
|
||||||
|
endl
|
||||||
|
xor esi, esi
|
||||||
|
xor ecx, ecx
|
||||||
|
invoke CreateEvent
|
||||||
|
mov [EventData], eax
|
||||||
|
mov [EventData + 4], edx
|
||||||
|
|
||||||
|
mov ebx, [dev]
|
||||||
|
cmp [ebx + ftdi_context.chipType], TYPE_2232H
|
||||||
|
jl .c_clk
|
||||||
|
imul eax, [baud], 10
|
||||||
|
cmp eax, H_CLK / 0x3FFF
|
||||||
|
jle .c_clk
|
||||||
|
.h_clk:
|
||||||
|
cmp dword [baud], H_CLK / 10
|
||||||
|
jl .h_nextbaud1
|
||||||
|
xor edx, edx
|
||||||
|
mov ecx, H_CLK / 10
|
||||||
|
jmp .calcend
|
||||||
|
|
||||||
|
.c_clk:
|
||||||
|
cmp dword [baud], C_CLK / 16
|
||||||
|
jl .c_nextbaud1
|
||||||
|
xor edx, edx
|
||||||
|
mov ecx, C_CLK / 16
|
||||||
|
jmp .calcend
|
||||||
|
|
||||||
|
.h_nextbaud1:
|
||||||
|
cmp dword [baud], H_CLK / (10 + 10 / 2)
|
||||||
|
jl .h_nextbaud2
|
||||||
|
mov edx, 1
|
||||||
|
mov ecx, H_CLK / (10 + 10 / 2)
|
||||||
|
jmp .calcend
|
||||||
|
|
||||||
|
.c_nextbaud1:
|
||||||
|
cmp dword [baud], C_CLK / (16 + 16 / 2)
|
||||||
|
jl .c_nextbaud2
|
||||||
|
mov edx, 1
|
||||||
|
mov ecx, C_CLK/(16 + 16 / 2)
|
||||||
|
jmp .calcend
|
||||||
|
|
||||||
|
.h_nextbaud2:
|
||||||
|
cmp dword [baud], H_CLK / (2 * 10)
|
||||||
|
jl .h_nextbaud3
|
||||||
|
mov edx, 2
|
||||||
|
mov ecx, H_CLK / (2 * 10)
|
||||||
|
jmp .calcend
|
||||||
|
|
||||||
|
.c_nextbaud2:
|
||||||
|
cmp dword [edi + 8], C_CLK / (2 * 16)
|
||||||
|
jl .c_nextbaud3
|
||||||
|
mov edx, 2
|
||||||
|
mov ecx, C_CLK / (2 * 16)
|
||||||
|
jmp .calcend
|
||||||
|
|
||||||
|
.h_nextbaud3:
|
||||||
|
mov eax, H_CLK * 16 / 10 ; eax - best_divisor
|
||||||
|
xor edx, edx
|
||||||
|
div dword [baud]
|
||||||
|
push eax
|
||||||
|
and eax, 1
|
||||||
|
pop eax
|
||||||
|
shr eax, 1
|
||||||
|
jz .h_rounddowndiv ; jump by result of and eax, 1
|
||||||
|
inc eax
|
||||||
|
.h_rounddowndiv:
|
||||||
|
cmp eax, 0x20000
|
||||||
|
jle .h_best_divok
|
||||||
|
mov eax, 0x1FFFF
|
||||||
|
.h_best_divok:
|
||||||
|
mov ecx, eax
|
||||||
|
mov eax, H_CLK * 16 / 10
|
||||||
|
xor edx, edx
|
||||||
|
div ecx
|
||||||
|
xchg ecx, eax ; ecx - best_baud
|
||||||
|
push ecx
|
||||||
|
and ecx, 1
|
||||||
|
pop ecx
|
||||||
|
shr ecx, 1
|
||||||
|
jz .rounddownbaud
|
||||||
|
inc ecx
|
||||||
|
jmp .rounddownbaud
|
||||||
|
|
||||||
|
.c_nextbaud3:
|
||||||
|
mov eax, C_CLK ; eax - best_divisor
|
||||||
|
xor edx, edx
|
||||||
|
div dword [baud]
|
||||||
|
push eax
|
||||||
|
and eax, 1
|
||||||
|
pop eax
|
||||||
|
shr eax, 1
|
||||||
|
jnz .c_rounddowndiv ; jump by result of and eax, 1
|
||||||
|
inc eax
|
||||||
|
.c_rounddowndiv:
|
||||||
|
cmp eax, 0x20000
|
||||||
|
jle .c_best_divok
|
||||||
|
mov eax, 0x1FFFF
|
||||||
|
.c_best_divok:
|
||||||
|
mov ecx, eax
|
||||||
|
mov eax, C_CLK
|
||||||
|
xor edx, edx
|
||||||
|
div ecx
|
||||||
|
xchg ecx, eax ; ecx - best_baud
|
||||||
|
push ecx
|
||||||
|
and ecx, 1
|
||||||
|
pop ecx
|
||||||
|
shr ecx, 1
|
||||||
|
jnz .rounddownbaud
|
||||||
|
inc ecx
|
||||||
|
|
||||||
|
.rounddownbaud:
|
||||||
|
mov edx, eax ; edx - encoded_divisor
|
||||||
|
shr edx, 3
|
||||||
|
and eax, 0x7
|
||||||
|
push 7 6 5 1 4 2 3 0
|
||||||
|
mov eax, [esp + eax * 4]
|
||||||
|
shl eax, 14
|
||||||
|
or edx, eax
|
||||||
|
add esp, 32
|
||||||
|
|
||||||
|
.calcend:
|
||||||
|
mov eax, edx ; eax - *value
|
||||||
|
mov ecx, edx ; ecx - *index
|
||||||
|
and eax, 0xFFFF
|
||||||
|
cmp [ebx + ftdi_context.chipType], TYPE_2232H
|
||||||
|
jge .foxyindex
|
||||||
|
shr ecx, 16
|
||||||
|
jmp .preparepacket
|
||||||
|
.foxyindex:
|
||||||
|
shr ecx, 8
|
||||||
|
and ecx, 0xFF00
|
||||||
|
or ecx, [ebx + ftdi_context.index]
|
||||||
|
|
||||||
|
.preparepacket:
|
||||||
|
mov word [ConfPacket], (FTDI_DEVICE_OUT_REQTYPE) \
|
||||||
|
+ (SIO_SET_BAUDRATE_REQUEST shl 8)
|
||||||
|
mov word [ConfPacket + 2], ax
|
||||||
|
mov word [ConfPacket + 4], cx
|
||||||
|
mov word [ConfPacket + 6], 0
|
||||||
|
|
||||||
|
lea esi, [ConfPacket]
|
||||||
|
lea edi, [EventData]
|
||||||
|
invoke USBControlTransferAsync, [ebx + ftdi_context.nullP], esi, 0,\
|
||||||
|
0, control_callback, edi, 0
|
||||||
|
test eax, eax
|
||||||
|
jz .error
|
||||||
|
mov eax, [EventData]
|
||||||
|
mov ebx, [EventData + 4]
|
||||||
|
invoke WaitEvent
|
||||||
|
|
||||||
|
mov eax, [EventData]
|
||||||
|
mov ebx, [EventData + 4]
|
||||||
|
invoke DestroyEvent
|
||||||
|
xor eax, eax
|
||||||
|
ret
|
||||||
|
|
||||||
|
.error:
|
||||||
|
or eax, -1
|
||||||
|
ret
|
||||||
|
endp
|
||||||
|
|
||||||
include 'linkedlist.inc'
|
include 'linkedlist.inc'
|
||||||
|
|
||||||
align 4
|
align 4
|
||||||
@@ -1029,6 +1379,17 @@ usb_functions:
|
|||||||
dd AddDevice
|
dd AddDevice
|
||||||
dd DeviceDisconnected
|
dd DeviceDisconnected
|
||||||
|
|
||||||
|
align 4
|
||||||
|
uart_drv:
|
||||||
|
dd uart_drv_end - uart_drv
|
||||||
|
dd uart_startup
|
||||||
|
dd uart_shutdown
|
||||||
|
dd uart_reconf
|
||||||
|
dd uart_tx
|
||||||
|
uart_drv_end:
|
||||||
|
|
||||||
|
serial_drv_entry dd 0
|
||||||
|
|
||||||
data fixups
|
data fixups
|
||||||
end data
|
end data
|
||||||
|
|
||||||
|
@@ -170,9 +170,10 @@ read_sectors:
|
|||||||
do_read_sectors:
|
do_read_sectors:
|
||||||
push ax
|
push ax
|
||||||
push cx
|
push cx
|
||||||
cmp cx, 0x7F
|
; read no more than 64kB at once, i.e. 0x20 sectors
|
||||||
|
cmp cx, 0x20
|
||||||
jbe @f
|
jbe @f
|
||||||
mov cx, 0x7F
|
mov cx, 0x20
|
||||||
@@:
|
@@:
|
||||||
; create disk address packet on the stack
|
; create disk address packet on the stack
|
||||||
; dq starting LBA
|
; dq starting LBA
|
||||||
@@ -182,7 +183,7 @@ do_read_sectors:
|
|||||||
; dd buffer
|
; dd buffer
|
||||||
push es
|
push es
|
||||||
push bx
|
push bx
|
||||||
; dw number of blocks to transfer (no more than 0x7F)
|
; dw number of blocks to transfer (no more than 0x20)
|
||||||
push cx
|
push cx
|
||||||
; dw packet size in bytes
|
; dw packet size in bytes
|
||||||
push 10h
|
push 10h
|
||||||
|
@@ -156,10 +156,12 @@
|
|||||||
es:bx указывает на конец буфера, в который были прочитаны данные
|
es:bx указывает на конец буфера, в который были прочитаны данные
|
||||||
если произошла ошибка чтения, флаг CF установлен
|
если произошла ошибка чтения, флаг CF установлен
|
||||||
1. В цикле (шаги 2-4) читает секторы, следит за тем, чтобы на каждой итерации
|
1. В цикле (шаги 2-4) читает секторы, следит за тем, чтобы на каждой итерации
|
||||||
число читаемых секторов не превосходило 7Fh (требование спецификации
|
число читаемых секторов не превосходило 20h. Требование спецификации
|
||||||
EDD BIOS).
|
EDD BIOS не более 7Fh секторов за раз, что почти 64кБ для 512-байтного
|
||||||
2. Если число секторов для чтения больше 7Fh, уменьшает его (для текущей
|
сектора. Однако при размере сектора 2048 байт размер буфера в 64кБ
|
||||||
итерации) до 7Fh.
|
достигается уже при 20h секторах.
|
||||||
|
2. Если число секторов для чтения больше 20h, уменьшает его (для текущей
|
||||||
|
итерации) до 20h.
|
||||||
3. Формирует в стеке пакет для int 13h (кладёт все нужные данные командами
|
3. Формирует в стеке пакет для int 13h (кладёт все нужные данные командами
|
||||||
push, причём в обратном порядке: стек - структура LIFO, и данные в
|
push, причём в обратном порядке: стек - структура LIFO, и данные в
|
||||||
стеке хранятся в обратном порядке по отношению к тому, как их туда
|
стеке хранятся в обратном порядке по отношению к тому, как их туда
|
||||||
|
@@ -596,29 +596,29 @@ CONTROL_EXCEPTION = 'EXPT'
|
|||||||
|
|
||||||
; Window structure:
|
; Window structure:
|
||||||
struct WDATA
|
struct WDATA
|
||||||
box BOX
|
box BOX ; +0
|
||||||
cl_workarea dd ?
|
cl_workarea dd ? ; +16
|
||||||
cl_titlebar dd ?
|
cl_titlebar dd ? ; +20
|
||||||
cl_frames dd ?
|
cl_frames dd ? ; +24
|
||||||
z_modif db ?
|
z_modif db ? ; +28
|
||||||
fl_wstate db ?
|
fl_wstate db ? ; +29
|
||||||
fl_wdrawn db ?
|
fl_wdrawn db ? ; +30
|
||||||
fl_redraw db ?
|
fl_redraw db ? ; +31
|
||||||
clientbox BOX
|
clientbox BOX ; +32
|
||||||
shape dd ?
|
shape dd ? ; +48
|
||||||
shape_scale dd ?
|
shape_scale dd ? ; +52
|
||||||
caption dd ?
|
caption dd ? ; +56
|
||||||
captionEncoding db ?
|
captionEncoding db ? ; +60
|
||||||
rb 3
|
rb 3 ; +61
|
||||||
saved_box BOX
|
saved_box BOX ; +64
|
||||||
cursor dd ?
|
cursor dd ? ; +80
|
||||||
temp_cursor dd ? ;?
|
temp_cursor dd ? ; +84 ?
|
||||||
draw_bgr_x dd ?
|
draw_bgr_x dd ? ; +88
|
||||||
draw_bgr_y dd ?
|
draw_bgr_y dd ? ; +92
|
||||||
draw_data RECT
|
draw_data RECT ; +96
|
||||||
thread dd ? ; ptr APPDATA
|
thread dd ? ; +112 ptr APPDATA
|
||||||
buttons rd 1 ; ptr array buttons
|
buttons rd 1 ; +116 ptr array buttons
|
||||||
rb 12 - 4
|
rb 12 - 4 ; +120
|
||||||
ends
|
ends
|
||||||
|
|
||||||
label WDATA.fl_wstyle byte at WDATA.cl_workarea + 3
|
label WDATA.fl_wstyle byte at WDATA.cl_workarea + 3
|
||||||
|
@@ -81,7 +81,7 @@ __exports:
|
|||||||
pci_write32, 'PciWrite32', \ ; stdcall
|
pci_write32, 'PciWrite32', \ ; stdcall
|
||||||
\
|
\
|
||||||
get_pid, 'GetPid', \
|
get_pid, 'GetPid', \
|
||||||
get_service, 'GetService', \ ;
|
get_service, 'GetService', \ ; stdcall
|
||||||
reg_service, 'RegService', \ ; stdcall
|
reg_service, 'RegService', \ ; stdcall
|
||||||
attach_int_handler, 'AttachIntHandler', \ ; stdcall
|
attach_int_handler, 'AttachIntHandler', \ ; stdcall
|
||||||
user_alloc, 'UserAlloc', \ ; stdcall
|
user_alloc, 'UserAlloc', \ ; stdcall
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user