From: Amol Mohite <amol@m-net.arbornet.org>
To: ralf@uni-koblenz.de
Cc: linux-mm@kvack.org
Subject: Re: Somw questions [ MAYBE OFFTOPIC ]
Date: Mon, 5 Apr 1999 05:12:50 -0400 (EDT) [thread overview]
Message-ID: <Pine.BSI.3.96.990405050919.3415A-100000@m-net.arbornet.org> (raw)
In-Reply-To: <19990402113555.F9584@uni-koblenz.de>
> A NULL pointer is just yet another invalid address. There is no special
> test for a NULL pointer. Most probably for example (char *)0x12345678 will
> be invalid as a pointer as well and treated the same. The CPU detects this
> when the TLB doesn't have a translation valid for the access being attempted.
>
Yes but how does it know it is a null pointer ?
On that note, when c does not allow u to dereference a void pointer , is
this compiler doing the trick ?
Ok , about the expand down attribute, thats how 32 bit windows does it, so
i was wondering if linux also does the same.
16 bit windows accesses a null pointer with a 0: descriptor.
Apparently intel allows u to load a 0 but not dererence it.
--
To unsubscribe, send a message with 'unsubscribe linux-mm my@address'
in the body to majordomo@kvack.org. For more info on Linux MM,
see: http://humbolt.geo.uu.nl/Linux-MM/
next prev parent reply other threads:[~1999-04-05 9:38 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-04-01 9:16 Amol Mohite
1999-04-02 9:35 ` ralf
1999-04-02 18:56 ` Chris Atenasio
1999-04-05 9:12 ` Amol Mohite [this message]
1999-04-06 10:55 ` ralf
1999-04-06 22:51 ` Stephen C. Tweedie
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=Pine.BSI.3.96.990405050919.3415A-100000@m-net.arbornet.org \
--to=amol@m-net.arbornet.org \
--cc=linux-mm@kvack.org \
--cc=ralf@uni-koblenz.de \
/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