Subversion Repositories HelenOS-doc

Compare Revisions

Ignore whitespace Rev 153 → Rev 154

/usrman/trunk/running/running.tex
11,6 → 11,13
for applications, console 12 is reserved for kernel console. Pressing
function keys F1-F12 switches between the consoles.
 
If the architecture supports framebuffer device larger with
resolution at least 800x600, nice graphical console is shown. At the top
of the screen a row of buttons for the virtual console is drawn. If
the button contains console number, an application is connected to it.
The red button signifies that there was an activity on the terminal
since it was last shown to the user.
 
\section{KConsole}
KConsole is a kernel thread operating completely in priviledged mode.
It allows user to interact directly with the kernel and even start directly
70,6 → 77,27
The mips, ia32 and amd64 platforms provide additional commands regarding
debugging facility - set and clear hardware breakpoints and watchpoints.
 
\section{KConsole Task Control}
KConsole {\em call} commands can be used to start and kill the tasks.
To repeatably start the task, the following procedure should be used:
\begin{verbatim}
.... kernel boot data ....
init[8].addr=0x8027b000, init[8].size=86016
.... rest of boot data ...
kconsole> call2 task_run_program 0x8027b000 0
Calling f(0x8027b000,0): 0x80119283: generic/src/proc/task.o:task_run_program
Result: 0x80086500
\end{verbatim}
 
To kill a task, the function {\em task\_kill} is appropriate. The {\em taskid}
parameter is a 64-bit number on all platforms, thus on the 32-bit platforms
call2 should be used with 2 32-bit parameters instead.
\begin{verbatim}
kconsole> call2 task_kill 8 0
Calling f(0x8,0x0): 0x801197e8: generic/src/proc/task.o:task_kill
Result: 0x0
\end{verbatim}
 
\section{Emergency Functions}
It may happen that the IPC communication dies or that there appear some
problems in the communication chain
113,7 → 141,8
KLog application. User can see messages about task faults
and task cleanup completion.
 
\section{IPCC - testing applicatoin}
To test thouroughly some aspects of the IPC and task
\section{IPCC - testing application}
To test thouroughly some aspects of the task activities, IPCC application
allows user to generate page faults
 
\section{Tetris}