Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Arm Trusted Firmware
Commits
1a4f19e3
Commit
1a4f19e3
authored
May 22, 2014
by
Andrew Thoelke
Browse files
Merge pull request #91 from linmaonly/lin_dev
Address issue 156: 64-bit addresses get truncated
parents
ba9dbd10
444281cc
Changes
2
Show whitespace changes
Inline
Side-by-side
include/drivers/arm/pl011.h
View file @
1a4f19e3
...
...
@@ -107,32 +107,32 @@
* Pl011 CPU interface accessors for writing registers
******************************************************************************/
static
inline
void
pl011_write_ibrd
(
unsigned
int
base
,
unsigned
int
val
)
static
inline
void
pl011_write_ibrd
(
unsigned
long
base
,
unsigned
int
val
)
{
mmio_write_32
(
base
+
UARTIBRD
,
val
);
}
static
inline
void
pl011_write_fbrd
(
unsigned
int
base
,
unsigned
int
val
)
static
inline
void
pl011_write_fbrd
(
unsigned
long
base
,
unsigned
int
val
)
{
mmio_write_32
(
base
+
UARTFBRD
,
val
);
}
static
inline
void
pl011_write_lcr_h
(
unsigned
int
base
,
unsigned
int
val
)
static
inline
void
pl011_write_lcr_h
(
unsigned
long
base
,
unsigned
int
val
)
{
mmio_write_32
(
base
+
UARTLCR_H
,
val
);
}
static
inline
void
pl011_write_ecr
(
unsigned
int
base
,
unsigned
int
val
)
static
inline
void
pl011_write_ecr
(
unsigned
long
base
,
unsigned
int
val
)
{
mmio_write_32
(
base
+
UARTECR
,
val
);
}
static
inline
void
pl011_write_cr
(
unsigned
int
base
,
unsigned
int
val
)
static
inline
void
pl011_write_cr
(
unsigned
long
base
,
unsigned
int
val
)
{
mmio_write_32
(
base
+
UARTCR
,
val
);
}
static
inline
void
pl011_write_dr
(
unsigned
int
base
,
unsigned
int
val
)
static
inline
void
pl011_write_dr
(
unsigned
long
base
,
unsigned
int
val
)
{
mmio_write_32
(
base
+
UARTDR
,
val
);
}
...
...
@@ -141,12 +141,12 @@ static inline void pl011_write_dr(unsigned int base, unsigned int val)
* Pl011 CPU interface accessors for reading registers
******************************************************************************/
static
inline
unsigned
int
pl011_read_fr
(
unsigned
int
base
)
static
inline
unsigned
int
pl011_read_fr
(
unsigned
long
base
)
{
return
mmio_read_32
(
base
+
UARTFR
);
}
static
inline
unsigned
int
pl011_read_dr
(
unsigned
int
base
)
static
inline
unsigned
int
pl011_read_dr
(
unsigned
long
base
)
{
return
mmio_read_32
(
base
+
UARTDR
);
}
...
...
lib/aarch64/xlat_tables.c
View file @
1a4f19e3
...
...
@@ -173,7 +173,7 @@ static mmap_region_t *init_xlation_table(mmap_region_t *mm, unsigned long base,
unsigned
level_size_shift
=
L1_XLAT_ADDRESS_SHIFT
-
(
level
-
1
)
*
XLAT_TABLE_ENTRIES_SHIFT
;
unsigned
level_size
=
1
<<
level_size_shift
;
unsigned
level_index_mask
=
XLAT_TABLE_ENTRIES_MASK
<<
level_size_shift
;
unsigned
long
level_index_mask
=
XLAT_TABLE_ENTRIES_MASK
<<
level_size_shift
;
assert
(
level
<=
3
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment