Hi ~
Can anybody tell me what the RMO is ?? in the linux kernel.
(arch/powerpc/kernel/prom_init.c)
Through googling and guessing, I found "Read Memory Only" and "Relaxed
Memory Order".
But none of these are not properly understood in the context.
Thanks in advance.
HongWoo.
Hi everyone~
In ther linux kernel code, I found the reloc_offset.
{{{
// file : misc.S
/* Returns (address we are running at) - (address we were linked at)
* for use before the text and data are mapped to KERNELBASE.
*/
_GLOBAL(reloc_offset)
}}}
I couldn't understand the comment saying "Return
Hi ~
I found the code in the linux kernel.
static __inline__ void clear_page(void *addr)
{
unsigned long lines, line_size;
line_size = cpu_caches.dline_size;
lines = cpu_caches.dlines_per_page;
__asm__ __volatile__(
"mtctr %1 # clear_page\n\
1: dcbz0
Hi~
I want to know about bl instruction and the difference between branch
instructions.
I found this code segment.
{{{
bl go_to_real
insrdi r18, r19, 32, 0
}}}
And I found the explanation about branch instructions in PowerISA 2.06
document.
{{{
b target_addr (AA=0 LK=0)
ba targ
Original Message
Subject: Re: Simple question about powerpc kernel source.
From: Benjamin Herrenschmidt
To: HongWoo Lee
Cc: linuxppc-dev@lists.ozlabs.org
Date: Mon Jul 20 2009 19:02:38 GMT+0900
On Mon, 2009-07-20 at 18:00 +0900, HongWoo Lee wrote:
Hi all,
I have
Hi all,
I have something to ask for the ppc kernel source.
#define LOADADDR(rn,name) \
lis rn,nam...@highest; \
ori rn,rn,nam...@higher;\
rldicr rn,rn,32,31;\
orisrn,rn,nam...@h; \
ori rn,rn,nam...@l
Is ## used for concatena
Hi all,
I was reading kernel level source and found this macro.
#define SET_REG_TO_LABEL(reg, label)\
lis reg,(label)@highest;\
ori reg,reg,(label)@higher; \
rldicr reg,reg,32,31; \
orisreg,reg,