Accessing RAM

2008-12-12 Thread Peerless Deepak
Hi, I am trying to get a page from RAM write some values in it in kernel space and then read them in user space using mmap. Below is the code i use, to fill the memory with a pattern in kernel space. ptr =get_zeroed_page (__GFP_DMA); printk(Peerless:The Virtual addr ptr: %08lx

PCI Resource allocation

2008-12-04 Thread Peerless Deepak
Hi, In ppc4xx_pci i see the pci size to be declared as u32 lah, lal, pciah, pcial, sa; Also at many other places I see the pci region is not capable of handling resources 4GB. I am planning to work on this arch specific code to make it handle pci resource of width greater than 4 GB. But

PCI BAR intial configuration - powerpc arch

2008-10-30 Thread Peerless Deepak
Hi All, I am trying to reassign bus numbers and configure BAR's from kernel by setting PPC_PCI_REASSIGN_ALL_BUS flag. pcibios_assign_resources - fills up the device structure by reading the BARs . I am trying to locate the part of the code which actually fills up the BAR. -- With Regards, Deepak

Re: PCI BAR intial configuration - powerpc arch

2008-10-30 Thread Peerless Deepak
Hi , Sorry forgot to append the question. On Fri, Oct 31, 2008 at 8:58 AM, Peerless Deepak [EMAIL PROTECTED] wrote: Hi All, I am trying to reassign bus numbers and configure BAR's from kernel by setting PPC_PCI_REASSIGN_ALL_BUS flag. pcibios_assign_resources - fills up the device structure

Pci scan

2008-08-12 Thread Peerless Deepak
Hi, I am trying to find understand how the pci devices are enumerated on kernel startup. I am concentrating on powerpc arch. I could see function called pcibios_init . Is it the starting point for doing all device scan or whether the device tree is already formed before this function. Thanks

Help needed in deciphering strace Output

2008-06-05 Thread Peerless Deepak
Hello All, I am running a snmp application and it gets crashed even before it gets loaded in to the memory. I am pasting below the last few lines of strace output if had thrown. mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40 01d000 mmap2(NULL, 4096,

Re: Effect of strace

2008-05-23 Thread Peerless Deepak
On Sat, May 24, 2008 at 6:09 AM, Peter Teoh On Fri, May 23, 2008 at 10:09 PM, Peter Teoh [EMAIL PROTECTED] wrote: I like this joke! it is funny ahem ! i was kind of serious: http://en.wikipedia.org/wiki/Heisenbug anupam Ha ha ...Thanks for that link..Its real fun to know that. Its

Effect of strace

2008-05-21 Thread Peerless Deepak
Hi all, I am wondered whether running a application with strace will make it behave differently. My application on a ARM target board crashed consistently. The odd thing was the log file also disappears during the mishap. So I started the application with strace and captured the output using a

Running a linux executable in windows

2008-05-06 Thread Peerless Deepak
Hi all, I wanted to know whether a program compiled in linux will run in windows. I wrote a simple code which just returns a number from main and didnt make use of any library calls but even that program didnt run in windows. Whats the difference between a c program compiled in linux and