lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Tue, 14 Jul 2009 09:42:28 +0800
From:	liqin.chen@...plusct.com
To:	Arnd Bergmann <arnd@...db.de>
Cc:	Christoph Hellwig <hch@...radead.org>, linux-arch@...r.kernel.org,
	linux-arch-owner@...r.kernel.org, linux-kernel@...r.kernel.org,
	Roland McGrath <roland@...hat.com>,
	Linus Torvalds <torvalds@...ux-foundation.org>
Subject: Re: [PATCH V2] score: add regset support

Arnd Bergmann <arnd@...db.de> 写于 2009-07-13 22:24:28:

> Maybe to get a nicer layout, you can define separate
> structures then:
> 
> struct user_regs_struct {
>         unsigned long regs[32];
> 
>         unsigned long cel;
>         unsigned long ceh;
> 
>         unsigned long sr0;      /* cnt */
>         unsigned long sr1;      /* lcr */
>         unsigned long sr2;      /* scr */
> 
>         unsigned long cp0_epc;
>         unsigned long cp0_ema;
>         unsigned long cp0_psr;
>         unsigned long cp0_ecr;
>         unsigned long cp0_condition;
> 
>    unsigned long reserved[6]; /* future extensions */
> };
> 
> #ifdef __KERNEL__
> struct pt_regs {
>    /* stack arguments */
>         unsigned long pad0[6];
> 
>    /* internal use */
>         unsigned long orig_r4;
>         unsigned long orig_r7;
>         long is_syscall;
> 
>    /* saved registers */
>    struct user_regs_struct uregs;
> };
> #endif
> 
> That would keep the user struct relatively clean.

OK, I will send this patch soon.

Thanks,
liqin

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ