Page 1 of 1

Programar en C el LAPIC TIMER

Posted: Wed Sep 01, 2010 10:16 pm
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<

Re: Programar en C el LAPIC TIMER

Posted: Thu Sep 02, 2010 3:17 am
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.

Re: Programar en C el LAPIC TIMER

Posted: Thu Sep 02, 2010 5:01 am
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" :).

Re: Programar en C el LAPIC TIMER

Posted: Thu Sep 02, 2010 5:39 am
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.

Re: Programar en C el LAPIC TIMER

Posted: Fri Sep 03, 2010 10:40 pm
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."

Re: Programar en C el LAPIC TIMER

Posted: Fri Sep 03, 2010 10:56 pm
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,

Re: Programar en C el LAPIC TIMER

Posted: Fri Sep 03, 2010 11:02 pm
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...

Re: Programar en C el LAPIC TIMER

Posted: Fri Sep 03, 2010 11:34 pm
by billgates
Gracias inx, voy a tratar de resolverlo solo.
:cry:

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