From: "Rego, P." <pvrego@gmail.com>
Subject: Re: Best representation for spares
Date: Sat, 15 Feb 2014 13:35:38 -0800 (PST)
Date: 2014-02-15T13:35:38-08:00 [thread overview]
Message-ID: <1e41e2d6-7ff8-445d-9c14-14c49b244bcf@googlegroups.com> (raw)
In-Reply-To: <8200939f-9bbd-44dd-848c-00c663f37121@googlegroups.com>
On Saturday, February 15, 2014 6:25:27 PM UTC-2, Rego, P. wrote:
> type Zero_Bit is new Boolean;
> type Zero_Bits is array (Positive range <>) of Zero_Bit;
> for Zero_Bits'Component_Size use 1;
> type Auxiliary_Interrupt_Status_Type is
> record
> Mini_Uart_IRQ : Boolean;
> SPI_1_IRQ : Boolean;
> SPI_2_IRQ : Boolean;
> Spare : Zero_Bits (3 .. 31) := (3 .. 31 => 0);
> end record;
The only thing when I use this approach, in
Auxiliary_Peripherals_Register_Map : Auxiliary_Peripherals_Register_Map_Type;
for Auxiliary_Peripherals_Register_Map'Address use System'To_Address (16#7E21_5000#);
I get from compiler the warnings
> default initialization of "Auxiliary_Peripherals_Register_Map" may modify overlaid storage
> use pragma Import for "Auxiliary_Peripherals_Register_Map" to suppress initialization (RM B.1(24))
But in this case I do not want to suppress initialization. What to do to eliminate this warning?
next prev parent reply other threads:[~2014-02-15 21:35 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-14 1:07 Best representation for spares Rego, P.
2014-02-14 9:19 ` Simon Wright
2014-02-15 16:06 ` Rego, P.
2014-02-15 17:49 ` Jeffrey Carter
2014-02-15 20:21 ` Rego, P.
2014-02-15 19:55 ` Niklas Holsti
2014-02-15 20:25 ` Rego, P.
2014-02-15 21:35 ` Rego, P. [this message]
2014-02-16 10:02 ` Niklas Holsti
2014-02-16 13:40 ` Rego, P.
2014-02-16 16:26 ` Rego, P.
2014-02-16 18:50 ` Niklas Holsti
2014-02-16 16:33 ` Niklas Holsti
2014-02-16 12:10 ` Simon Wright
2014-02-16 13:43 ` Rego, P.
2014-02-16 14:25 ` Robert A Duff
2014-02-16 16:21 ` Rego, P.
2014-02-15 21:41 ` Jeffrey Carter
2014-02-15 22:37 ` Rego, P.
2014-02-15 22:41 ` Rego, P.
2014-02-16 0:39 ` Jeffrey Carter
2014-02-16 12:06 ` Simon Wright
2014-02-16 13:45 ` Rego, P.
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox