Programar en C el LAPIC TIMER

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Locked
User avatar
billgates
Posts: 3
Joined: Wed Sep 01, 2010 9:30 pm

Programar en C el LAPIC TIMER

Post by billgates »

Hola,
Primero: Quisiera saber como hago para enviarle un mensaje a otro usuario;revizando vi que hay algo parecido a lo que quiero:http://forum.osdev.org/viewtopic.php?f=1&t=21811 y la verdad quisiera estudiar la version en lenguaje C que realizo para solucionar su problema (no en asm), el user es lemonyii.

Mi estado:
-Lei documentacion de Intel y AMD (se que registros debo tocar )y Linux 2.6.0.
Tengo una imagen de ubuntu 9 con kernel 2.6.31 la corri sobre virtualBOX, pero verificando los origenes de tiempo no se encuentra el LAPIC..!!! lo emulara VirtualBOx?o cual utilizan?

-Objetivo: Programar los Timer del LAPIc y del HPET;lo que me marea es eso de que el timer LAPIC solo puede programarse en monoprocesador y no en SMP..!!!!!porque?
En caso de programar en Monoprocesador que cosas necesito???trate de crear un modulo para setear el timer LAPIC e imprimir un mensaje con cada interrupcion; pero el timer LAPIC no se usa para el scheduling???

NOTAR: que yo estoy analizando la version Linux 2.6.0 ,luego voy por la 2.6.35.

Un millon de saludos,

traduccion mas o menos:

Hello,
First, I would like to know how to send a message to another user; revizando saw that there is something like what I want and I really want http://forum.osdev.org/viewtopic.php?f=1&t=21811 study C language version that I do to solve your problem (not in asm), the user is lemonyii [/ b].

My status:
-Lei Intel and AMD documentation (I know I play records) and Linux 2.6. 0 [/ b].
I have an image of ubuntu kernel 9 with the ran on 06/02/1931 VirtualBox, but verifying the origins of time is not the apic ..!!! VirtualBox emulate what? or that you use?

-Objective: Set the timer of the HPET and apic, what's that tide me that the only apic timer can be programmed in both uniprocessor and SMP ..!!!!! not it?
If Uniprocessor program in which things need?? Try to create a module for setting the timer lapic and print a message with each interruption, but the timer lapic are not used for scheduling??

NOTE: I am looking at the Linux version 2.6.0, then I go through 6/2/1935.

One million of greetings, [-o<
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: Programar en C el LAPIC TIMER

Post by Combuster »

Hi and welcome to the forums,

You seem to have a few problems, this is an english forum, the date is 2010 and in 1935 linux did not exist. And in general, this forum is not meant for discussing the linux kernel or drivers, but rather new operating systems.

If you still think your question belongs here, at least post the following in detail:
1) what you already have working
2) what you plan on doing (and you should only do one thing at a time)
3) how you attempted to implement that
4) how you failed at doing so
So we may provide a much better answer.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
eddyb
Member
Member
Posts: 248
Joined: Fri Aug 01, 2008 7:52 am

Re: Programar en C el LAPIC TIMER

Post by eddyb »

May I point out something rather obvious?
He used a translator (look at the [/ b] thing) and 6/2/1935 is the translation for 2.6.35 (at least the translator thinks so).
As someone said, "What seems logical is not necessary right" :).
User avatar
xenos
Member
Member
Posts: 1121
Joined: Thu Aug 11, 2005 11:00 pm
Libera.chat IRC: xenos1984
Location: Tartu, Estonia
Contact:

Re: Programar en C el LAPIC TIMER

Post by xenos »

As far as I can understand, the OP would like to know how to program the HPET and APIC timers in SMP and UP systems. He is using Linux kernels 2.6.0 and 2.6.35 as a reference.
Programmers' Hardware Database // GitHub user: xenos1984; OS project: NOS
User avatar
inx
Member
Member
Posts: 142
Joined: Wed Mar 05, 2008 12:52 am

Re: Programar en C el LAPIC TIMER

Post by inx »

@billgates: Lo siento, pero la lengua oficial de este lugar es ingles. No se si hay otros lugares del tipo mismo en espanol, pero nadie o casi nadie aqui habla espanol, y hay una regla aqui que hablamos solamente ingles en publico. Los transductores electronicos no van a ser bastante, desgraciadamente.

For the sake of politeness: "Sorry, but the official language of this place is English. I don't know if there are other places of the same type in Spanish, but nobody or almost nobody here speaks Spanish, and there's a rule here that we speak only English in public. Electronic translators are not going to be enough, unfortunately."
User avatar
billgates
Posts: 3
Joined: Wed Sep 01, 2010 9:30 pm

Re: Programar en C el LAPIC TIMER

Post by billgates »

Not for language differentiation ....! :twisted:
I kill your answers.
Well, xenos hit the target.
Not happened I think the translation was good, entertaining beyond the server saved the message format problem .......! genius of the page.
Octopus paul Give me strength ... [-o<

I'm a little angry :^o , I'm going to meditate =D> ,
Watch your site inc

Slds,
User avatar
inx
Member
Member
Posts: 142
Joined: Wed Mar 05, 2008 12:52 am

Re: Programar en C el LAPIC TIMER

Post by inx »

Sorry for attempting to help, the language barrier certainly seemed to be an issue.

EDIT: Realized I was responding as if the post was angry, but I'm really not sure whether it was or not, or whether inc is me...
User avatar
billgates
Posts: 3
Joined: Wed Sep 01, 2010 9:30 pm

Re: Programar en C el LAPIC TIMER

Post by billgates »

Gracias inx, voy a tratar de resolverlo solo.
:cry:

Thanks Inx, I'll try to resolve alone. :cry:
Locked