From: Christoph Hellwig <hch@lst.de>
To: openrisc@lists.librecores.org
Subject: [OpenRISC] architectures that still need to remove set_fs()
Date: Tue, 18 Jan 2022 08:48:36 +0100 [thread overview]
Message-ID: <20220118074836.GA20994@lst.de> (raw)
Hi all,
you are in this list because your architecture still implements and
uses address space overrides using set_fs(), which are deprecated and
have been removed from all mainstream architecture ports. To help
cleanup the core kernel it would be great to make progress on removing
set_fs entirely.
The following steps are required:
(1) implement the __get_kernel_nofault and __put_kernel_nofault
helper to access kernel memory without page faults, replacing
the get/put_user under set_fs(KERNEL_DS) abuse. Mips has a good
example for a trivial implementation for architectures that use
a common address space in commit 04324f44cb69
(2) remove any architecture specific use of such constructs. This
only affects ia64 and sh.
(3) stop selecting the SET_FS and remove all the set_fs-related
infrastructure. The above mips commit is a good guide once again.
Thanks!
next reply other threads:[~2022-01-18 7:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-18 7:48 Christoph Hellwig [this message]
2022-01-18 11:48 ` [OpenRISC] architectures that still need to remove set_fs() Stafford Horne
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220118074836.GA20994@lst.de \
--to=hch@lst.de \
--cc=openrisc@lists.librecores.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox