Add SVN revision for HEAD; add SSH configuration; correct password configuration
[ps3freebsd_kernel_patches.git] / 0020-loader-mftb-hang-fix.patch
blob93e9f2458d2a8b4f65db593b62af4e3caf0abb9c
1 --- sys/boot/powerpc/ps3/lv1call.S 2012-03-03 21:09:12.000000000 +0100
2 +++ sys/boot/powerpc/ps3/lv1call.S.new 2012-03-03 23:21:55.000000000 +0100
3 @@ -344,3 +344,19 @@
4 lwz %r0,4(%r1)
5 mtlr %r0
6 blr
8 +.global lv1_get_tb
9 +lv1_get_tb:
10 + mflr %r0
11 + stw %r0,4(%r1)
13 + li %r11,8
14 + hc
16 + mr %r3,%r4
17 + rldicl %r3,%r3,32,32
18 + clrldi %r4,%r4,32
20 + lwz %r0,4(%r1)
21 + mtlr %r0
22 + blr
23 --- sys/boot/powerpc/ps3/lv1call.h 2012-03-03 21:09:12.000000000 +0100
24 +++ sys/boot/powerpc/ps3/lv1call.h.new 2012-03-03 23:11:28.000000000 +0100
25 @@ -76,5 +76,7 @@
26 int lv1_storage_check_async_status(uint64_t dev_id, uint64_t tag,
27 uint64_t *status);
29 +uint64_t lv1_get_tb(void);
31 #endif
33 --- sys/boot/powerpc/ps3/main.c 2012-03-03 23:22:24.000000000 +0100
34 +++ sys/boot/powerpc/ps3/main.c.new 2012-03-03 23:23:58.000000000 +0100
35 @@ -38,6 +38,8 @@
36 #include "ps3.h"
37 #include "ps3devdesc.h"
39 +#define mftb() lv1_get_tb()
41 struct arch_switch archsw;
42 extern void *_end;