[Top] [All Lists]

Re: r2300_switch.S and traps.c

To: Greeen-III <>
Subject: Re: r2300_switch.S and traps.c
From: "Gleb O. Raiko" <>
Date: Thu, 22 Mar 2001 18:18:20 +0300
Cc: MipsMailList <>
Organization: NIISI RAN
References: <000c01c0b1e5$3d278080$>
> Greeen-III wrote:
> Hi all,
> I am in the pthread problem.
> I guess the reason is context switch.
> So I trace the code /arch/mips/kernel/traps.c and
> /arch/mips/kernel/r2300_switch.S.
> I have some question want to ask you.
> 1. What condition the kernel will simulate the instruction "ll" and
> "sc"?  (In the traps.c)

The Reserved Instruction exception is occured and fault intruction has
ll or sc opcode.

> 2. What is the functional of the variable "ll_bit" ? (In the traps.c)

The sc emulation codemust know  by definition whether ll instruction has
been occured in the control sequence.

> 3. What situation does kernel call the resune ? (In the
> r2300_switch.S)

On context switch, it's implementation of switch_to.

> 4. The traps.c is initialize IDT( interrupt descripter table ), Right?

Sort of.


<Prev in Thread] Current Thread [Next in Thread>