1 2005-06-27 Andrew Lunn <andrew.lunn@ascom.ch>
3 * include/hal_tables.h (CYG_HAL_TABLE_{QUALIFIED_}ENTRY): added
4 CYGBLD_ATTRIB_USED so that gcc 3.4.4 does not discard entries
5 which are not refereced explicitly. Problem reported by
8 2005-06-26 Bart Veer <bartv@ecoscentric.com>
10 * doc/hal.sgml: make HAL_DELAY_US() mandatory and define it to be
13 2005-05-19 Peter Korsgaard <jacmet@sunsite.dk>
15 * doc/porting.sgml: Changed dead sourceware.cygnus.com links to
18 2005-04-27 Enrico Piria <epiria@libero.it>
20 * src/hal_if.c Added missing declarations of tries when compiling
21 with CYGNUM_HAL_DEBUG_GDB_PROTOCOL_RETRIES != 0.
23 2004-11-20 Andrew Lunn <andrew.lunn@ascom.ch>
25 * tests/intr.c: Make the ISR call the DSR to make sure this works
28 2004-08-22 Gary Thomas <gary@mlbassoc.com>
30 * doc/porting.sgml: Replace [very misleading dated] comments
31 about CygMon and platforms which use/need GDB stubs.
33 2004-08-12 Jani Monoses <jani@iv.ro>
35 * include/hal_if.h: Make monitor locking work with CYGPKG_LWIP.
37 2004-05-19 John Newlin <jnewlin@stretchinc.com>
40 (cyg_hal_gdb_interrupt)
41 (cyg_hal_gdb_remove_break): Changed both to use
42 _read_mem_safe/__write_mem_safe for inserting a breakpoint, and
43 restoring the original instruction.
44 The Xtensa architecture (and others maybe?) can have unaligned
45 instructions, which caused unaligned load/store exception.
47 2004-04-22 Jani Monoses <jani@iv.ro>
50 Invoke tail with stricter syntax that works in latest coreutils.
52 2004-02-23 Jonathan Larmour <jifl@eCosCentric.com>
54 * cdl/debugging.cdl (CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS): Included
55 stubs should always mean saving full context both on interrupts
56 and context swaps, so make it explicit.
58 2004-01-05 Gary Thomas <gary@mlbassoc.com>
60 * include/hal_if.h: Minor fixup - new 'fconfig' functions broke
61 existing uses of CYGACC_CALL_IF_FLASH_CFG_OP. Added a new macro
62 CYGACC_CALL_IF_FLASH_CFG_OP2 which handles new API and a wrapper
63 to handle the old way (backwards compatability).
65 2003-12-21 Gary Thomas <gary@mlbassoc.com>
67 * src/hal_if.c (flash_config_op):
68 * include/hal_if.h: New expanded functions for RedBoot 'fconfig'
71 2003-09-04 Patrick Doyle <wpd@dtccom.com>
74 * src/hal_if.c (flash_fis_op): Added support for the rest of the
77 2003-08-06 Bob Koninckx <bob.koninckx@mech.kuleuven.ac.be>
79 * src/drv_api.c: Added definition of cyg_interrupt_post_dsr() for
80 use in those HALs that need it.
82 * include/hal_arbiter.h (hal_call_isr): Removed ifdef on
83 CYGFUN_HAL_COMMON_KERNEL_SUPPORT around test and call to
84 cyg_interrupt_post_dsr().
86 2003-07-21 Nick Garnett <nickg@balti.calivar.com>
88 * doc/hal.sgml: Reorganized description of clock and timer related
89 stuff into their own section and added a piece about how to change
92 2003-06-25 Nick Garnett <nickg@balti.calivar.com>
94 * src/hal_if.c (delay_us): The first test against
95 CYGNUM_KERNEL_COUNTERS_RTC_PERIOD is now against the period
96 divided by two. By the time we get to this test we know that usecs
97 can never be > usec_per_period/2 so we can double the range of
98 period values that we can handle without overflow and use the more
99 efficient approximation. The second test is not changed since we
100 cannot make the same assumptions about the elapsed count.
102 2003-06-24 Jonathan Larmour <jifl@eCosCentric.com>
104 * src/generic-stub.c (crc32): Fix crctable option name typo.
106 * src/hal_if.c (hal_if_init): Remove kill_by_reset.
107 (kill_by_reset): Remove, unused.
108 (reset): ifdef test on HAL_PLATFORM_RESET and assert on reset failure.
110 * cdl/interrupts.cdl (CYGNUM_HAL_COMMON_INTERRUPTS_STACK_SIZE): No
111 reason to forbid people setting this quite small.
113 2003-06-19 Nick Garnett <nickg@balti.calivar.com>
115 * src/hal_if.c (delay_us): Reorganized to cope with high frequency
116 timers by eliminating a source of arithmetic overflow.
118 2003-05-06 Mark Salter <msalter@redhat.com>
120 * src/hal_stub.c (handle_exception_exit): Call sys_profile_reset from
121 here. Setup to return through return_from_stub() when appropriate.
122 (return_from_stub): New function to call CYGACC_CALL_IF_MONITOR_RETURN
125 * src/generic-stub.c (__handle_exception): Call exit_vec if
126 hal_syscall_handler returns negative number.
128 2003-04-08 Mark Salter <msalter@redhat.com>
130 * src/hal_misc.c (hal_default_isr): Allow HAL to override default
131 GDB vector matching test.
133 2003-04-08 Yoshinori Sato <qzb04471@nifty.ne.jp>
134 2003-04-08 Jonathan Larmour <jifl@eCosCentric.com>
136 * cdl/debugging.cdl: Allow CRC to be allocated in ROM as well as RAM.
137 * src/generic-stub.c: as above.
139 2003-04-02 Gary Thomas <gary@mlbassoc.com>
141 * src/generic-stub.c:
142 * include/generic-stub.h: Cleanup when program args are not
143 supported (remove some unused static storage).
145 2003-03-03 Knud Woehler <knud.woehler@microplex.de>
148 * include/hal_if.h: Add CYGNUM_CALL_IF_FLASH_FIS_OP. FIS read
149 via the virtual vector table.
151 2003-02-24 Jonathan Larmour <jifl@eCosCentric.com>
153 * cdl/hal.cdl: Fix doc links.
155 * doc/hal.sgml: hal-common-current-doc-porting-sgml entity ->
156 hal-common-porting-sgml in line with other docs.
158 2003-02-13 Mark Salter <msalter@redhat.com>
160 * src/gdb-fileio.h (FILEIO_O_BINARY): New flag.
161 (FILEIO_O_TEXT): New flag.
163 2003-01-31 Mark Salter <msalter@redhat.com>
165 * include/hal_if.h: Add CYGNUM_CALL_IF_MONITOR_RETURN.
167 2002-12-04 Gary Thomas <gthomas@ecoscentric.com>
169 * cdl/hal.cdl: RAM applications should not claim (reset) version
172 2002-12-03 Gary Thomas <gthomas@ecoscentric.com>
174 * src/hal_if.c (hal_if_init):
176 * cdl/hal.cdl: Allow monitor (RedBoot) version string to be exported
177 via the virtual vector table.
179 2002-11-13 Gary Thomas <gthomas@ecoscentric.com>
181 * cdl/hal.cdl: Add CDL control over DATA cache startup mode.
183 2002-09-11 Mark Salter <msalter@redhat.com>
185 * include/hal_if.h: Add __COMMCTL_ENABLE_LINE_FLUSH and
186 __COMMCTL_DISABLE_LINE_FLUSH.
188 2002-08-29 Mark Salter <msalter@redhat.com>
190 * include/generic-stub.h: Add defines for Z packet types.
191 * src/bplist-dynamic.c: Add support for deferred hardware breakpoint
192 and watchpoint insertion/deletion. This gets around gdb problem where
193 gdb tries accessing watched memory before removing watchpoint.
194 * src/generic-stub.c (__process_packet): Ditto.
195 * include/hal_stub.h: Ditto.
197 2002-05-23 Jesper Skov <jskov@redhat.com>
199 * cdl/hal.cdl: Don't build tests that are not applicable with the
200 current configuration.
201 Added CYGINT_HAL_TESTS_NO_CACHES which allows cache tests to be
204 2002-05-13 Jesper Skov <jskov@redhat.com>
206 * cdl/hal.cdl: Removed
207 CYGINT_HAL_VIRTUAL_VECTOR_SUPPORT_NOT_GUARANTEED option and its
210 2002-05-02 Nick Garnett <nickg@redhat.com>
212 * doc/hal.sgml: Added description of HAL_DELAY_US().
214 * doc/porting.sgml: Expanded section on architecture porting.
216 2002-04-30 Jonathan Larmour <jlarmour@redhat.com>
218 * src/gdb-fileio.c (cyg_hal_gdbfileio_process_F_packet): Reset
219 retcode/errno/ctrlc status every F packet.
221 2002-04-23 Jesper Skov <jskov@redhat.com>
223 * doc/porting.sgml: Fix some typos.
225 2002-04-22 Jonathan Larmour <jlarmour@redhat.com>
227 * include/generic-stub.h: Prototype __getpacket().
228 * src/generic-stub.c: Rename getpacket() -> __getpacket(),
229 remcomInBuffer -> __remcomInBuffer, and
230 remcomOutBuffer -> __remcomOutBuffer throughout file, and export
231 them (i.e. not file local).
232 (__process_packet): Handle $F packets file I/O protocol responses.
234 * src/gdb-fileio.c: New file to implement file I/O operations over
235 the GDB remote protocol.
236 * src/gdb-fileio.h: New file. Header for above.
238 2002-03-15 Nick Garnett <nickg@redhat.com>
240 * doc/porting.sgml: Platform HAL porting guide tidied up and
241 expanded somewhat. Some work also done on variant
242 guide. Architecture guided needs a lot more work.
244 * doc/hal.sgml: Changed explicit section tags to recursive section
245 tags to make any future restructuring easier.
247 2002-03-14 Nick Garnett <nickg@redhat.com>
249 * src/hal_stub.c: Add calls to HAL memory access check macros in
250 memory access functions.
252 * include/hal_stub.h: Added default definitions for HAL memory access
255 2002-03-06 Nick Garnett <nickg@redhat.com>
257 * tests/cache.c: Changed tests so that zero sized caches and HALs
258 that define HAL_DCACHE_PURGE_ALL() don't cause this test to throw
261 2002-02-28 Jesper Skov <jskov@redhat.com>
263 * src/generic-stub.c (__handle_exception): Pay attention to return
264 value from hal_syscall_handler.
266 2002-02-21 Mark Salter <msalter@redhat.com>
268 * src/hal_if.c (cyg_hal_diag_mangler_gdb_flush): Don't do anything
271 2002-02-20 Nick Garnett <nickg@redhat.com>
273 * doc/hal.sgml: Updated and tidied. Now includes porting guide
274 from a separate file.
276 * doc/porting.sgml: Added this file to contain the porting guide
277 section of the HAL document. This is currently largely a
278 conversion of Jesper's porting guide from the website.
279 Unfortunately I have had no time to do much more than include it
280 wholesale, with only minor edits. There are some notes at the end
281 of the file describing what I would like to do.
283 2002-02-18 Nick Garnett <nickg@redhat.com>
285 * doc/hal.sgml: Restructured most of this document and rewrote
286 large chunks of the basic HAL description stuff. Only the skeleton
287 of the porting guided is currently done. This checkin in mostly
288 for safety and to let others read the current state.
290 2002-02-06 Mark Salter <msalter@redhat.com>
292 * src/hal_if.c (cyg_hal_diag_mangler_gdb_control): Add flush support.
293 (cyg_hal_diag_mangler_gdb_flush): New function to flush mangler output.
294 (cyg_hal_diag_mangler_gdb_putc): Use new function to flush output.
296 2002-01-30 Hugo Tyson <hmt@redhat.com>
298 * include/hal_if.h (CYGNUM_FLASH_CFG_OP_CONFIG_INT): New defines for
299 getting Flash Config options out of RedBoot using VV call
300 CYGACC_CALL_IF_FLASH_CFG_OP(). These need to be kept uptodate
301 with (or must override) those in RedBoot's flash_config.h
302 Previously only used for getting an ESA.
304 2002-01-25 Hugo Tyson <hmt@redhat.com>
306 * src/generic-stub.c (__process_packet): If detach or kill, call
307 sys_profile_reset() if BSP_SYSCALLS_GPROF are enabled, to clear
308 out any dangerous state there. Such as a callback function
309 pointer into application code.
311 2002-01-23 Jonathan Larmour <jlarmour@redhat.com>
313 * include/drv_api.h: Add cyg_drv_interrupt_mask/unmask_intunsafe
314 * src/drv_api.c: Ditto. And modify
315 cyg_drv_interrupt_mask/unmask to be interrupt safe.
317 2002-01-21 Mark Salter <msalter@redhat.com>
319 * include/hal_spd.h: New file. Definitions for SDRAM module SPD.
321 2002-01-18 Jesper Skov <jskov@redhat.com>
323 * src/hal_stub.c (__build_t_packet): don't declare extend_val
326 2001-12-12 Jesper Skov <jskov@redhat.com>
328 * include/hal_stub.h: Add goto to the used label.
329 * src/hal_misc.c: Added (dummy) got for label used in
330 CYGARC_HAL_GET_RETURN_ADDRESS_BACKUP.
332 2001-12-05 Jonathan Larmour <jlarmour@redhat.com>
334 * src/dbg-threads-syscall.c (dbg_thread_syscall): Don't bother to
335 deref a func ptr. The opcode could theoretically be 0x0!
337 2001-12-04 Richard Sandiford <rsandifo@redhat.com>
339 * src/generic-stub.c (__add_char_to_packet): Reverse check for
340 end of buffer and end of packet to fix potential buffer overrun.
342 2001-12-01 Jonathan Larmour <jlarmour@redhat.com>
344 * src/dbg-threads-syscall.c (dbg_thread_syscall): check for
345 NULL dbg_syscall_ptr.
347 * cdl/hal.cdl: require CYGPKG_INFRA since all HALs do!
349 2001-11-29 Hugo Tyson <hmt@redhat.com>
351 * src/hal_stub.c: Enable HAL_STUB_HW_SEND_STOP_REASON_TEXT for
352 XScale architectures per Mark's request; XScale GDB needs to know
353 what's happening with watchpoints (= work around previous change)
355 2001-11-29 Hugo Tyson <hmt@redhat.com>
357 * src/hal_stub.c: Condition out sending the reason for hardware
358 watchpoint stop in the stop packet as $T05watch:01234568;... most
359 GDBs do not understand it and in fact object to it.
361 2001-11-23 Nick Garnett <nickg@redhat.com>
363 * src/generic-stub.c (__process_packet): Fixed bogosity in
364 handling of 'r' packet. It tried to send two replies, messing up
365 the protocol and confusing GDB.
367 2001-11-02 Hugo Tyson <hmt@redhat.com>
369 * include/hal_stub.h (CYG_HAL_GDB_LEAVE_CRITICAL_IO_REGION):
370 Permit this too to be defined externally ie. in a platform HAL.
372 2001-10-25 Gary Thomas <gthomas@redhat.com>
375 * cdl/debugging.cdl: Reorg CDL a little so that GDB stub routines
376 are only compiled when needed (instead of being compiled "empty").
378 2001-10-24 Gary Thomas <gthomas@redhat.com>
380 * cdl/hal.cdl: Add 'basic' test.
382 * tests/basic.c: New test of some minimal HAL functionality.
384 2001-10-18 Gary Thomas <gthomas@redhat.com>
386 * src/hal_if.c (cyg_hal_diag_mangler_gdb_putc):
387 * cdl/debugging.cdl: CYGNUM_HAL_DEBUG_GDB_PROTOCOL_RETRIES is now
388 defined as CDL 'data' flavor (tested via #if vs. #ifdef)
390 2001-10-17 Jesper Skov <jskov@redhat.com>
392 * src/generic-stub.c: Prefixed local version of memcpy and memset
395 2001-10-17 Gary Thomas <gthomas@redhat.com>
398 * src/hal_if.c (cyg_hal_diag_mangler_gdb_putc): Make retry/abort optional,
399 only attemped if CYGNUM_HAL_DEBUG_GDB_PROTOCOL_RETRIES is configured to
400 be non-zero (default now 0).
402 2001-10-16 Jesper Skov <jskov@redhat.com>
404 * include/hal_stub.h: Allow ISOINFRA/LIBC to provide string
407 2001-10-16 Gary Thomas <gthomas@redhat.com>
409 * include/generic-stub.h: Add prototypes for breakpoint_list functions.
411 2001-10-15 David Howells <dhowells@redhat.com>
413 * include/hal_stub.h: put semicolon between goto-label and close curly.
415 2001-10-12 Mark Salter <msalter@redhat.com>
417 * src/thread-packets.c: Don't specify array sizes in extern decls.
419 * src/hal_stub.c: Use HAL_STUB_REGISTERS_SIZE to set number of elements
420 in register save areas. Default to NUMREGS if not defined by HAL.
421 Allow HALs to provide specialized get_register()/put_register().
423 * src/generic-stub.c (stub_format_registers): Support 'p' packet.
424 (__process_packet): Rearrange ifdefs so error is sent for unsupported
426 (process_query): Add hook for HAL specific queries.
427 (process_set): Add hook for HAL specific sets.
429 * include/generic-stub.h: Add extern decls to quiet compiler warnings.
431 2001-10-11 Gary Thomas <gthomas@redhat.com>
433 * include/generic-stub.h:
434 * src/generic-stub.c: Improve error handling more. Make sure that
435 packets are consumed, even if they are going to be tossed (overflow).
436 This keeps TCP based connections going, even when the data is bad.
437 (getpacket): Only send NAK in case of overflow.
439 2001-10-09 Jesper Skov <jskov@redhat.com>
441 * src/hal_if.c (flash_config_op): Protect with
444 2001-10-04 Jesper Skov <jskov@redhat.com>
446 * include/hal_endian.h: Added.
449 2001-10-03 Jonathan Larmour <jlarmour@redhat.com>
451 * include/hal_tables.h (CYG_HAL_TABLE_BEGIN): Use plain "object"
452 because some (only some though) MIPS tools complain with %object.
453 (CYG_HAL_TABLE_END): Ditto.
455 2001-10-02 Jonathan Larmour <jlarmour@redhat.com>
457 * include/hal_tables.h (CYG_HAL_TABLE_BEGIN): Use %object syntax
458 rather than @object since @ is a comment character on ARM. gas
459 accepts either syntax.
460 (CYG_HAL_TABLE_END): Ditto.
462 2001-10-01 Gary Thomas <gthomas@redhat.com>
464 * src/generic-stub.c (getpacket): Send back error response (E01) if
465 packet received which overflows buffers. GDB doesn't always do much
466 with this error, but at least it keeps the protocol moving.
468 2001-09-26 Gary Thomas <gthomas@redhat.com>
470 * cdl/common.cdl: New interface CYGINT_HAL_SUPPORTS_MMU_TABLES which
471 indicates if the HAL supports MMU tables (few do).
473 2001-09-25 Gary Thomas <gthomas@redhat.com>
475 * cdl/common.cdl (CYGSEM_HAL_INSTALL_MMU_TABLES): Change to be
476 default for ROM startup.
478 2001-09-20 Jesper Skov <jskov@redhat.com>
480 * tests/vaargs.c (cyg_start): Call CYG_TEST_INIT.
482 2001-09-10 Nick Garnett <nickg@redhat.com>
484 * include/hal_stub.h (strlen): Changed return type to size_t from
485 int so it matches <string.h>. For some reason the compiler has
486 suddenly started complaining about the type mismatch. Strange.
488 2001-09-07 Nick Garnett <nickg@redhat.com>
490 * src/hal_stub.c (put_register): Added kludge for VR4300 targets
491 to sign extent the PC when it is being set. This is due to the
492 age of the VR4300 toolchain and the fact that the VR4300 is the
493 only target to do full 64bit register saves/restores.
495 2001-09-07 Jesper Skov <jskov@redhat.com>
497 * include/hal_if.h: Fix typo in below change.
499 2001-09-07 Jonathan Larmour <jlarmour@redhat.com>
501 * include/hal_if.h (CYGACC_CALL_IF_DBG_SYSCALL): Define and call
502 with correct arguments.
504 2001-08-24 Mark Salter <msalter@redhat.com>
506 * src/generic-stub.c (__process_packet): Add support for 'D' packet.
507 (__process_packet): Check for impossible mem write length.
509 2001-08-17 Jonathan Larmour <jlarmour@redhat.com>
511 * cdl/hal.cdl: Add CYGINT_HAL_VIRTUAL_VECTOR_COMM_BAUD_SUPPORT
514 2001-08-16 Gary Thomas <gthomas@redhat.com>
516 * cdl/hal.cdl: Add CDL options to control GDB protocol retries.
518 2001-08-14 Gary Thomas <gthomas@redhat.com>
520 * src/hal_if.c (cyg_hal_diag_mangler_gdb_putc): Use timeout
521 functions to allow for retries. This should improve the case
522 where [for whatever reason] the host GDB misses or ignores
523 a $O packet - it will get resent after a reasonable timeout.
525 2001-08-03 Gary Thomas <gthomas@redhat.com>
526 2001-08-03 Jesper Skov <jskov@redhat.com>
528 * include/hal_if.h: Use inline functions for calls - allowing
529 interrupts to be disabled while services are called
530 [CYGACC_COMM_IF_CONTROL is an exception since it's using variable
531 arguments - so it's still a macro].
532 Pruned unused IF vectors: ICTRL_TABLE, EXC_TABLE, DBG_VECTOR,
533 CPU_DATA, BOARD_DATA, SYSINFO, SET_SERIAL_BAUD.
534 Note: this should fix bug CR 902745-CR.
536 * cdl/hal.cdl: Removed CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_ICTRL.
537 * src/hal_if.c (hal_if_init): Removed initialization of
538 ICTRL_TABLE, EXC_TABLE, CPU_DATA and BOARD_DATA entries.
540 2001-08-03 Nick Garnett <nickg@redhat.com>
542 Imported from a development branch:
544 2001-07-11 Nick Garnett <nickg@redhat.com>
548 Added API for controlling routing of interrupts to CPUs in SMP
551 2001-06-29 Nick Garnett <nickg@cygnus.co.uk>
555 Added API for using spinlocks.
557 2001-08-03 Jesper Skov <jskov@redhat.com>
559 * tests/vaargs.c: Added.
560 * cdl/hal.cdl: Added CYGPKG_HAL_BUILD_COMPILER_TESTS to allow cpp1
561 and vaargs tests to be compiled conditionally.
563 2001-07-27 Jesper Skov <jskov@redhat.com>
565 * tests/intr.c: Set up interrupt ISR using driver API so it works
566 properly in chained mode in the presence of arbiters.
568 * src/drv_api.c (chain_isr): Call default ISR when
569 appropriate. Return ISR return value.
571 * include/hal_arbiter.h (hal_call_isr): Added version to be used
572 with interrupt chaining.
574 2001-07-24 Mark Salter <msalter@redhat.com>
576 * cdl/hal.cdl (CYGINT_HAL_PLF_IF_IDE): New interface which
577 indicates platform supports IDE controller I/F macros.
579 2001-06-29 Jonathan Larmour <jlarmour@redhat.com>
581 * cdl/hal.cdl (CYGPKG_HAL_TESTS): Remove redundant .c extension
583 2001-06-29 Jesper Skov <jskov@redhat.com>
585 * include/hal_misc.h: Moved arbiter helper to
586 * include/hal_arbiter.h: this file to avoid header file inclusion
589 2001-06-28 Jesper Skov <jskov@redhat.com>
591 * include/hal_misc.h (hal_call_isr): Added. Used by ISR arbiters.
593 2001-06-22 Gary Thomas <gthomas@redhat.com>
595 * src/generic-stub.c (BUFMAX): Define as platform specific, thus
596 reducing memory requirements.
597 (__process_packet): Eliminate program arguments support until eCos
598 makes use of them (more memory savings).
600 2001-06-22 Mark Salter <msalter@redhat.com>
602 * src/hal_stub.c (__do_copy_mem): Add goto statement to prevent
603 compiler from moving instructions across 'err' label.
605 2001-06-14 Jonathan Larmour <jlarmour@redhat.com>
607 * src/generic-stub.c (__process_packet): Don't reset the board
608 straight away with a 'r' packet. Let a 'k' packet do it instead.
610 * src/hal_stub.c (__install_traps): Remove redundant comment.
612 2001-06-11 Jonathan Larmour <jlarmour@redhat.com>
614 * src/hal_if.c (delay_us): Revert below change of 2001-05-17
616 2001-06-05 Hugo Tyson <hmt@redhat.com>
618 * src/hal_if.c (cyg_hal_diag_mangler_gdb_putc): The nesting of
619 CYGARC_HAL_SAVE_GP() and the instant-out if sending a carriage
620 return "\r" was wrong - it scrambled the gp for the caller! Since
621 the return-test is trivial, I simply re-ordered rather than making
622 the exit clause complex with a restore in it.
624 2001-05-17 Jonathan Larmour <jlarmour@redhat.com>
626 * src/hal_if.c (delay_us): Warn if using default
628 2001-05-14 Jonathan Larmour <jlarmour@redhat.com>
630 * cdl/interrupts.cdl (CYGNUM_HAL_COMMON_INTERRUPTS_STACK_SIZE):
631 Default stack size to 32K for non-kernel configs, and describe
634 2001-05-07 Gary Thomas <gthomas@redhat.com>
636 * src/hal_if.c (hal_ctrlc_check): Only return 'true' if the ISR/DSR
637 actually processes a ^C. Otherwise, interrupts/date can be lost on
638 a shared channel (like an ethernet device).
640 2001-04-30 Gary Thomas <gthomas@redhat.com>
642 * cdl/hal.cdl: Add configury to control initial cache behaviour.
644 2001-04-30 Hugo Tyson <hmt@redhat.com>
646 * cdl/hal.cdl: Add tests/cpp1.c to the tests list.
648 * tests/cpp1.c: New test, to test for regressions in the tools.
649 This one is for a CPP bug in the XScale tools where '+' binds too
650 strongly following a ')' because it is mistaken for unary plus.
652 2001-04-25 Bart Veer <bartv@redhat.com>
655 Fix test for cache presence.
657 * src/drv_api.c (cyg_drv_interrupt_detach):
658 Added missing indirection.
660 2001-03-28 Jonathan Larmour <jlarmour@redhat.com>
662 * include/dbg-threads-api.h: Add dbg_thread_id() function prototype.
664 2001-03-21 Mark Salter <msalter@redhat.com>
666 * src/hal_if.c (hal_if_init): Add explicit typecast when setting
667 version. Needed when sizeof(int) < sizeof(CYG_ADDRWORD).
669 2001-03-21 Jesper Skov <jskov@redhat.com>
671 * src/hal_if.c (hal_if_init): Added warning about debugging.
673 2001-03-20 Jonathan Larmour <jlarmour@redhat.com>
675 * include/hal_if.h: Add argument names to __call_if_flash_cfg_op_fn_t
677 2001-03-16 Mark Salter <msalter@redhat.com>
679 * src/hal_stub.c (__build_t_packet): Add hook for adding arch-specific
680 registers to T packet.
681 (handle_exception_cleanup): Skip orig_registers past breakpoint so we
682 return to original context rather than hit breakpoint again.
684 2001-03-16 Hugo Tyson <hmt@redhat.com>
686 * include/hal_if.h: Define types and slots and macros themed with
687 the phrase CALL_IF_FLASH_CFG_OP following the pattern of what's
688 there for the other slots. Thus CYGNUM_CALL_IF_FLASH_CFG_OP,
689 CYGACC_CALL_IF_FLASH_CFG_OP(...) and __call_if_flash_cfg_op_fn_t
690 are all newly defined. Also CYGNUM_CALL_IF_FLASH_CFG_GET which is
691 the only operation supported in this initial version.
693 Also changed many typedef'd function pointers to not include the
694 pointerness; that way the type can be used to validate the
695 correctness of arguments in the called function.
697 * src/hal_stub.c (__reset): Minor change to reset function
698 handling; pointerness of typedef removed.
700 * src/hal_if.c (flash_config_op): New function to call flash ops
701 in RedBoot. This is so that RedBoot can manage ethernet addresses
702 for you, and the application can get at the data "cleanly".
703 (hal_if_init): Install flash_config_op() in the table if defined.
705 2001-03-12 Mark Salter <msalter@redhat.com>
707 * src/hal_misc.c (cyg_hal_user_break): Use macro to find PC
710 * src/generic-stub.c: Add support for harvard memories.
711 * src/bplist-dynamic.c: Ditto.
712 * include/generic-stub.h: Ditto.
713 * include/hal_stub.h: Add dummy harvard memory macros for
714 princeton memory systems.
716 2001-03-12 Jesper Skov <jskov@redhat.com>
718 * src/drv_api.c (cyg_drv_interrupt_detach): Fix missing intr->
721 2001-03-08 Jesper Skov <jskov@redhat.com>
723 * cdl/hal.cdl: Change sense of
724 CYGINT_HAL_VIRTUAL_VECTOR_SUPPORT_GUARANTEED to new
725 CYGINT_HAL_VIRTUAL_VECTOR_SUPPORT_NOT_GUARANTEED.
727 2001-03-07 Jesper Skov <jskov@redhat.com>
729 * src/drv_api.c: Use macro to provide symbol alias.
731 2001-03-05 Jesper Skov <jskov@redhat.com>
733 * src/hal_if.c (hal_if_diag_init): Ensure the function only
736 2001-03-02 Gary Thomas <gthomas@redhat.com>
740 * src/hal_if.c (hal_if_init):
741 Support platform specific initializations.
743 2001-02-26 Mark Salter <msalter@redhat.com>
745 * src/generic-stub.c (__process_packet): Change 'k' packet to cause
746 return to original context. Change 'r' packet to respond with empty
747 packet before resetting board.
749 * src/hal_stub.c (handle_exception_exit): New function. Restores
750 original context saved when stub was entered for the first time.
751 (handle_exception_cleanup): Save original context.
752 (__install_traps): Set __process_exit_vec to handle_exception_exit.
754 2001-02-09 Jesper Skov <jskov@redhat.com>
756 * cdl/debugging.cdl: Make CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT and
757 CYGDBG_HAL_DEBUG_GDB_CTRLC_SUPPORT options have sensible defaults.
759 2001-02-08 Jesper Skov <jskov@redhat.com>
761 * cdl/hal.cdl: Added CYGSEM_HAL_VIRTUAL_VECTOR_INHERIT_CONSOLE and
762 CHANNEL_CONFIGURABLE options.
763 * cdl/common.cdl: Added CYGDBG_HAL_DIAG_TO_DEBUG_CHAN option.
764 * src/hal_if.c: Changes to respect new options. Always do platform
765 driver init from CLAIM_COMMS code.
766 * src/hal_stub.c: Leave channel setup to CLAIM_COMMS code.
768 * src/hal_if.c: Added null mangler that gets called via the
769 virtual vector console comms entry and just forwards IO to the
770 debug comms entries. This differs from setting the console
771 channel to the same as the debug channel in that console output
772 will go to the debug channel even if the debug channel is changed.
774 2001-02-07 Jesper Skov <jskov@redhat.com>
776 * include/hal_if.h: Allow architecture to override COMM and CALL
779 2001-02-03 Gary Thomas <gthomas@redhat.com>
781 * src/bplist-dynamic.c (__set_breakpoint, __remove_breakpoint):
782 Fix error introduced below when no breakpoint list defined.
784 2001-02-02 Mark Salter <msalter@redhat.com>
786 * src/generic-stub.c: __set_breakpoint and __remove_breakpoint now
787 take a length argument.
789 * src/bplist-dynamic.c: Support breakpoint length. Use
790 HAL_BREAKINST_ADDR macro (if defined) to get actual breakpoint based
791 on breakpoint length.
793 * include/hal_stub.h: Add len argument to __set_breakpoint and
796 2001-02-01 Jesper Skov <jskov@redhat.com>
798 * src/drv_api.c: Make it build with chaining.
800 * include/hal_if.h: Introduce macros for legal version range and
801 special hacked version number used by ctrlc magic.
802 * src/hal_if.c (hal_ctrlc_isr_init): Be more careful with how the
803 version number is checked (and trashed) by the ctrlc init code.
804 * src/hal_misc.c (hal_default_isr): Same.
806 * src/hal_stub.c: Moved mangling code to hal_if.c
807 * src/hal_if.c: New policies for when and how to initialize the
808 IO channels. Mangler code now set up by diag_init to allow for
809 mangling when no stub is included.
811 * include/hal_if.h: Added COMM version in upper 16 bits of version
812 word. Removed CYGPRI_HAL_IMPLEMENTS_IF_SERVICES.
813 * src/hal_misc.c: Use masks when checking vv versions.
815 * cdl/hal.cdl: Add new options for selecting which parts of the
816 virtual vector table to initialize.
817 * src/hal_if.c: Matching granularity in initialization code.
818 Extra checking of services before using these.
820 * cdl/debugging.cdl: Require channel initialization when enabling
823 2001-01-31 Jesper Skov <jskov@redhat.com>
825 * cdl/common.cdl: Get rid of CYGDBG_HAL_DIAG_DISABLE_GDB_PROTOCOL
826 options. They are replaced by the CYGSEM_HAL_DIAG_MANGLER option.
828 2001-01-31 Hugo Tyson <hmt@redhat.com>
830 * include/hal_if.h: Make it possible to build logical ether driver
831 even without virtual vectors present, by defining a dummy
832 HAL_CTRLC_CHECK in that case; other code invokes it if debugging
835 2001-01-26 Jesper Skov <jskov@redhat.com>
837 * src/hal_stub.c (__reset): Rename HAL_STUB_PLATFORM_RESETx macros
838 to HAL_PLATFORM_RESETx.
839 * src/hal_if.c (reset): Same.
841 2001-01-15 Nick Garnett <nickg@cygnus.co.uk>
843 * src/drv_api.c: Initialized isr_disable_counter to 1 so that it
844 indicates that interrupts are initially disabled.
846 2000-12-15 Gary Thomas <gthomas@redhat.com>
848 * src/generic-stub.c: Define 'version' string to be a weak
849 symbol that can be easily overridden (e.g. by RedBoot).
851 2000-12-11 Gary Thomas <gthomas@redhat.com>
853 * src/hal_if.c: Remove unnecessary (polluting) include file.
855 * include/hal_stub.h: Support platform/variant supplied
856 include files. <cyg/hal/plf_XXX.h> can now be layered
857 as <cyg/hal/var_XXX.h> which includes <cyg/hal/plf_XXX.h>.
859 2000-12-06 Jesper Skov <jskov@redhat.com>
861 * src/hal_if.c (delay_us): Ensure proper _GP save/restore.
862 Reduce number of loops in fall-back code.
864 2000-12-05 Drew Moseley <dmoseley@redhat.com>
866 * src/hal_stub.c (__build_t_packet): Handle
867 CYGARC_REGSIZE_DIFFERS_FROM_TARGET_REGISTER_T with Little Endian
870 * include/hal_misc.h: Added BIT and SZ_ defines.
872 2000-11-22 Mark Salter <msalter@redhat.com>
874 * src/hal_misc.c (hal_default_isr): Version check only when
875 CYGSEM_HAL_ROM_MONITOR not defined.
877 2000-11-20 Mark Salter <msalter@redhat.com>
879 * src/hal_stub.c (hal_flush_output): New function to flush debug
882 * src/generic-stub.c (__process_packet): Use hal_flush_output when
883 killing or continuing.
885 * include/hal_stub.h: Add declaration for hal_flush_output().
887 * include/hal_if.h (__COMMCTL_FLUSH_OUTPUT): New comm control cmd.
889 2000-11-17 Jesper Skov <jskov@redhat.com>
891 * src/hal_if.c (delay_us): Add dummy loop.
892 Duh! Take usecs argment into account.
894 2000-11-06 Mark Salter <msalter@redhat.com>
896 * src/generic-stub.c (__handle_exception): Add support for GNUPro bsp
899 * src/board.h: Include pkgconf/redboot.h for CYGSEM_REDBOOT_BSP_SYSCALLS.
901 2000-11-06 Jesper Skov <jskov@redhat.com>
903 * src/hal_if.c (hal_if_diag_write_char): Clear interrupt flag before
906 2000-11-04 Mark Salter <msalter@redhat.com>
908 * src/hal_stub.c (__build_t_packet): Report reason and data
909 address if stopped by hw watchpoint.
911 * src/generic-stub.c (__process_packet): Remove experimental
912 support for type 5 Z packet.
914 * include/hal_stub.h: Define HAL_STUB_STOP_* reasons returned
915 by HAL_IS_STOPPED_BY_HARDWARE.
917 2000-10-27 Mark Salter <msalter@redhat.com>
919 * src/generic-stub.c: Fixed preprocessor warning.
921 2000-10-27 Gary Thomas <gthomas@redhat.com>
923 * src/generic-stub.c (__process_packet): Remove warnings when
924 hardware breakpoint support (Z packet) not enabled.
926 2000-10-26 Mark Salter <msalter@redhat.com>
928 * src/generic-stub.c (__process_packet): Add Z packet support.
930 * src/bplist-dynamic.c: Include <pkgconf/hal.h> to pick up
931 CYGNUM_HAL_BREAKPOINT_LIST_SIZE.
933 2000-10-24 Jesper Skov <jskov@redhat.com>
935 * src/generic-stub.c (__process_packet): Disable buffer size
938 2000-10-23 Jesper Skov <jskov@redhat.com>
940 * src/hal_stub.c: Made __mem_fault_handler pointer volatile.
942 2000-10-20 Jonathan Larmour <jlarmour@redhat.com>
944 * include/drv_api.h (cyg_interrupt): Make dsr_count volatile to
945 prevent compilers optimizing accesses in the wrong place.
947 2000-10-20 Jesper Skov <jskov@redhat.com>
949 * include/drv_api.h: Correct location of volatile keyword.
950 * src/drv_api.c: Same.
952 2000-10-19 Gary Thomas <gthomas@redhat.com>
954 * src/generic-stub.c (__process_packet): Add RedBoot identifier
955 in maintenance 'd' packet reply.
957 2000-10-18 Jesper Skov <jskov@redhat.com>
959 * include/hal_if.h (CYGPRI_HAL_IMPLEMENTS_IF_SERVICES): Set for
960 all non-RAM startup types.
962 2000-10-13 Jonathan Larmour <jlarmour@redhat.com>
964 * src/stubrom/stubrom.c (cyg_start): Remove unnecessary call to
967 2000-09-11 Jonathan Larmour <jlarmour@redhat.com>
969 * include/hal_tables.h (CYG_HAL_TABLE_EXTRA): Use new definition of
970 CYGBLD_ATTRIB_SECTION, and fix the string name up better.
971 (CYG_HAL_TABLE_ENTRY): Ditto
972 (CYG_HAL_TABLE_QUALIFIED_ENTRY): Ditto
974 2000-09-07 Jonathan Larmour <jlarmour@redhat.com>
976 * include/hal_tables.h: Fix non-standard use of paste operator to
977 remove warnings with recent gcc
979 2000-09-04 Jonathan Larmour <jlarmour@redhat.com>
981 * include/hal_tables.h (CYG_HAL_TABLE_END): Use CYGARC_P2ALIGNMENT
983 (CYG_HAL_TABLE_TYPE): Define
985 2000-09-01 Jonathan Larmour <jlarmour@redhat.com>
987 * src/hal_stub.c (__build_t_packet): Ensure sign extension applies
988 in the higher word, not the lower.
989 (__build_t_packet): Don't need to conditionalize on
990 CYGARC_REGSIZE_DIFFERS_FROM_TARGET_REGISTER_T as there should be no
991 problems with the current code.
992 * src/generic-stub.c (stub_format_registers): Likewise
994 * include/hal_if.h (CYGACC_COMM_IF_CONTROL): Remove warning due to
995 unnecessary use of cpp paste operator
997 2000-08-28 Gary Thomas <gthomas@redhat.com>
1000 * include/hal_if.h (hal_ctrlc_check): Define new routine to be
1001 called by interrupt handlers (DSRs) which may be using hardware
1002 shared with a debug channel. In particular, network adaptors
1003 need to call this function to see if a ^C has occurred on the
1004 network debug connection.
1006 2000-08-24 Gary Thomas <gthomas@redhat.com>
1008 * include/hal_tables.h: Need descriminated tables (for proper sorting).
1010 2000-08-14 Drew Moseley <dmoseley@redhat.com>
1012 * src/hal_if.c: Added an extern declaration for
1013 cyg_hal_plf_comms_init.
1015 * src/bplist-dynamic.c: Only use breakpoint lists when building
1018 2000-08-10 Drew Moseley <dmoseley@redhat.com>
1020 * include/generic-stub.h: Added support for register validity
1022 * src/generic-stub.c: Ditto.
1023 * src/hal_stub.c: Ditto.
1025 * include/drv_api.h: Added cyg_code_t.
1027 2000-08-03 Gary Thomas <gthomas@redhat.com>
1029 * include/hal_if.h (CYGNUM_CALL_IF_DBG_DATA): Move to avoid
1032 2000-07-26 Gary Thomas <gthomas@redhat.com>
1034 * src/hal_stub.c (cyg_hal_gdb_diag_putc): Ignore any characters
1035 other than the protocol chars of ACK/NAK/^C.
1037 * src/hal_if.c (hal_if_diag_init): Only reset console channel
1038 if user has configured a non-default choice.
1040 2000-07-24 Drew Moseley <dmoseley@redhat.com>
1042 * src/bplist-dynamic.c (__install_breakpoint_list): Call
1043 HAL_ICACHE_SYNC() rather than HAL_ICACHE_INVALIDATE_ALL().
1045 2000-07-21 Drew Moseley <dmoseley@cygnus.com>
1047 * src/hal_stub.c: Cleanup of #define's.
1049 * src/generic-stub.c: Rearrange the linkage between Cygmon and HAL so
1050 that Cygmon needs HAL but not vice-versa. ie HAL no longer calls
1051 any Cygmon functions.
1052 * src/hal_misc.c: Ditto.
1054 * src/bplist-dynamic.c: Use HAL macros rather than Cygmon
1055 functions for flushing the cache.
1056 Also handle the case where target_register_t is not defined.
1058 2000-07-21 Gary Thomas <gthomas@redhat.com>
1060 * src/hal_if.c (CYGNUM_HAL_VIRTUAL_VECTOR_NUM_CHANNELS): Define to allow
1061 the number of channels to be extended by "AUX" packages.
1063 2000-07-20 Drew Moseley <dmoseley@redhat.com>
1065 * src/generic-stub.c (stub_format_registers): Make the previous patch
1066 effective only if CYGARC_REGSIZE_DIFFERS_FROM_TARGET_REGISTER_T is
1067 defined so as to not affect any other targets.
1068 * src/hal_stub.c: Ditto.
1070 2000-07-19 Drew Moseley <dmoseley@redhat.com>
1072 * src/generic-stub.c (stub_format_registers): Handle the case
1073 where GDB is expecting registers larger than we are storing. ie
1074 MIPS gdb expects 64 bit registers even if we are on a 32 bit
1075 architecture. Also, handle the sign-extension correctly if
1077 * src/hal_stub.c (__build_t_packet): Ditto.
1079 2000-07-18 Jesper Skov <jskov@redhat.com>
1081 * src/hal_misc.c (hal_default_isr):
1082 Version gets hacked by hal_if_init - check for the hacked value.
1084 2000-07-18 Jesper Skov <jskov@redhat.com>
1086 * src/hal_stub.c (__mem_fault_handler): Made volatile.
1088 2000-07-14 Drew Moseley <dmoseley@redhat.com>
1090 * src/generic-stub.c: Cleanups for better coexistence with Cygmon.
1091 * include/generic-stub.h: Ditto.
1092 * include/hal_if.h: Ditto.
1093 * include/hal_stub.h: Ditto.
1094 * src/hal_stub.c: Ditto.
1096 * cdl/hal.cdl: Compile bplist-dynamic.c.
1098 * src/bplist-dynamic.c: New file for supporting breakpoints in the HAL.
1100 2000-07-14 Gary Thomas <gthomas@redhat.com>
1102 * src/hal_if.c (delay_us): Use HAL_DELAY_US() if defined.
1104 2000-07-07 Jesper Skov <jskov@redhat.com>
1106 * src/hal_stub.c (initHardware): Fix #endif location.
1108 * src/hal_if.c (hal_ctrlc_isr_init): Added hack to work around a
1109 silly but critical problem.
1111 * src/hal_stub.c: Removed some CygMon conditional exclusions.
1113 * src/hal_if.c (hal_ctrlc_isr_init): Don't enable interrupts when
1114 configured as ROM monitor.
1116 2000-07-05 Jesper Skov <jskov@redhat.com>
1118 * cdl/debugging.cdl: Only allow CTRLC support if there's stubs or
1119 a ROM monitor to handle it. (Haruki Kashiwaya (kashiwaya at redhat
1122 2000-06-30 Jesper Skov <jskov@redhat.com>
1124 * include/hal_if.h: Make CYGACC macros call functions. May have to
1125 add some _GET macros at some time if anyone needs to access the
1131 Matching changes of CYGACC clients.
1133 2000-06-29 Jesper Skov <jskov@redhat.com>
1135 * src/hal_stub.c (cyg_hal_gdb_diag_putc): Check console interrupt
1136 flag and breakpoint if set.
1138 2000-06-28 Jesper Skov <jskov@redhat.com>
1140 * src/hal_stub.c (cyg_hal_gdb_diag_putc): Don't try to set
1141 breakpoints in ROM startup - just disable interrupts. Also, use
1142 procs table function to disable device interrupts.
1144 * include/hal_if.h: Mark vector/comms arrays volatile to avoid
1147 * include/dbg-threads-api.h: Fix C/C++ declaration issues.
1149 * src/hal_stub.c: Moved stub platform init call below vector table
1154 * include/hal_if.h: DBG_ISR_VECTOR and SET_TIMEOUT functions added
1155 to comms table. Added DELAY_US function to vector table. Made
1156 switching of debug channel dis/enable Ctrl-c interrupts as
1157 well. Made ctrlc_isr code use new vector entries. All this amounts
1158 to a properly switchable debug channel.
1160 2000-06-21 Jesper Skov <jskov@redhat.com>
1162 * src/hal_stub.c: Fixed clients of vector procs tables to pass
1163 in the correct arguments. Hook O-packetizer up on procs slot
1164 reserved for IO mangler. Install mangler when necessary.
1166 * src/hal_if.c: Extended set procs functions to allow temporarily
1167 switching console procs in a safe manner. Removed debug and
1168 console wrappers - all IO happens via drivers hooked up in tables
1169 rather than through hardwired macros. Proper initialization of
1170 console proc entry. Fixed clients of vector procs tables to pass
1171 in the correct arguments. Stub now does its own vector table
1172 initialization. Added special procs slot for IO manglers.
1174 * include/hal_if.h: Define special IDs used by the set procs
1175 functions. PROCS_HANDLED removed since the procs table will now
1176 always service any port.
1178 2000-06-21 Nick Garnett <nickg@cygnus.co.uk>
1180 * include/hal_stub.h: Added underscore to breakinst().
1182 * include/hal_tables.h:
1183 Added this file to contain macros for defining datatables in a
1184 systematic and extensible way.
1186 2000-06-19 Gary Thomas <gthomas@redhat.com>
1188 * cdl/hal.cdl: Revert change below - GUARANTEED can exist
1191 2000-06-18 Gary Thomas <gthomas@redhat.com>
1193 * cdl/hal.cdl: Use of virtual vector functions for diagnostic
1194 output must be disabled when building with stubs. Note: this
1195 lets stubs be built for platforms with guaranteed virtual
1198 2000-06-16 Jesper Skov <jskov@redhat.com>
1200 * include/hal_if.h: All vector-dependant features hidden when
1201 config option not enabled.
1203 * src/hal_if.c (hal_if_init): Fix warning.
1205 2000-06-15 Jesper Skov <jskov@redhat.com>
1207 * include/hal_if.h: Added console-include decision logic.
1209 2000-06-15 Nick Garnett <nickg@cygnus.co.uk>
1212 * include/drv_api.h: Added boolean result to cyg_drv_cond_wait()
1213 to match change to the kernel and KAPI functionality.
1215 2000-06-14 Jesper Skov <jskov@redhat.com>
1217 * src/hal_stub.c: Added O-packetizer used by GDB stubs for virtual
1218 vector table configs.
1220 * src/hal_misc.c (hal_default_isr): Check Ctrlc for both CTRLC
1225 Define console wrappers when necessary. Platform HALs can use
1226 these by providing raw IO functions and some config data.
1228 2000-06-09 Jesper Skov <jskov@redhat.com>
1230 * src/hal_if.c: Implemented most of the remaining services. Some
1231 just don't have an eCos equivalent at the moment.
1233 * cdl/hal.cdl: Allow virtual_vector options to have sensible
1234 default values depending on when the platform HAL port was
1237 * src/hal_misc.c (cyg_hal_user_break): Also expect CygMon to
1238 provide the breakpoint service.
1240 * src/stubrom/stubrom.c (cyg_start): Reverted change. Now handled
1243 * cdl/hal.cdl: Added option for controlling use of diag services
1244 in the virtual vector table.
1246 2000-06-08 Jesper Skov <jskov@redhat.com>
1248 * src/stubrom/stubrom.c: Call hal_diag_init to ensure IF table
1249 entries related to diag IO get initialized.
1251 * src/hal_stub.c (cyg_hal_gdb_interrupt): save/restore GP so it
1252 can be used by MIPS platforms.
1253 Use reset function in ROM if available.
1256 * include/hal_misc.h: Functions shared between HALs. More
1257 functions are likely to be moved here if appropriate.
1259 * src/hal_if.c: Interfacing related functions: table init code and
1262 * include/hal_if.h: ROM/RAM calling interface table
1263 definitions. The layout is a combination of libbsp and vectors
1264 already in use by some eCos platforms.
1267 * cdl/hal.cdl: Added CYGxxx_HAL_VIRTUAL_VECTOR_SUPPORT
1268 options. These are used to control whether a platform uses the new
1269 ROM/RAM calling interface. All platforms will be converted to use
1270 this, but piecemeal over a period of time, thus the requirement
1271 for selecting behavior.
1273 2000-06-04 Gary Thomas <gthomas@redhat.com>
1275 * cdl/hal.cdl: Support variant 'pkgconf' headers. This will allow
1276 [variant] common symbols to be defined, rather than duplicating
1277 them over all platforms using that variant.
1279 2000-05-25 Jesper Skov <jskov@redhat.com>
1281 * cdl/debugging.cdl: Allow thread support to included for ROM
1284 2000-05-22 Jesper Skov <jskov@redhat.com>
1286 * cdl/debugging.cdl: Allow platform to prevent CTRLC inclusion.
1288 2000-04-12 Jesper Skov <jskov@redhat.com>
1290 * cdl/debugging.cdl: Don't let interfaces define anything.
1292 2000-04-07 Jesper Skov <jskov@redhat.com>
1294 * cdl/hal.cdl: Fix dependencies for stub.
1296 2000-03-28 Jesper Skov <jskov@redhat.com>
1298 * src/generic-stub.c (__process_packet): Added 'z' packet reply.
1300 2000-03-28 John Dallaway <jld@cygnus.co.uk>
1304 Adjust documentation URLs.
1306 2000-03-24 Jesper Skov <jskov@redhat.com>
1308 * include/hal_stub.h: Fixed a bad function name. Made it opssible
1309 for archs to define CYG_HAL_GDB_ENTER_CRITICAL_IO_REGION.
1311 2000-03-20 Jesper Skov <jskov@redhat.com>
1313 * cdl/debugging.cdl: Preclude USE_MONITOR when including stubs.
1315 2000-03-01 Gary Thomas <gthomas@cygnus.co.uk>
1318 Define CYGINT_HAL_DIAG_DISABLE_GDB_PROTOCOL_SUPPORTED as an
1319 'interface' so implementations can be properly specified.
1321 2000-02-29 Gary Thomas <gthomas@cygnus.co.uk>
1323 * cdl/common.cdl: Option to disable GDB protocol now supported
1324 by QUICC based PowerPC systems.
1326 2000-02-29 Jonathan Larmour <jlarmour@redhat.co.uk>
1328 * include/generic-stub.h: Make header C++ safe
1330 2000-02-16 Jesper Skov <jskov@redhat.com>
1332 * include/hal_stub.h: fixed endian definitions.
1334 2000-02-10 Jesper Skov <jskov@redhat.com>
1336 * include/pkgconf/hal.h: Added CYGSEM_HAL_ROM_MONITOR
1337 * src/hal_stub.c (initHardware): CYG_HAL_STARTUP_STUBS ->
1338 CYGSEM_HAL_ROM_MONITOR.
1339 Removed HAL_STUB_PLATFORM_STUBS_INIT.
1341 2000-02-09 Jesper Skov <jskov@redhat.com>
1343 * cdl/hal.cdl: Added remaining build dependencies.
1345 2000-02-04 Jesper Skov <jskov@redhat.com>
1347 * cdl/hal.cdl: Fix test list display.
1349 2000-02-03 Jesper Skov <jskov@redhat.com>
1351 * include/pkgconf/hal.h: CYG_HAL_POWERPC_x->CYGPKG_...
1353 2000-02-03 Jesper Skov <jskov@redhat.com>
1355 * cdl/debugging.cdl: Use interfaces for stub capabilities instead
1357 * cdl/hal.cdl: Add extra dependencies to common stub build rule.
1359 2000-02-02 Jesper Skov <jskov@redhat.com>
1361 * cdl/hal.cdl: Added HAL tests.
1363 2000-01-31 Simon FitzMaurice <sdf@cygnus.co.uk>
1366 Adjust help URLs in line with new doc layout.
1368 2000-01-28 Simon FitzMaurice <sdf@cygnus.co.uk>
1371 Adjust help URLs in line with new doc layout.
1373 2000-01-27 Jesper Skov <jskov@redhat.com>
1375 * cdl/hal.cdl: Added simple build rules for common stub.
1377 2000-01-26 Jonathan Larmour <jlarmour@redhat.co.uk>
1379 * src/hal_stub.c (__reset): Replace CYGDAT_CYGMON_ENABLE
1380 dependency with just CYGPKG_CYGMON
1381 (initHardware): Likewise
1382 (__set_baud_rate): Likewise
1383 (putDebugChar): Likewise
1385 2000-01-17 John Dallaway <jld@cygnus.co.uk>
1390 Modify the default_value attribute for
1391 CYGFUN_HAL_COMMON_KERNEL_SUPPORT, CYGPKG_HAL_EXCEPTIONS
1392 and CYGDBG_HAL_DEBUG_GDB_THREAD_SUPPORT to do the right
1393 thing in the absence of the eCos kernel package.
1395 1999-12-22 John Dallaway <jld@cygnus.co.uk>
1399 Add CFLAGS to the custom rule for extras.o to accommodate
1400 arm big-endian targets.
1402 1999-12-21 Jonathan Larmour <jlarmour@cygnus.co.uk>
1404 * include/pkgconf/hal.h: Rename all CYG_HAL_USE_ROM_MONITOR_GDB_STUBS
1405 -> CYGSEM_HAL_USE_ROM_MONITOR_GDB_stubs
1406 Rename all CYG_HAL_USE_ROM_MONITOR_CYGMON ->
1407 CYGSEM_HAL_USE_ROM_MONITOR_CygMon
1408 Rename all CYG_HAL_USE_ROM_MONITOR -> CYGSEM_HAL_USE_ROM_MONITOR
1409 Don't need to define CYG_HAL_SH_SH7708 any more
1411 * cdl/hal.cdl: Add CYGPKG_HAL_ROM_MONITOR container package for
1412 platforms to put ROM-monitor related options into
1413 Move all ROM-monitor related options into individual platform CDL
1415 1999-12-02 John Dallaway <jld@cygnus.co.uk>
1419 Use '$<' to reference custom rule dependency.
1421 1999-12-01 John Dallaway <jld@cygnus.co.uk>
1425 Use the <PREFIX> token in custom rules.
1427 1999-11-29 John Dallaway <jld@cygnus.co.uk>
1431 Use wildcard in the custom rule for extras.o to
1432 accommodate 'make -n'.
1434 1999-11-23 Simon Fitzmaurice <sdf@cygnus.co.uk>
1435 * cdl\common.cdl: Correct example of illiteracy
1437 1999-11-20 Gary Thomas <gthomas@cygnus.co.uk>
1439 * cdl/common.cdl: Add MMU tables options.
1441 * include/pkgconf/hal.h (CYGSEM_HAL_INSTALL_MMU_TABLES):
1442 (CYGSEM_HAL_STATIC_MMU_TABLES): New options to control MMU table
1443 flavour and placement.
1445 1999-11-15 Jonathan Larmour <jlarmour@cygnus.co.uk>
1447 * include/dbg-threads-api.h, include/generic-stub.h,
1448 include/hal_stub.h: Add comments to explain these header files should
1449 not be included by user programs
1451 1999-11-09 Gary Thomas <gthomas@cygnus.co.uk>
1453 * cdl/common.cdl: Add CYGDBG_HAL_DIAG_DISABLE_GDB_PROTOCOL.
1455 * include/pkgconf/hal.h (CYGDBG_HAL_DIAG_DISABLE_GDB_PROTOCOL):
1456 New option which [explicitly] controls use of GDB protocol
1459 1999-11-03 Jesper Skov <jskov@cygnus.co.uk>
1461 * cdl/hal.cdl: More crud out + mn10300 fixes.
1463 1999-11-02 Jesper Skov <jskov@cygnus.co.uk>
1465 * cdl/hal.cdl: Cleaned out some of the CPU config entries.
1467 1999-10-29 Gary Thomas <gthomas@cygnus.co.uk>
1469 * tests/PKGconf.mak: Add cache tests for Cirrus Logic boards.
1471 1999-10-29 Jesper Skov <jskov@cygnus.co.uk>
1473 * tests/cache.c: Made safe for targets with no cache.
1475 * tests/PKGconf.mak: Don't build cache test for ARM unless
1478 1999-10-28 Jesper Skov <jskov@cygnus.co.uk>
1480 * tests/cache.c: Fix array size.
1482 1999-10-27 Gary Thomas <gthomas@cygnus.co.uk>
1484 * src/hal_stub.c: Fix typo (CYGDAT_CYGMON_ENABLE). Also need
1485 to include <pkgconf/cygmon.h>
1487 1999-10-27 Gary Thomas <gthomas@cygnus.co.uk>
1489 * src/hal_stub.c: Add explicit enable for CygMon package.
1491 1999-10-27 Hugo Tyson <hmt@cygnus.co.uk>
1493 * src/hal_stub.c (cyg_hal_gdb_interrupt): Bugfix to previous: ^Cs
1494 were being ignored when received by the diag output code, because
1495 there was already a break in place. Solution is to let
1496 cyg_hal_gdb_interrupt() override any previous break, and tidy up
1499 1999-10-26 Hugo Tyson <hmt@cygnus.co.uk>
1501 * include/hal_stub.h (CYG_HAL_GDB_ENTER_CRITICAL_IO_REGION): Place
1502 the break at the address of a label within the calling context
1503 [normally hal_diag_write_char()]; this is neater and more
1504 portable; it's supported for more targets. Also use
1505 cyg_hal_place_break() to place it, define that, &c.
1507 * src/hal_stub.c (cyg_hal_gdb_place_break): New routine to
1508 specially handle the inline breakpoint. It basically does the
1509 same as cyg_hal_gdb_interrupt(), except on some platforms where
1510 you must do different things to set a bp from a non-interrupt
1513 1999-10-25 Gary Thomas <gthomas@cygnus.co.uk>
1515 * src/hal_stub.c (putDebugChar, getDebugChar): When building with
1516 CygMon, these functions are defined by CygMon.
1518 1999-10-26 John Dallaway <jld@cygnus.co.uk>
1522 Modify custom make rule to specify file paths relative
1523 to the package version directory.
1525 1999-10-22 Hugo Tyson <hmt@cygnus.co.uk>
1527 * include/hal_stub.h (CYG_HAL_GDB_ENTER_CRITICAL_IO_REGION):
1528 (CYG_HAL_GDB_LEAVE_CRITICAL_IO_REGION): new macros to be invoked
1529 in hal_diag routines to make atomic the code that outputs a
1530 complete GDB $O packet. This is required so that watching
1531 variables (which is implemented by stepping) and stepping itself
1532 does not try to ss through that $O output code. CASE 102327.
1534 * src/hal_stub.c (cyg_hal_gdb_break_is_set): new routine to query
1535 whether a break is set: used by step in the stubs to decide to
1536 continue instead, because we are in a critical region.
1537 (cyg_hal_gdb_running_step): communication between generic stub and
1538 here: if set, a step has been converted into a continue, so we do
1539 NOT obey cyg_hal_gdb_remove_break until it is cleared, in
1540 handle_exception_cleanup().
1542 * src/generic-stub.c (__process_packet): If there is a break set
1543 by the hal_stub.c, convert a step to continue, and set
1544 cyg_hal_gdb_running_step to say we did so.
1546 1999-10-22 Jesper Skov <jskov@cygnus.co.uk>
1548 * src/generic-stub.c (__handle_exception): Flush and clear caches
1549 after cleaning up after single-stepping.
1551 (memcpy, memset): Added to prevent stub hanging if user puts
1552 breakpoints in either function.
1554 1999-10-19 Nick Garnett <nickg@cygnus.co.uk>
1556 * include/pkgconf/hal.h: Added monitor configury for Brother
1559 1999-10-10 Gary Thomas <gthomas@cygnus.co.uk>
1561 * src/thread-packets.c (stub_pkt_currthread): Fix typo in comment.
1563 * src/generic-stub.c: Reorg to expose register get/set functions.
1565 1999-10-08 Simon Fitzmaurice <sdf@cygnus.co.uk>
1566 * cdl\interrupts.cdl: Quoted '[' and ']' (significant in TCL and thus CDL)
1568 1999-10-08 Jesper Skov <jskov@cygnus.co.uk>
1570 * cdl/interrupts.cdl: Added
1571 CYGIMP_HAL_COMMON_INTERRUPTS_IGNORE_SPURIOUS.
1573 1999-09-22 Simon FitzMaurice <sdf@cygnus.co.uk>
1575 * cdl\hal.cdl : add priority field to "extras.o" rule
1577 1999-09-21 Gary Thomas <gthomas@cygnus.co.uk>
1579 * src/thread-packets.c: Fix some typos in comments.
1581 1999-09-15 Jesper Skov <jskov@cygnus.co.uk>
1583 * src/hal_stub.c: Override generic GDB interrupt functions for
1584 ARM. Need them to be thumb aware.
1586 1999-09-13 Gary Thomas <gthomas@cygnus.co.uk>
1588 * include/pkgconf/hal.h: Add new config option to allow spurious
1589 interrupts to be ignored by the HAL.
1591 * src/generic-stub.c (__process_packet): Build in version string
1592 (date/time) for stubs in ROM to be returned via 'd' packet.
1594 1999-09-09 Jonathan Larmour <jlarmour@cygnus.co.uk>
1596 * include/pkgconf/hal.h (CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS): Rename
1597 CYGPKG_HAL_MN10300_SIM to CYGPKG_HAL_MN10300_AM31_SIM
1599 1999-09-07 Nick Garnett <nickg@cygnus.co.uk>
1601 * src/dbg-threads-syscall.c (dbg_currthread_id): Fixed to return
1602 zero if dbg_currthread() returns false. Previously it could have
1603 returned a random value which would have made GDB think there had
1604 been a thread switch when there hadn't. It was particularly prone
1605 to do this in configurations where the kernel was absent.
1607 1999-09-01 Gary Thomas <gthomas@cygnus.co.uk>
1609 * include/pkgconf/hal.h: Always include target and platform package
1610 include (pkgconf) files.
1612 1999-08-26 Jonathan Larmour <jlarmour@cygnus.co.uk>
1614 * src/generic-stub.c (__hex2mem_helper):
1615 Use target_register_t when casting to address type, rather than long
1616 Since the compiler can choose arbitrary alignment of unions, force
1617 to use byte array only
1618 Restore use of loop termination test for *hexMemSrc, just in case
1619 since that's how it used to be
1620 Increment destination, not source at end of loop
1623 Use target_register_t when casting to address type, rather than long.
1624 Since the compiler can choose arbitrary alignment of unions, force
1625 to use byte array only. Therefore use single __read_mem_safe() call
1627 * src/hal_stub.c (__do_copy_mem): Reassign back from dst/src at start
1628 of each "if" clause in case we go round the loop again.
1630 1999-08-24 Gary Thomas <gthomas@cygnus.co.uk>
1632 * src/hal_stub.c (__do_copy_mem): Move temp variables to top of
1633 function - potentially safer if there is an error.
1635 1999-08-23 Jonathan Larmour <jlarmour@cygnus.co.uk>
1637 * src/generic-stub.c (__process_packet): For 'g' and 'G' packets,
1638 when the register size differs from sizeof(target_register_t) we must
1639 adjust according to the endianness
1641 * include/hal_stub.h: Ensure __LITTLE_ENDIAN__ is defined on
1642 little-endian targets
1644 * src/hal_stub.c (__build_t_packet): Use the correct register sizes
1645 for PC and SP rather than assuming they are the same as target_register_t
1647 1999-08-23 Gary Thomas <gthomas@cygnus.co.uk>
1649 * include/generic-stub.h: Change prototypes for internal functions.
1651 * src/hal_stub.c (__do_copy_mem):
1652 * src/generic-stub.c (__mem2hex_helper): Rework to perform aligned,
1653 multi-byte operations when conditions allow. This should handle
1654 most "hardware register" access cases. Note: there currently is
1655 no good way to force GDB to require/use such accesses.
1657 1999-08-17 Jonathan Larmour <jlarmour@cygnus.co.uk>
1659 * tests/intr.c (cyg_start): Use CYG_TEST_NA rather than a pass saying
1662 1999-08-16 Jonathan Larmour <jlarmour@cygnus.co.uk>
1664 * include/pkgconf/hal.h: Rename CYG_HAL_MN10300_AM32_STDEVAL1 to
1665 CYG_HAL_MN10300_AM31_STDEVAL1
1667 1999-08-13 Nick Garnett <nickg@cygnus.co.uk>
1669 * src/hal_stub.c: Removed superfluous trace() extern.
1671 1999-08-12 Nick Garnett <nickg@cygnus.co.uk>
1673 Imported following changes from AM33 branch:
1675 1999-07-27 Nick Garnett <nickg@cygnus.co.uk>
1677 * src/hal_stub.c: Added support for 1 byte breakpoints.
1678 Removed invalidates for cache flushes - I am not entirely sure why
1679 we have these here, since HAL_DCACHE_SYNC() should do what we
1680 need, and these invalidates are causing a problem on the MIPS and
1683 * include/pkgconf/hal.h: Added Monitor selection for AM33.
1685 1999-06-29 Nick Garnett <nickg@cygnus.co.uk>
1687 * include/pkgconf/hal.h: Modified to match new MN10300 HAL
1690 1999-08-06 Jesper Skov <jskov@cygnus.co.uk>
1692 * src/generic-stub.c (__process_packet): FLush and clear caches
1693 after call to __single_step.
1695 1999-07-05 Jesper Skov <jskov@cygnus.co.uk>
1697 * tests/intr.c: Don't use kernel's RTC definitions.
1699 1999-07-02 Jesper Skov <jskov@cygnus.co.uk>
1701 * tests/cache.c: Print stride values, preventing timeout on slow
1704 1999-06-28 Jesper Skov <jskov@cygnus.co.uk>
1706 * include/pkgconf/hal.h (CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT):
1709 1999-06-24 Jonathan Larmour <jlarmour@cygnus.co.uk>
1711 * include/pkgconf/hal.h: Clarify descriptions of
1712 CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT and
1713 CYGDBG_HAL_DEBUG_GDB_CTRLC_SUPPORT.
1715 1999-06-17 Nick Garnett <nickg@cygnus.co.uk>
1717 * include/pkgconf/hal.h: Added CYGDBG_HAL_DEBUG_GDB_CTRLC_SUPPORT
1718 to enable inclusion of ^C interrupt handler. Added CDL to control
1721 1999-06-10 Hugo Tyson <hmt@cygnus.co.uk>
1723 * include/pkgconf/hal.h: Add support for the PowerPC target MBX860
1724 platform, CYG_HAL_POWERPC_MBX.
1726 1999-06-10 Gary Thomas <gthomas@cygnus.co.uk>
1728 * src/hal_stub.c: Need to init register pointer.
1730 1999-06-08 Jesper Skov <jskov@cygnus.co.uk>
1732 * include/pkgconf/hal.h: Added CYG_HAL_ROM_MONITOR for EDK7708.
1734 1999-05-31 Jesper Skov <jskov@cygnus.co.uk>
1736 * src/hal_stub.c: Respect HAL_BREAKINST_SIZE setting.
1738 1999-05-28 Jesper Skov <jskov@cygnus.co.uk>
1740 * include/pkgconf/hal.h: Renamed SH platform package to edk7708.
1742 1999-05-28 Nick Garnett <nickg@cygnus.co.uk>
1744 * src/hal_stub.c (initHardware): Added call to
1745 HAL_STUB_PLATFORM_INIT if it is defined.
1747 * include/pkgconf/hal.h: Added a #undef for CYG_HAL_ROM_MONITOR,
1748 largely so that a stubrom permutation can define it.
1750 1999-05-27 Nick Garnett <nickg@cygnus.co.uk>
1752 * src/hal_stub.c: Do not call HAL_ICACHE_INVALIDATE_ALL() and
1753 HAL_DCACHE_INVALIDATE_ALL() in __instruction_cache() and
1754 __data_cache() for MIPS targets. These macros are simply
1757 1999-05-27 Jesper Skov <jskov@cygnus.co.uk>
1759 * tests/cache.c: Added handling of unified caches.
1761 1999-05-25 Jonathan Larmour <jlarmour@cygnus.co.uk>
1763 * tests/cache.c: Use HAL_DCACHE_SYNC if available
1765 1999-05-24 Jesper Skov <jskov@cygnus.co.uk>
1767 * include/pkgconf/hal.h: Added CPU specifier for EDK board.
1769 1999-05-21 Jesper Skov <jskov@cygnus.co.uk>
1771 * src/hal_stub.c (__install_traps): Set exit vector to __reset.
1773 1999-05-21 Nick Garnett <nickg@cygnus.co.uk>
1775 * include/pkgconf/hal.h: Switched VR4300 over to using GDB STUBS
1778 1999-05-21 Jesper Skov <jskov@cygnus.co.uk>
1780 * tests/intr.c: Get RTC values from CYGBLD_HAL_PLATFORM_H.
1781 Ensure there are fallback definitions.
1783 * src/hal_stub.c (handle_exception_cleanup): Added optional call
1784 of HAL_STUB_PLATFORM_STUBS_FIXUP macro.
1786 1999-05-18 Jesper Skov <jskov@cygnus.co.uk>
1788 * src/hal_stub.c (hal_output_gdb_string): Added missing ;
1790 1999-05-13 Nick Garnett <nickg@cygnus.co.uk>
1792 The following changes were all made on a branch and imported into
1793 the main trunk later.
1795 1999-05-11 Nick Garnett <nickg@cygnus.co.uk>
1797 * include/pkgconf/hal.h:
1798 tidied up all MIPS targets to include CYGBLD_HAL_TARGET_H. This
1799 will eventually apply to all configurations.
1801 1999-05-06 Nick Garnett <nickg@cygnus.co.uk>
1803 * src/PKGconf.mak (COMPILE): Added dbg-threads-syscall.c.
1805 * include/dbg-thread-syscall.h:
1806 * src/dbg-threads-syscall.c:
1807 Files added to enable support for thread-awareness in GDB stub
1808 ROMs. The .h file has been moved from kernel/src/debug.
1810 1999-04-28 Nick Garnett <nickg@cygnus.co.uk>
1812 * src/hal_stub.c (__build_t_packet): Changed sp variable to a
1813 non-pointer type to force it to be installed in the T packet with
1816 * src/drv_api.c: Added cyg_interrupt_call_pending_DSRs() to keep
1817 HAL happy in non-kernel configurations.
1819 1999-04-21 Nick Garnett <nickg@cygnus.co.uk>
1821 * include/pkgconf/hal.h:
1822 Added VR4300 configury for ROM monitor use and inclusion of
1823 variant-specific configuration header. This needs some further
1826 1999-04-28 Bart Veer <bartv@cygnus.co.uk>
1829 Use the new rules for generating libextras.a
1831 1999-04-27 Jesper Skov <jskov@cygnus.co.uk>
1833 * include/pkgconf/hal.h: GDB_BREAK support now available for ARM
1836 1999-04-16 Bart Veer <bartv@cygnus.co.uk>
1840 New file that can always be added to libextras.a without
1841 affecting image sizes.
1843 1999-04-14 Jonathan Larmour <jlarmour@cygnus.co.uk>
1845 * include/hal_stub.h:
1846 Make sure all functions have C linkage even in C++
1848 1999-04-14 Jesper Skov <jskov@cygnus.co.uk>
1850 * src/generic-stub.c (__process_packet): Reset _register pointer
1851 to the exception state before attempting to set up single-step
1854 1999-04-14 Jesper Skov <jskov@cygnus.co.uk>
1856 * include/hal_stub.h: Added declaration for __stub_copy_registers.
1858 1999-04-14 Jesper Skov <jskov@cygnus.co.uk>
1860 * src/hal_stub.c: Use HAL_xCACHE_IS_ENABLED if defined.
1862 1999-04-09 Jesper Skov <jskov@cygnus.co.uk>
1865 Moved get_register and put_register here. Made them access the
1866 currently selected register set.
1868 1999-03-22 Jonathan Larmour <jlarmour@cygnus.co.uk>
1870 * include/dbg-threads-api.h: Update copyright
1872 * src/generic-stub.c: Change Cygnus Support->Cygnus Solutions
1874 * src/thread-packets.c: Update copyright
1876 * src/thread-pkts.h: Update copyright
1878 1999-03-19 Nick Garnett <nickg@cygnus.co.uk>
1880 * tests/cache.c: Added interrupt disable and enable to cache state
1881 change blocks, in line with similar changes to kcache1.
1883 1999-03-17 Jesper Skov <jskov@cygnus.co.uk>
1885 * src/hal_stub.c (hal_output_gdb_string): Use disable/restore
1886 macros to make sure it works even when interruptible() is a NOP
1889 1999-03-10 Nick Garnett <nickg@cygnus.co.uk>
1891 * include/pkgconf/hal.h:
1892 Changed include of hal_tx39_jmr3904.h to hal_tx39.h.
1894 1999-03-05 Nick Garnett <nickg@cygnus.co.uk>
1896 * include/drv_api.h:
1898 Fixed some typos in non-kernel configuration support.
1900 1999-03-04 Jesper Skov <jskov@cygnus.co.uk>
1902 * include/pkgconf/hal.h: Exclude GDB stubs on sparc.
1904 1999-02-26 Jesper Skov <jskov@cygnus.co.uk>
1906 * src/generic-stub.c:
1907 * include/generic-stub.h:
1908 Added binary download patches from libstub.
1910 1999-02-25 Nick Garnett <nickg@cygnus.co.uk>
1912 * include/drv_api.h:
1914 Added these files to define driver API.
1916 1999-02-23 Nick Garnett <nickg@cygnus.co.uk>
1918 * include/pkgconf/hal.h:
1919 Added include of <pkgconf/hal_tx39_jmr3904.h> to get TX39 speed
1920 configuration options.
1922 1999-02-20 Jonathan Larmour <jlarmour@cygnus.co.uk>
1925 Rename CYGNUM_VECTOR_RTC -> CYGNUM_HAL_INTERRUPT_RTC in line with
1928 1999-02-17 Jesper Skov <jskov@cygnus.co.uk>
1931 * src/generic-stub.c (__handle_exception):
1932 Only include cyg_hal_gdb_break magic when stub is configured to
1933 handle GDB BREAK signals.
1935 1999-02-17 Jesper Skov <jskov@cygnus.co.uk>
1937 * src/generic-stub.c (__handle_exception): Moved special signal
1938 handling here to avoid duplication for all architectures.
1940 1999-02-16 Jesper Skov <jskov@cygnus.co.uk>
1942 * src/stubrom/stubrom.c: Changed set_debug_traps to initialize_stub.
1944 * include/hal_stub.h: [added]
1945 * include/generic-stub.h:
1946 * src/hal_stub.c: [added]
1947 * src/board.h: [added]
1948 * src/thread-pkts.h:
1949 * src/thread-packets.c:
1950 * src/generic-stub.c:
1952 Merged in latest libstub changes. Moved most eCos specific changes
1953 into hal_stub.[ch], reducing effort required for further
1954 merging/integration.
1956 1999-02-05 Jesper Skov <jskov@cygnus.co.uk>
1958 * include/pkgconf/hal.h: Cleaned up the MPC8xx configuration.
1960 1999-01-29 Jesper Skov <jskov@cygnus.co.uk>
1962 * include/pkgconf/hal.h: Added simple MPC8xx configuration.
1964 1999-01-26 Hugo Tyson <hmt@cygnus.co.uk>
1966 * tests/cache.c (time0): Waste much less time if running in a
1967 simulator. Do only 40 loops instead of 4000.
1968 In consequence the nasty meddling with MAX_STRIDE depending on
1969 HAL_xxx_SIM package definitions can go.
1971 1999-01-22 Jesper Skov <jskov@cygnus.co.uk>
1973 * include/pkgconf/hal.h: Renamed CYG_HAL_POWERPC_FADS to
1974 CYGPKG_HAL_POWERPC_FADS.
1976 1999-01-21 Jonathan Larmour <jlarmour@cygnus.co.uk>
1978 * include/pkgconf/hal.h:
1979 Tidy up and update description
1980 Add new CYGSEM_HAL_STOP_CONSTRUCTORS_ON_FLAG option to allow default
1981 priority static constructors to be deferred
1982 Remove all traces of non-CYG_KERNEL_USE_INIT_PRIORITY code
1984 1999-01-21 Jesper Skov <jskov@cygnus.co.uk>
1985 Merge with FADS branch.
1987 1998-12-17 Jesper Skov <jskov@cygnus.co.uk>
1989 * include/pkgconf/hal.h: Don't allow GDB BREAK support on FADS.
1990 Define _MPC860, not _MP860.
1992 1998-12-17 Jesper Skov <jskov@cygnus.co.uk>
1994 * include/pkgconf/hal.h:
1995 Added FADS entry from Kevin Hester <KHester@opticworks.com>.
1997 1999-01-19 Hugo Tyson <hmt@cygnus.co.uk>
1999 * include/pkgconf/hal.h:
2000 Add CYG_KERNEL_USE_INIT_PRIORITY for SPARCLITE.
2002 1999-01-18 Jesper Skov <jskov@cygnus.co.uk>
2004 * include/pkgconf/hal.h: Don't allow GDB stubs to be configured
2007 1999-01-18 Jesper Skov <jskov@cygnus.co.uk>
2009 * include/pkgconf/hal.h: GDB_BREAK support not available for ARM
2012 1999-01-14 Gary Thomas <gthomas@cygnus.co.uk>
2014 * src/stubrom/PKGconf.mak: Rename 'TESTS' to 'PROGS' due to
2015 changes in 'makrules.prv'.
2017 1999-01-14 Jesper Skov <jskov@cygnus.co.uk>
2019 * src/stubrom/stubrom.c (cyg_start): Fix compiler warning.
2021 * include/dbg-threads-api.h: Include cyg_type.h to get externC
2024 1999-01-14 Nick Garnett <nickg@cygnus.co.uk>
2026 * include/dbg-threads-api.h: Added prototype for dbg_scheduler().
2028 1999-01-13 Gary Thomas <gthomas@cygnus.co.uk>
2030 * src/generic-stub.c (__output_hex_value): Change buffer size
2031 [2048 was rather large] and make stack based. Also don't
2032 allow for string to exceed buffer.
2034 1999-01-13 Jesper Skov <jskov@cygnus.co.uk>
2036 * src/generic-stub.c (strcpy): Terminate copied string.
2038 1999-01-11 Jesper Skov <jskov@cygnus.co.uk>
2040 * tests/intr.c (CYGNUM_KERNEL_COUNTERS_RTC_PERIOD): Added RTC data
2043 Wed Dec 9 14:07:30 GMT 1998 Chris Provenzano <proven@cygnus.com>
2045 * include/pkgconf/hal.h: Compile the i386 linux target with
2046 CYG_KERNEL_USE_INIT_PRIORITY defined.
2048 1999-01-04 Jesper Skov <jskov@cygnus.co.uk>
2050 * src/generic-stub.c (interruptible): Cleaned up a bit.
2052 1999-01-04 Jesper Skov <jskov@cygnus.co.uk>
2055 * tests/cache.c: Purge data cache before invalidating it.
2057 1998-12-09 Gary Thomas <gthomas@cygnus.co.uk>
2059 * src/generic-stub.c: Better handling of errors while stubs
2060 are accessing memory on behalf of GDB. Requires support for
2061 GCC 'computed goto label' in top-level exception handler.
2063 1998-12-09 Jesper Skov <jskov@cygnus.co.uk>
2065 * include/pkgconf/hal.h: Removed the
2066 CYGARC_HAL_COMMON_EXPORT_CPU_MACROS option. Causing failures in
2069 1998-12-07 Jesper Skov <jskov@cygnus.co.uk>
2071 * src/generic-stub.c (process_exception): Send an acknowledge char
2072 on first entry so GDB doesn't timeout before resending its initial
2075 1998-11-26 Jesper Skov <jskov@cygnus.co.uk>
2077 * include/pkgconf/hal.h: Added
2078 CYGARC_HAL_COMMON_EXPORT_CPU_MACROS.
2080 1998-11-23 Jesper Skov <jskov@cygnus.co.uk>
2082 * tests/cache.c: Only run with stride 1 on SIMs.
2084 1998-11-23 Jesper Skov <jskov@cygnus.co.uk>
2086 * include/pkgconf/hal.h: Define SIM as a 603 CPU.
2088 1998-11-19 Jesper Skov <jskov@cygnus.co.uk>
2091 Make the test do nothing if kernel real-time clock is enabled.
2092 Added different timer constants for PPC SIM and HW.
2094 1998-11-17 Jesper Skov <jskov@cygnus.co.uk>
2097 * include/pkgconf/hal.h:
2098 Renamed CYG_HAL_POWERPC_MP860 to CYG_HAL_POWERPC_MPC860.
2100 1998-11-04 Jesper Skov <jskov@cygnus.co.uk>
2102 * include/pkgconf/hal.h: Made CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT a
2103 sub-option of CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS.
2105 1998-11-16 Jesper Skov <jskov@cygnus.co.uk>
2107 * include/pkgconf/hal.h: Allow GDB stubs to be configured for
2108 MN10300 HW. Allow GDB_BREAK for all but tx39.
2110 1998-11-04 Jesper Skov <jskov@cygnus.co.uk>
2112 * include/pkgconf/hal.h: Made CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT a
2113 sub-option of CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS.
2115 1998-11-04 Jesper Skov <jskov@cygnus.co.uk>
2117 * src/generic-stub.c (process_packet): Flush D cache before
2118 invalidating I cache.
2120 1998-11-02 Jesper Skov <jskov@cygnus.co.uk>
2122 * src/generic-stub.c (__handle_exception): Check for breakpoints
2123 set by GDB interrupt handler.
2125 1998-10-25 Jesper Skov <jskov@cygnus.co.uk>
2127 * src/thread-packets.c: Fixed closing #endif comment.
2129 * src/generic-stub.c: Fixed closing #endif comment.
2131 1998-10-23 Jesper Skov <jskov@cygnus.co.uk>
2133 * src/hal_common.c: Removed. We can't use weak default functions
2134 when they may conflict with strong functions in the library.
2136 1998-10-23 Jesper Skov <jskov@cygnus.co.uk>
2138 * include/generic-stub.h: Added __interruptible_control.
2140 1998-10-23 Jesper Skov <jskov@cygnus.co.uk>
2143 * include/pkgconf/hal.h: Let HAL exception support require Kernel
2146 1998-10-21 Jesper Skov <jskov@cygnus.co.uk>
2149 * include/pkgconf/hal.h: Let HAL GDB thread support require Kernel
2152 1998-10-20 Jesper Skov <jskov@lassi.cygnus.co.uk>
2155 * src/hal_common.c: Added. Includes a weak handle_exception
2158 1998-10-20 Jesper Skov <jskov@cygnus.co.uk>
2159 PR 17885, 17880, 17841
2161 * include/pkgconf/hal.h: Don't allow GDB stubs to be configured
2162 for SIMs or MN10300.
2164 1998-10-19 Jesper Skov <jskov@lassi.cygnus.co.uk>
2166 * src/thread-packets.c: Sync'd with libstub source.
2168 1998-10-16 Bart Veer <bartv@cygnus.co.uk>
2170 * include/pkgconf/hal.h (CYGNUM_HAL_COMMON_INTERRUPTS_STACK_SIZE):
2171 Added new configuration option for interrupt stack size.
2173 Thu Oct 15 21:25:55 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
2175 * include/pkgconf/hal.h:
2176 Make CYGFUN_HAL_COMMON_KERNEL_SUPPORT require the kernel, as it
2177 is enabling this is eCos-kernel specific, and relies on
2178 configuration options defined only in the kernel
2179 Required for PR 17229
2181 1998-10-15 Jesper Skov <jskov@cygnus.co.uk>
2183 * include/pkgconf/hal.h (CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT):
2184 Added config option.
2186 1998-10-14 Nick Garnett <nickg@cygnus.co.uk>
2188 * include/pkgconf/hal.h:
2189 Move some configury from kernel.h to here. Particularly the
2190 support for GDB stubs.
2195 * tests/PKGconf.mak:
2196 New directory of HAL-only test programs. Currently contains some
2197 very basic test programs.
2199 * include/generic-stub.h:
2200 * include/dbg-threads-api.h:
2201 * src/generic-stub.c:
2202 * src/thread-packets.c:
2203 * src/thread-pkts.h:
2204 * src/stubrom/PKGconf.mak:
2205 * src/stubrom/stubrom.c:
2206 Moved these files here from kernel.
2208 1998-10-08 Gary Thomas <gthomas@penang.cygnus.co.uk>
2210 * include/pkgconf/hal.h:
2211 Add support for new architecture.
2213 1998-09-23 Nick Garnett <nickg@cygnus.co.uk>
2215 * include/pkgconf/hal.h:
2216 Switched TX39 over to using CYGMON from GDB stubs.
2218 Tue Sep 15 19:13:04 1998 David Moore <dsm@keema.cygnus.co.uk>
2220 * include/pkgconf/hal.h: Cleaned up comments.
2222 Mon Sep 14 11:08:26 1998 Jesper Skov <jskov@lassi.cygnus.co.uk>
2225 * include/pkgconf/hal.h: Added IMP_HAL_COMMON_INTERRUPTS_CHAIN
2228 1998-09-14 Bart Veer <bartv@cygnus.co.uk>
2230 * include/pkgconf/hal.h:
2231 Fixed typo in description.
2233 1998-09-12 Bart Veer <bartv@cygnus.co.uk>
2235 * include/pkgconf/hal.h:
2236 Sort out exception handling options (PR 16953)
2237 Added missing descriptions (PR 17184)
2239 Tue Sep 8 17:16:39 1998 Hugo Tyson <hmt@cygnus.co.uk>
2241 * include/pkgconf/hal.h:
2242 Elide some spurious redefines of CYG_HAL_MN10300_STDEVAL1 and
2243 CYG_HAL_MN10300_SIM within ifdefs conditioned on same.
2245 1998-09-03 Bart Veer <bartv@cygnus.co.uk>
2247 * include/pkgconf/hal.h:
2248 CYGPKG_HAL_COMMON is now a component, not a package.
2250 1998-09-02 Bart Veer <bartv@cygnus.co.uk>
2252 * include/pkgconf/hal.h:
2253 Moved target and platform specific configuration data to
2254 the appropriate packages.
2256 Symbols identifying the target hardware should be just defined,
2257 not given a value, as per the coding standards.
2259 Mon Aug 31 09:16:08 1998 Jesper Skov <jskov@cygnus.co.uk>
2261 * include/pkgconf/hal.h: Added INIT_PRIORITY default setting for
2264 1998-08-28 Bart Veer <bartv@cygnus.co.uk>
2266 * include/pkgconf/hal.h:
2267 Added configuration data.
2269 1998-08-20 Nick Garnett <nickg@cygnus.co.uk>
2271 * include/pkgconf/hal.h:
2272 Moved definition of CYG_KERNEL_USE_INIT_PRIORITY here from
2275 1998-08-18 Nick Garnett <nickg@cygnus.co.uk>
2277 * include/pkgconf/hal.h:
2278 Created this file to contain HAL config options.
2280 //===========================================================================
2281 //####ECOSGPLCOPYRIGHTBEGIN####
2282 // -------------------------------------------
2283 // This file is part of eCos, the Embedded Configurable Operating System.
2284 // Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
2285 // Copyright (C) 2003 Jonathan Larmour
2287 // eCos is free software; you can redistribute it and/or modify it under
2288 // the terms of the GNU General Public License as published by the Free
2289 // Software Foundation; either version 2 or (at your option) any later version.
2291 // eCos is distributed in the hope that it will be useful, but WITHOUT ANY
2292 // WARRANTY; without even the implied warranty of MERCHANTABILITY or
2293 // FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
2294 // for more details.
2296 // You should have received a copy of the GNU General Public License along
2297 // with eCos; if not, write to the Free Software Foundation, Inc.,
2298 // 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
2300 // As a special exception, if other files instantiate templates or use macros
2301 // or inline functions from this file, or you compile this file and link it
2302 // with other works to produce a work based on this file, this file does not
2303 // by itself cause the resulting work to be covered by the GNU General Public
2304 // License. However the source code for this file must still be made available
2305 // in accordance with section (3) of the GNU General Public License.
2307 // This exception does not invalidate any other reasons why a work based on
2308 // this file might be covered by the GNU General Public License.
2310 // Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
2311 // at http://sources.redhat.com/ecos/ecos-license/
2312 // -------------------------------------------
2313 //####ECOSGPLCOPYRIGHTEND####
2314 //===========================================================================