mail.coreboot.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
List overview
Download
openfirmware
February 2013
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
openfirmware@openfirmware.info
1 participants
46 discussions
Start a n
N
ew thread
[commit] r3537 - dev/mmc/sdhci/mv8686
by repository service
08 Feb '13
08 Feb '13
Author: quozl Date: Fri Feb 8 05:13:46 2013 New Revision: 3537 URL:
http://tracker.coreboot.org/trac/openfirmware/changeset/3537
Log: OLPC - libertas, when ring buffer was full stack imbalance triggered Data Abort during pingd test, #12172. Modified: dev/mmc/sdhci/mv8686/ring.fth Modified: dev/mmc/sdhci/mv8686/ring.fth ============================================================================== --- dev/mmc/sdhci/mv8686/ring.fth Wed Feb 6 07:48:16 2013 (r3536) +++ dev/mmc/sdhci/mv8686/ring.fth Fri Feb 8 05:13:46 2013 (r3537) @@ -52,7 +52,7 @@ ; : enque-buffer ( handle -- ) - advance dup next-get <> if to next-put then + advance dup next-get <> if to next-put else drop then ; : get-queued? ( -- false | adr len true )
1
0
0
0
[commit] r3536 - in dev/usb2: device/keyboard hcd hcd/ehci hcd/ohci hcd/uhci
by repository service
06 Feb '13
06 Feb '13
Author: quozl Date: Wed Feb 6 07:48:16 2013 New Revision: 3536 URL:
http://tracker.coreboot.org/trac/openfirmware/changeset/3536
Log: USB - add an interrupt lockout for the keyboard alarm handler, so that it is skipped if the non-interrupt context is in the middle of a bulk or interrupt pipe method. A fix for OLPC #12516. Actual cause still unknown. Modified: dev/usb2/device/keyboard/request.fth dev/usb2/hcd/ehci/bulk.fth dev/usb2/hcd/ehci/intr.fth dev/usb2/hcd/hcd-call.fth dev/usb2/hcd/hcd.fth dev/usb2/hcd/ohci/bulk.fth dev/usb2/hcd/ohci/intr.fth dev/usb2/hcd/uhci/bulk.fth dev/usb2/hcd/uhci/intr.fth Modified: dev/usb2/device/keyboard/request.fth ============================================================================== --- dev/usb2/device/keyboard/request.fth Tue Feb 5 05:01:23 2013 (r3535) +++ dev/usb2/device/keyboard/request.fth Wed Feb 6 07:48:16 2013 (r3536) @@ -77,6 +77,7 @@ : end-scan ( -- ) end-intr-in ; : get-data? ( adr len -- actual ) + locked? if nip nip 0 exit then \ bulk or interrupt methods are active intr-in? if nip nip restart-intr-in exit then \ USB error; restart ?dup if ( adr len actual ) min tuck kbd-buf -rot move ( actual ) Modified: dev/usb2/hcd/ehci/bulk.fth ============================================================================== --- dev/usb2/hcd/ehci/bulk.fth Tue Feb 5 05:01:23 2013 (r3535) +++ dev/usb2/hcd/ehci/bulk.fth Wed Feb 6 07:48:16 2013 (r3536) @@ -421,6 +421,7 @@ ; : bulk-in? ( -- actual usberr ) + lock bulk-in-ready? if ( usberr | buf actual 0 ) ?dup if ( usberr ) 0 swap ( actual usberr ) @@ -432,6 +433,7 @@ else ( ) 0 0 ( actual usberr ) then + unlock ; : restart-bulk-in ( -- ) @@ -460,6 +462,7 @@ ; : bulk-in ( buf len pipe -- actual usberr ) debug? if ." bulk-in" cr then + lock dup to bulk-in-pipe process-bulk-args ?alloc-bulk-qhqtds to my-bulk-qtd to my-bulk-qh @@ -480,16 +483,19 @@ my-bulk-qtd map-out-bptrs ( actual usberr ) my-bulk-qh dup fixup-bulk-in-data ( actual usberr qh ) remove-qh ( actual usberr ) + unlock ; 0 instance value bulk-out-busy? : done-bulk-out ( -- error? ) + lock \ Process results my-bulk-qh done-error? ( usberr ) my-bulk-qtd map-out-bptrs ( usberr ) my-bulk-qh fixup-bulk-out-data ( usberr ) my-bulk-qh remove-qh ( usberr ) false to bulk-out-busy? ( usberr ) + unlock ; : start-bulk-out ( buf len pipe -- usberr ) bulk-out-busy? if ( buf len pipe ) @@ -497,6 +503,7 @@ then ( buf len pipe ) debug? if ." bulk-out" cr then + lock dup to bulk-out-pipe ( buf len pipe ) process-bulk-args ( ) ?alloc-bulk-qhqtds to my-bulk-qtd to my-bulk-qh ( ) @@ -507,6 +514,7 @@ TD_PID_OUT start-bulk-transaction ( ) true to bulk-out-busy? ( ) 0 ( usberr ) + unlock ; : bulk-out ( buf len pipe -- usberr ) start-bulk-out drop done-bulk-out Modified: dev/usb2/hcd/ehci/intr.fth ============================================================================== --- dev/usb2/hcd/ehci/intr.fth Tue Feb 5 05:01:23 2013 (r3535) +++ dev/usb2/hcd/ehci/intr.fth Wed Feb 6 07:48:16 2013 (r3536) @@ -51,6 +51,7 @@ debug? if ." begin-intr-in" cr then intr-in-qh if 4drop exit then \ Already started + lock to intr-in-interval dup to intr-in-pipe process-intr-args @@ -63,10 +64,12 @@ \ Start intr in transaction intr-in-qh pt-intr fill-qh intr-in-qh my-speed intr-in-interval insert-intr-qh + unlock ; : intr-in? ( -- actual usberr ) intr-in-qh 0= if 0 USB_ERR_INV_OP exit then ( ) + lock clear-usb-error ( ) \ Ironically, we can't use Interrupt-On-Completion for interrupt pipes, \ because when a bulk or control transaction is performed with IOC, the @@ -91,6 +94,7 @@ usb-error ( actual usberr ) intr-in-qh fixup-intr-in-data ( actual usberr ) then ( actual usberr ) + unlock ; headers @@ -111,6 +115,7 @@ : restart-intr-in ( -- ) intr-in-qh 0= if exit then + lock \ Setup qTD again intr-in-qtd restart-intr-in-qtd @@ -119,15 +124,18 @@ intr-in-qh >hcqh-endp-char dup le-l@ QH_TD_TOGGLE invert and swap le-l! intr-in-qtd >qtd-phys l@ intr-in-qh >hcqh-overlay >hcqtd-next le-l! intr-in-qh push-qhqtds + unlock ; : end-intr-in ( -- ) debug? if ." end-intr-in" cr then intr-in-qh 0= if exit then + lock intr-in-qh dup fixup-intr-in-data intr-in-qtd map-out-bptrs dup remove-intr-qh free-qh 0 to intr-in-qh 0 to intr-in-qtd + unlock ; headers Modified: dev/usb2/hcd/hcd-call.fth ============================================================================== --- dev/usb2/hcd/hcd-call.fth Tue Feb 5 05:01:23 2013 (r3535) +++ dev/usb2/hcd/hcd-call.fth Wed Feb 6 07:48:16 2013 (r3536) @@ -10,6 +10,10 @@ : dma-alloc ( size -- virt ) " dma-alloc" $call-parent ; : dma-free ( virt size -- ) " dma-free" $call-parent ; +: locked? ( -- flag ) + " locked?" $call-parent +; + \ Probing support : set-target ( device -- ) " set-target" $call-parent Modified: dev/usb2/hcd/hcd.fth ============================================================================== --- dev/usb2/hcd/hcd.fth Tue Feb 5 05:01:23 2013 (r3535) +++ dev/usb2/hcd/hcd.fth Wed Feb 6 07:48:16 2013 (r3536) @@ -54,6 +54,10 @@ then ; +0 value locked? \ Interrupt lockout for USB keyboard get-data? +: lock ( -- ) true to locked? ; +: unlock ( -- ) false to locked? ; + \ --------------------------------------------------------------------------- \ Common routines \ --------------------------------------------------------------------------- Modified: dev/usb2/hcd/ohci/bulk.fth ============================================================================== --- dev/usb2/hcd/ohci/bulk.fth Tue Feb 5 05:01:23 2013 (r3535) +++ dev/usb2/hcd/ohci/bulk.fth Wed Feb 6 07:48:16 2013 (r3536) @@ -124,6 +124,7 @@ : bulk-in? ( -- actual usberr ) bulk-in-ed 0= if 0 USB_ERR_INV_OP exit then + lock clear-usb-error ( ) process-hc-status ( ) bulk-in-ed dup pull-edtds ( ed ) @@ -139,6 +140,7 @@ else 0 usb-error ( actual usberr ) then + unlock ; headers @@ -157,6 +159,7 @@ external : restart-bulk-in ( -- ) debug? if ." restart-bulk-in" cr then + lock bulk-in-ed 0= if exit then bulk-in-ed ed-set-skip @@ -168,18 +171,22 @@ bulk-in-ed dup push-edtds ed-unset-skip enable-bulk + unlock ; : end-bulk-in ( -- ) debug? if ." end-bulk-in" cr then + lock bulk-in-ed 0= if exit then bulk-in-td map-out-cbp bulk-in-ed remove-my-bulk 0 to bulk-in-ed 0 to bulk-in-td + unlock ; : bulk-in ( buf len pipe -- actual usberr ) debug? if ." bulk-in" cr then + lock dup to bulk-in-pipe bulk-in-timeout process-bulk-args ( ) alloc-bulk-edtds to my-td to my-ed ( ) @@ -206,10 +213,12 @@ my-td map-out-cbp ( actual usberr ed ) my-ed dup fixup-bulk-in-data ( actual usberr ed ) remove-my-bulk ( actual usberr ) + unlock ; : bulk-out ( buf len pipe -- usberr ) debug? if ." bulk-out" cr then + lock dup to bulk-out-pipe bulk-out-timeout process-bulk-args alloc-bulk-edtds to my-td to my-ed @@ -227,6 +236,7 @@ my-td map-out-cbp my-ed dup fixup-bulk-out-data remove-my-bulk + unlock ; headers Modified: dev/usb2/hcd/ohci/intr.fth ============================================================================== --- dev/usb2/hcd/ohci/intr.fth Tue Feb 5 05:01:23 2013 (r3535) +++ dev/usb2/hcd/ohci/intr.fth Wed Feb 6 07:48:16 2013 (r3536) @@ -61,6 +61,7 @@ : begin-intr-in ( buf len pipe interval -- ) debug? if ." begin-intr-in" cr then intr-in-ed if 4drop exit then \ Already started + lock #intr-in++ to intr-in-interval @@ -74,10 +75,12 @@ \ Start intr transaction intr-in-ed dup fill-intr-in-ed insert-in-intr + unlock ; : intr-in? ( -- actual usberr ) intr-in-ed 0= if 0 USB_ERR_INV_OP exit then + lock clear-usb-error ( ) process-hc-status ( ) intr-in-ed dup pull-edtds ( ed ) @@ -93,6 +96,7 @@ else 0 usb-error ( actual usberr ) then + unlock ; headers @@ -111,6 +115,7 @@ external : restart-intr-in ( -- ) intr-in-ed 0= if exit then + lock intr-in-ed ed-set-skip \ Setup TD again @@ -120,15 +125,18 @@ intr-in-td >td-phys l@ intr-in-data@ or intr-in-ed >hced-tdhead le-l! intr-in-ed dup push-edtds ed-unset-skip + unlock ; : end-intr-in ( -- ) debug? if ." end-intr-in" cr then intr-in-ed 0= if exit then + lock #intr-in-- intr-in-td map-out-cbp intr-in-ed remove-my-intr 0 to intr-in-ed 0 to intr-in-td + unlock ; headers Modified: dev/usb2/hcd/uhci/bulk.fth ============================================================================== --- dev/usb2/hcd/uhci/bulk.fth Tue Feb 5 05:01:23 2013 (r3535) +++ dev/usb2/hcd/uhci/bulk.fth Wed Feb 6 07:48:16 2013 (r3536) @@ -111,6 +111,7 @@ : bulk-in? ( -- actual usberr ) bulk-in-qh 0= if 0 USB_ERR_INV_OP exit then + lock clear-usb-error process-hc-status bulk-in-qh dup pull-qhtds ( bulk-in-qh ) @@ -129,6 +130,7 @@ over if bulk-in-td dup >td-buf l@ swap >td-pbuf l@ 2 pick dma-pull then + unlock ; headers @@ -170,6 +172,7 @@ : bulk-in ( buf len pipe -- actual usberr ) debug? if ." bulk-in" cr then + lock dup to bulk-in-pipe bulk-in-timeout process-bulk-args alloc-bulk-qhtds to my-td to my-qh @@ -197,10 +200,12 @@ my-td dup map-out-buf ( actual usberr qh td ) my-#tds fixup-bulk-in-data ( actual usberr qh ) dup remove-qh free-qhtds ( actual usberr ) + unlock ; : bulk-out ( buf len pipe -- usberr ) debug? if ." bulk-out" cr then + lock dup to bulk-out-pipe bulk-out-timeout process-bulk-args alloc-bulk-qhtds to my-td to my-qh @@ -219,6 +224,7 @@ my-td dup map-out-buf ( actual usberr qh td ) my-#tds fixup-bulk-out-data ( actual usberr qh ) dup remove-qh free-qhtds ( actual usberr ) + unlock ; headers Modified: dev/usb2/hcd/uhci/intr.fth ============================================================================== --- dev/usb2/hcd/uhci/intr.fth Tue Feb 5 05:01:23 2013 (r3535) +++ dev/usb2/hcd/uhci/intr.fth Wed Feb 6 07:48:16 2013 (r3536) @@ -60,6 +60,7 @@ debug? if ." begin-intr-in" cr then intr-in-qh if 4drop exit then \ Already started + lock to intr-in-interval dup to intr-in-pipe intr-in-timeout process-intr-args @@ -70,10 +71,12 @@ \ Start intr in transaction intr-in-qh intr-in-interval insert-intr-qh + unlock ; : intr-in? ( -- actual usberr ) intr-in-qh 0= if 0 USB_ERR_INV_OP exit then + lock clear-usb-error process-hc-status intr-in-qh dup pull-qhtds @@ -85,6 +88,7 @@ else 0 usb-error ( actual usberr ) then + unlock ; headers @@ -104,22 +108,26 @@ debug? if ." restart-intr-in" cr then intr-in-qh 0= if exit then + lock \ Setup TD again intr-in-td restart-intr-in-td \ Setup QH again intr-in-td >td-phys l@ intr-in-qh >hcqh-elem le-l! intr-in-qh push-qhtds + unlock ; : end-intr-in ( -- ) debug? if ." end-intr-in" cr then intr-in-qh 0= if exit then + lock intr-in-td intr-in-qh >qh-#tds l@ fixup-intr-in-data intr-in-td map-out-buf intr-in-qh dup remove-qh free-qhtds 0 to intr-in-qh 0 to intr-in-td + unlock ; headers
1
0
0
0
[commit] r3535 - cpu/arm/olpc
by repository service
05 Feb '13
05 Feb '13
Author: quozl Date: Tue Feb 5 05:01:23 2013 New Revision: 3535 URL:
http://tracker.coreboot.org/trac/openfirmware/changeset/3535
Log: OLPC XO-4 - touchscreen, avoid mouse test targets when using test phase 4, reported by Chia-Hsiu. Modified: cpu/arm/olpc/nn-touchscreen.fth cpu/arm/olpc/touchscreen-common.fth Modified: cpu/arm/olpc/nn-touchscreen.fth ============================================================================== --- cpu/arm/olpc/nn-touchscreen.fth Tue Feb 5 04:10:29 2013 (r3534) +++ cpu/arm/olpc/nn-touchscreen.fth Tue Feb 5 05:01:23 2013 (r3535) @@ -905,7 +905,7 @@ cursor-off consume flush - background + blacken -1 to remaining ; Modified: cpu/arm/olpc/touchscreen-common.fth ============================================================================== --- cpu/arm/olpc/touchscreen-common.fth Tue Feb 5 04:10:29 2013 (r3534) +++ cpu/arm/olpc/touchscreen-common.fth Tue Feb 5 05:01:23 2013 (r3535) @@ -111,8 +111,12 @@ : undot ( -- ) pixcolor @ dup dimmer " replace-color" $call-screen ; -: background ( -- ) +: blacken ( -- ) black 0 0 screen-w screen-h fill-rectangle-noff +; + +: background ( -- ) + blacken targets? if false to left-hit? false to right-hit?
1
0
0
0
[commit] r3534 - cpu/arm/olpc
by repository service
05 Feb '13
05 Feb '13
Author: quozl Date: Tue Feb 5 04:10:29 2013 New Revision: 3534 URL:
http://tracker.coreboot.org/trac/openfirmware/changeset/3534
Log: OLPC XO-4 - touchscreen manufacturing tests, do motherboard assembly test in phase 4, on request from Chia-Hsiu. Modified: cpu/arm/olpc/nn-touchscreen.fth Modified: cpu/arm/olpc/nn-touchscreen.fth ============================================================================== --- cpu/arm/olpc/nn-touchscreen.fth Mon Feb 4 08:50:34 2013 (r3533) +++ cpu/arm/olpc/nn-touchscreen.fth Tue Feb 5 04:10:29 2013 (r3534) @@ -1090,6 +1090,7 @@ test-station case h# 1 of mb-smt exit endof h# 2 of mb-assy exit endof + h# 4 of mb-assy exit endof h# 11 of ir-pcb-smt exit endof h# 12 of ir-pcb-assy exit endof h# 13 of lg-tooling exit endof
1
0
0
0
[commit] r3533 - cpu/arm/olpc dev dev/usb2/device/keyboard
by repository service
04 Feb '13
04 Feb '13
Author: quozl Date: Mon Feb 4 08:50:34 2013 New Revision: 3533 URL:
http://tracker.coreboot.org/trac/openfirmware/changeset/3533
Log: OLPC - allocate any heap during driver open rather than during an alarm handler, for the /ap-sp, /keyboard, and /usb/keyboard drivers, fixes #12466, tested with 128,000 boot cycles across four units. Modified: cpu/arm/olpc/spcmd.fth dev/pckbd.fth dev/usb2/device/keyboard/kbd.fth Modified: cpu/arm/olpc/spcmd.fth ============================================================================== --- cpu/arm/olpc/spcmd.fth Mon Feb 4 08:47:38 2013 (r3532) +++ cpu/arm/olpc/spcmd.fth Mon Feb 4 08:50:34 2013 (r3533) @@ -49,21 +49,21 @@ #queues /n* buffer: heads : head ( -- adr ) heads queue# na+ ; #queues /n* buffer: tails : tail ( -- adr ) tails queue# na+ ; -#queues /q * buffer: qs : q ( adr -- ) qs queue# /q * + ; +#queues /q * buffer: qs : q ( -- adr ) qs queue# /q * + ; /q 1- value q-end : init-queues ( -- ) #queues 0 do i to queue# - 0 head ! 0 tail ! /q 1- to q-end + 0 head ! 0 tail ! q drop /q 1- to q-end loop ; : inc-q-ptr ( pointer-addr -- ) dup @ q-end >= if 0 swap ! else /c swap +! then ; -false value locked? \ Interrupt lockout for get-scan +false value locked? \ Interrupt lockout for get-data? : lock ( -- ) true to locked? ; : unlock ( -- ) false to locked? ; @@ -125,6 +125,7 @@ 0 value open-count : open ( -- flag ) open-count 0= if + init-queues my-address my-space h# 1000 " map-in" $call-parent is reg-base data? 0= if send-rdy then then Modified: dev/pckbd.fth ============================================================================== --- dev/pckbd.fth Mon Feb 4 08:47:38 2013 (r3532) +++ dev/pckbd.fth Mon Feb 4 08:50:34 2013 (r3533) @@ -55,7 +55,7 @@ /q dup buffer: q 1- value q-end -: init-q ( -- ) 0 head ! 0 tail ! /q 1- to q-end ; +: init-q ( -- ) 0 head ! 0 tail ! q drop /q 1- to q-end ; : inc-q-ptr ( pointer-addr -- ) dup @ q-end >= if 0 swap ! else /c swap +! then ; Modified: dev/usb2/device/keyboard/kbd.fth ============================================================================== --- dev/usb2/device/keyboard/kbd.fth Mon Feb 4 08:47:38 2013 (r3532) +++ dev/usb2/device/keyboard/kbd.fth Mon Feb 4 08:50:34 2013 (r3533) @@ -67,7 +67,10 @@ \ examined by getkey (to application) /qe buffer: null-entry \ Buffer to hold a null entry -: init-q ( -- ) 0 head ! 0 tail ! #qe 1- to q-end ; +: init-q ( -- ) + 0 head ! 0 tail ! q drop #qe 1- to q-end + last-entry drop new-entry drop cur-entry drop null-entry drop +; : inc-q-ptr ( pointer-addr -- ) dup @ q-end >= if 0 swap ! else 1 swap +! then ; @@ -370,6 +373,7 @@ : open ( -- flag ) kbd-refcount @ if 1 +refcnt true exit then + init-q init-kbd-buf setup-hardware? if free-kbd-buf
1
0
0
0
[commit] r3532 - cpu/arm/olpc
by repository service
04 Feb '13
04 Feb '13
Author: quozl Date: Mon Feb 4 08:47:38 2013 New Revision: 3532 URL:
http://tracker.coreboot.org/trac/openfirmware/changeset/3532
Log: OLPC ARM - sound, avoid some possible races with the buffer refill alarm handler. Modified: cpu/arm/olpc/sound.fth Modified: cpu/arm/olpc/sound.fth ============================================================================== --- cpu/arm/olpc/sound.fth Wed Jan 30 09:28:52 2013 (r3531) +++ cpu/arm/olpc/sound.fth Mon Feb 4 08:47:38 2013 (r3532) @@ -442,8 +442,8 @@ ; : uninstall-playback-alarm ( -- ) alarmed? if - ['] playback-alarm d# 0 alarm false to alarmed? + ['] playback-alarm d# 0 alarm then ; @@ -498,8 +498,8 @@ out-len if copy-out then \ Prefill the second buffer start-out-ring master-tx - install-playback-alarm true to playing? + install-playback-alarm ; : audio-out ( adr len -- actual ) tuck start-audio-out ;
1
0
0
0
← Newer
1
2
3
4
5
Older →
Jump to page:
1
2
3
4
5
Results per page:
10
25
50
100
200