Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107156340
D48420.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D48420.diff
View Options
diff --git a/sys/conf/files b/sys/conf/files
--- a/sys/conf/files
+++ b/sys/conf/files
@@ -3932,7 +3932,7 @@
kern/subr_stats.c optional stats
kern/subr_taskqueue.c standard
kern/subr_terminal.c optional vt
-kern/subr_ticks.s standard
+kern/subr_ticks.S standard
kern/subr_trap.c standard
kern/subr_turnstile.c standard
kern/subr_uio.c standard
diff --git a/sys/kern/subr_ticks.s b/sys/kern/subr_ticks.S
rename from sys/kern/subr_ticks.s
rename to sys/kern/subr_ticks.S
--- a/sys/kern/subr_ticks.s
+++ b/sys/kern/subr_ticks.S
@@ -16,29 +16,21 @@
GNU_PROPERTY_AARCH64_FEATURE_1_NOTE(GNU_PROPERTY_AARCH64_FEATURE_1_VAL)
#endif
-#ifdef _ILP32
-#define SIZEOF_TICKSL 4
-#define TICKSL_INIT .long 0
-#else
-#define SIZEOF_TICKSL 8
-#define TICKSL_INIT .quad 0
-#endif
-
-#if defined(_ILP32) || __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
+#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
#define TICKS_OFFSET 0
#else
-#define TICKS_OFFSET 4
+#define TICKS_OFFSET (__SIZEOF_LONG__ - __SIZEOF_INT__)
#endif
- .data
+ .bss
.global ticksl
.type ticksl, %object
- .align SIZEOF_TICKSL
-ticksl: TICKSL_INIT
- .size ticksl, SIZEOF_TICKSL
+ .align __SIZEOF_LONG__
+ticksl: .zero __SIZEOF_LONG__
+ .size ticksl, __SIZEOF_LONG__
.global ticks
.type ticks, %object
ticks =ticksl + TICKS_OFFSET
- .size ticks, 4
+ .size ticks, __SIZEOF_INT__
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jan 11, 11:52 PM (20 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15759005
Default Alt Text
D48420.diff (1 KB)
Attached To
Mode
D48420: clock: Simplify subr_ticks and rename
Attached
Detach File
Event Timeline
Log In to Comment