Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F168438797
D59244.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
539 B
Referenced Files
None
Subscribers
None
D59244.diff
View Options
Index: sys/dev/tpm/tpm20.h
===================================================================
--- sys/dev/tpm/tpm20.h
+++ sys/dev/tpm/tpm20.h
@@ -62,7 +62,7 @@
#include "opt_tpm.h"
#include "tpm_if.h"
-#define BIT(x) (1 << (x))
+#define BIT(x) (1U << (x))
/* Timeouts in us */
#define TPM_TIMEOUT_A 750000
@@ -181,7 +181,7 @@
static inline void
OR4(struct tpm_sc *sc, bus_size_t off, uint32_t val)
{
- uint32_t v = TPM_READ_1(sc->dev, off);
+ uint32_t v = TPM_READ_4(sc->dev, off);
TPM_WRITE_4(sc->dev, off, v | val);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Aug 29, 8:52 AM (1 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37503518
Default Alt Text
D59244.diff (539 B)
Attached To
Mode
D59244: tpm20: Correct 32-bit register helpers
Attached
Detach File
Event Timeline
Log In to Comment