Questions tagged [xinu]
14 questions
6
votes
1 answer
Port Cbor library to Beaglebone running Xinu
I have a beagle bone black running xinu and a development environment set up in a VM running on virtual box. Up till now I have been able to write Hello world shell command in Xinu. So i have a basic idea about xinu and the beagle bone. I want to…

danny
- 400
- 2
- 18
3
votes
1 answer
how to call function pointer in a struct?
I am working with the xinu embedded operating system in c. I created a new header file and declared a struct:
struct callout {
uint32 time; /* Time of delay in ms */
void *funcaddr; /* Function pointer */
void *argp; /*…

simhuang
- 495
- 3
- 8
- 20
3
votes
1 answer
Xinu boot in VM
I want to learn something about OS and networking with Xinu. I downloaded the source code from the xinu-os repo on github (up to 4d489eead3a49170f69041b959bd5a1bd8dff92d) and compiled xinu.boot and xinu.elf myself. To really get down to it, I wanted…

abel
- 519
- 1
- 5
- 15
2
votes
1 answer
C call back function from assembly (x86) and process switching
This code is for my undergraduate OS course. I am trying to call a function on the same stack of new_sp and then return to whatever new_sp was doing. It is not working and I'm not even sure how to debug it. Suggestions or a solution would be great.…

JacksonReed
- 108
- 1
- 7
1
vote
2 answers
How to print long double number in xinu?
Function sqrtl doesn't work here, also the printf of long double prints f for all given numbers:
#include
#include
#include
#include
long double sqrtn;
unsigned long int n;
void xmain() {
unsigned…

reham.abass
- 15
- 5
1
vote
1 answer
Xinu - Setting new priority for a Suspended state process
I have created a process X in Xinu along with other two processes (y, z). The y and z are high priority than X, so they both are running as per scheduling policy.
In the backend, I want to increment the priority of X by one, based on a condition.…

NaniK
- 111
- 3
- 13
1
vote
1 answer
XINU OS - Understanding roundmb function
I am studying XINU OS, and came across this simple one-line function. Is it possible to explain how this function is working and rounding x to nearest block size for memory allocation? Please don't mind if the query is too simple.
I am also confused…

user2849789
- 59
- 6
1
vote
0 answers
XINU - How can I take control over an interrupt vector
Well, I've met this question a lot in OS, we've implemented this by diff. ways (Inline Assembly with setvect, getvect, etc..)
At XINU it's a little bit different and I'm trying to figure this out.
What I found so far, which may be correct but I want…

Ilan Aizelman WS
- 1,630
- 2
- 21
- 44
1
vote
2 answers
revectoring interrupt 128 0x80 in xinu
i need your help, i want to change the way xinu (os) works so it will take over interrupt 128 and controll the SYS_CALL, for example, instead of calling to send(pid, msg) i will call to sys_call(SEND, pid, msg);.
in initiali.c i've added…

shimon
- 86
- 7
1
vote
1 answer
Modify clock interrupt handler xinu
I have an operating systems project due tonight, and needed clarification on a topic. We are working with the operating system XINU. I am trying to change the default OS scheduler to account for some processes being starved. I was directed towards…

kamran619
- 531
- 10
- 32
0
votes
1 answer
Is it possible to port the XINU version for Intel Pentium Architecture onto Atmel AVR STK500?
I am trying to work on Xinu and I wanted to know whether it would be possible for me to port the XINU written for Intel Pentium Architecture onto an Atmel AVR STK500 Development Board. It need not be that development board only. It can be any other…

N.B
- 29
- 1
- 1
- 3
0
votes
0 answers
XINU OS - How can I count number of interrupts handlers that occured?
In DOSBOX XINU operating system; I want to count number of interrupts handlers that occurred in x time.
Is there a global variable to be referenced to?
I think in the header IO.H,
extern int nmaps; /* number of active intmap entries */
since…

Mostfa Mostfa
- 1
- 1
0
votes
1 answer
Process starvation test case on XINU
I am trying to produce a test case for demonstrating starvation by xinu's default scheduling policy.: if 2 processes are ready for execution, the one with higher priority keeps running and if processes have equal priority than round robin algo.
The…

darkfall94
- 3
- 3
0
votes
0 answers
Unable to compile XINU source code after adding a new function in assembly language
I have added a file function.S in sys folder in XINU.
.text
.globl zfunction
zfunction:
equivalent C code for this function is
long zfunction(long param)
{
long mask = 0xfff803dd ;
param &= mask ;
param = (param << 4) &…

sank
- 103
- 1
- 15