Re: Request Chinese mail list and FrontPage

2016-09-06 Thread Adam Lee
t; Thanks, > Hao Lee Yep, still alive, checked. Just send a mail to it then follow the steps in its replied mail. -- Adam Lee http://adam8157.info ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: Request Chinese mail list and FrontPage

2016-09-05 Thread Adam Lee
has extremely low activity. I suggest you ask and answer in this kernelnewbies mail list. People are nice here, simple/basic English is not a problem. -- Adam Lee http://adam8157.info ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org ht

Re: What does %P1 mean in gcc inline assembly?

2016-03-06 Thread Adam Lee
> > By the way, If someone have the problems alike, I suggest them to write some > inline assembly and check the compiler’s assembly output. Didn't get different outputs here, do you have updates? -- Adam Lee http://adam8157.info ___

Re: How to auto-load kernel module when peripheral

2015-03-30 Thread Adam Lee
5000] usb 1-1: Manufacturer: FTDI > [ 43.585000] usb 1-1: SerialNumber: A900aMbV > > How do I do? Thanks in advance! https://wiki.gentoo.org/wiki/Mdev#Notes "mdev unlike udev does not support auto-modules loading thus you will need to use /etc/conf.d/modules

Re: Can add new module without upgrade the kernel?

2015-03-30 Thread Adam Lee
be inserted at the most of times too, not that picky. Also you still could extract its dependencies(if there are) out and compile them as external modules. -- Adam Lee http://adam8157.info ___ Kernelnewbies mailing list Kernelnewb

Re: Can add new module without upgrade the kernel?

2015-03-30 Thread Adam Lee
nto your rootfs, or compile them as external modules. ref: https://www.kernel.org/doc/Documentation/kbuild/modules.txt -- Adam Lee http://adam8157.info ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: confusion in interrup handler

2015-01-22 Thread Adam Lee
thought 2"? The scheduler will be far too complicated, system will become very unstable because IRQs are so not real time then. -- Adam Lee http://adam8157.info ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: when I use kgdb debugging kernel...

2015-01-10 Thread Adam Lee
ogram is not run" > Seems like you only connected console but not kgdb serial, check the kernel parameter "kgdboc". FYI, https://www.kernel.org/pub/linux/kernel/people/jwessel/kdb/kgdbKernelArgs.html -- Adam Lee http://adam8157.info __

Re: cpu_relax(), rep: nop, and PAUSE

2013-02-19 Thread Adam Lee
ght to be the same, why we change it? "If it ain't broke, don't fix it." You can see that by disassembling, they both are "f3 90", "f3" is rep, "90" is nop. > And AFAIK, in spinlocks , PAUSE indeed replac

Re: Why do { // do something ; } while (0); ?

2012-12-13 Thread Adam Lee
than executing couple of C statements together ? > > Is there any special purpose of doing this ?? > Sorry of such a silly question - I am just trying > to learn kernel hacking basics. http://kernelnewbies.org/FAQ/DoWhile0 -- Regards, Adam Lee http://adam8157.info ___

Re: is there a C func that can check kernel config file?

2012-11-05 Thread Adam Lee
. but if I'd like do this in C program, how to > do > that, is there interface/func in some header file? > linux/scripts/kconfig/lkc.h and lkc_proto.h like sym_get_tristate_value(), sym_get_string_value()... -- Regards, Adam Lee http://adam8157.info __

Re: Fwd: Memory split in 64-bit environment

2012-11-02 Thread Adam Lee
/en.wikipedia.org/wiki/X86-64#Canonical_form_addresses PS, if you can read Chinese(hopeless), check my blog: http://adam8157.info/blog/2012/07/linux-x86-64-vm/ -- Regards, Adam Lee http://adam8157.info ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: Query on CodingStyle: indentation

2012-10-19 Thread Adam Lee
le and rely on tab instead. No, you should not expand tabs. Tabs in CodingStyle mean _hard_ tabs. Mine: set tabstop=8 set noexpandtab set shiftwidth=8 set cinoptions=:0,l1,t0,g0 -- Regards, Adam Lee http://adam8157.info ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: ANSI C rules for variable declaration

2012-09-20 Thread Adam Lee
mpiler. And you can mix it with other newer standards. > 3.There must be some standard that all of us need to follow , so what are they > ? May be the standards followed by most people are gnu89(ANSI C with GCC extensions) and C99. PS, this is kind of out of topic

Re: Setting up development environment using QEMU.

2012-06-09 Thread Adam Lee
ss about how to do that? You need a full system, kernel is just the core. I suggest you using Debian stable images for QEMU at http://people.debian.org/~aurel32/qemu (ref: http://wiki.debian.org/QEMU) Or, use busybox to build rootfs like what I am doing: https://github.com/adam8157/kernel

Re: Setting up development environment using QEMU.

2012-06-08 Thread Adam Lee
> On Fri, Jun 8, 2012 at 6:46 PM, Adam Lee wrote: > > On Fri, Jun 08, 2012 at 06:08:44PM +0600, Aft nix wrote: > > > Sure about this? Check the output of `file vmlinux` > > You were right then. > > $file vmlinux > $vmlinux: ELF 64-bit LSB executable, x86-6

Re: Setting up development environment using QEMU.

2012-06-08 Thread Adam Lee
ux` > Where i'm doing something wrong? What's the arch of your host system, and your toolchain? BTW, my kernel developing and debugging environment: https://github.com/adam8157/kernel-studio -- Regards, Adam Lee E-mail: adam8...@gmail.com Webs

Re: rootfile system porting for FPGA [/bin/sh: can't access tty; job control turned off]

2012-05-08 Thread Adam Lee
bin/sh > /bin/sh Remove the last two lines and add a line "exec /bin/sh" might works. And, I suggest you write rcS as examples/bootfloppy/etc/inittab in busybox src tree, and do not drop sh lines in rcS # examples/bootfloppy/etc/inittab: ::sysinit:/etc/init.d/rcS :

Re: rootfile system porting for FPGA [/bin/sh: can't access tty; job control turned off]

2012-05-07 Thread Adam Lee
. And, I use busybox to build the rootfs for kernel debugging: https://github.com/adam8157/kernel-studio the rootfs making script is at here right now: https://github.com/adam8157/kernel-studio/blob/master/mkrootfs Might helps. -

Re: Linux 0.02 version download

2011-10-25 Thread Adam Lee
na start from oldlinux, 0.11 will be a good choice, and there is a book about this: http://mirrors.kernel.org/oldlinux/ -- Regards, Adam Lee -- E-mail: adam8...@gmail.com Website: http://www.adam8157.info -

Re: maintenance time and git error

2011-09-12 Thread Adam Lee
On Tue, Sep 13, 2011 at 01:39:26AM -0400, esmaeil mirzaee wrote: > Thank you for reply > On Tue, Sep 13, 2011 at 1:30 AM, Adam Lee wrote: > > On Tue, Sep 13, 2011 at 01:22:05AM -0400, esmaeil mirzaee wrote: > >> Hi > >> does anyone know when the maintaining

Re: maintenance time and git error

2011-09-12 Thread Adam Lee
te add github git://github.com/torvalds/linux.git $ git fetch github $ git checkout -b github github/master and you will get a branch named "github" with github remote. -- Regards, Adam Lee --

Re: Purpose of using __be16 inside a data structure?

2011-08-23 Thread Adam Lee
define __bitwise __bitwise__ #else #define __bitwise #endif typedef __u16 __bitwise __le16; typedef __u16 __bitwise __be16; -- Regards, Adam Lee -- E-mail: adam8...@gmail.com Website: http://www.adam8157.info -

Re: Tracing file size changes

2011-08-10 Thread Adam Lee
e > difference? I know there are various file notify mechanisms, but from what I > can see, they don't handle millions of files very well. > > Of course I'm open to other ideas, but this was my curiosity. > Will Inotify help? http://en.wikipedia.org/wiki/Inotify ht

Re: setitimer shows different between amd64 and ia32

2011-07-24 Thread Adam Lee
On Sun, Jul 24, 2011 at 09:09:55PM -0700, Dave Hylands wrote: > Hi Adam, > > On Sun, Jul 24, 2011 at 8:10 PM, Adam Lee wrote: > > Hi, all > > > > I'm working on a test which invoking setitimer(), and it hang in > > ia32 and ppc, but passed in amd64, could

setitimer shows different between amd64 and ia32

2011-07-24 Thread Adam Lee
ot;The signal catcher never gained control\n"); else printf("The signal catcher gained control\n"); printf("The value of count is %.0f\n", count); return (r

Re: how to write a user space driver?

2011-06-16 Thread Adam Lee
NON-ASCII (LIKE CHINESE). PS: 邮件列表有自己的礼仪, 这样发邮件很容易被说"rude"的. -- Regards, Adam Lee -- E-mail: adam8...@gmail.com Website: http://www.adam8157.info -- ___

Re: Reserving physical memory in Linux

2010-12-27 Thread Adam Lee
On Mon, Dec 27, 2010 at 5:06 PM, Asha R wrote: > Thanks Adam Lee. > Is this mem= or memmap=? Opps, sorry. It should be "memmap=256M$0x1000" -- Regards, Adam Lee -- E-mail: adam8...@gmail.com Website: http://w

Re: Reserving physical memory in Linux

2010-12-26 Thread Adam Lee
boot options or any other? > > Regards, > Asha try adding "mem=256M$0x1000" in arg. via http://lxr.linux.no/source/Documentation/kernel-parameters.txt -- Regards, Adam Lee -- E-mail: adam8...@gmail.com